Re: translation
| From: | Hans-Peter Oeri | Date: | Fri, 10 Aug 2001 09:33:04 +0000 |
| Subject: | Re: translation | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1326@lists.php.net to get a copy of this message | ||
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