Re: translation

From: Date: Sat, 11 Aug 2001 17:10:47 +0000
Subject: Re: translation
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1331@lists.php.net to get a copy of this message
Hello! I don't really know how translation can/should be added to Smarty, but I just wanted to say out loud that translation features would definitely be very interesting for me as a developer using Smarty and living in Luxembourg. We almost have NO sites that are not at least bi-lingual. Thanks :) -----Message d'origine----- De : Hans-Peter Oeri [mailto:lists+smarty@oeri.ch] Envoyé : vendredi 10 août 2001 11:33 À : Mike Krus Cc : smarty@lists.ispi.net Objet : [smarty] Re: translation Hi! Quoting Mike Krus <mwkrus@yahoo.com>: > I've implemented my proposal, it's in the HPE CVS repository [1]. > It's working on NewsIsFree [2]. It's just what I wanted. Language And what do you think of separating the process of the translation and the saving of different compiled templates? That's actually what I want to achieve.. A common behaviour for saving different compiled templates and the option to use that for whatever you want (eg. translations). The syntax and procedure of the translation could then be chosen of different implementations or even combined! > Down side: template compile time is much longer (due to a big XML > file processing, but it's a one time operation), you need to specify that's one of the reasons why I want to have it in pre-compilation ;) An other (as you say) is the possibility to use code in translated strings... > fetch("$LANG.foo.tpl")), > and you have to repeat that in the include statements. Wouldn't it be nice NOT to look for $LANG everywhere? > distribution. Overall, made me like Smarty even more! Smarty is great! If only we had a "standard" pre-compilation translation support, because I don't want to patch and repatch each and every new version ;) WHAT version of support is not really my issue, just any support would be great *grin* Don't conform! IkKampfCaspar75 --- You are currently subscribed to smarty as: alain@nvision.lu To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

« previous php.smarty.general (#1331) next »