Re: More ideas for translation support (long)

From: Date: Mon, 23 Jul 2001 16:15:22 +0000
Subject: Re: More ideas for translation support (long)
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-1251@lists.php.net to get a copy of this message
Hi, > What I think we must insist on, is a compiled version per language (for > performance reasons). Agreed. > Actually, this is probably the only point left as we have > prefilters that can do the translation! Hmm why not make a special file with transaltions. Say a XML file with strings and their representative translation. The temlate is done in e.g. englisch: index.tpl On compile time the xml is read and the strings for the languages ripped into the compiled versions of the template that are named something like: index.de.tpl.php So on runtime the language is detected (application space) and then the corresponding file included. Binarycloud is going to do that this way. I'm not quite sure how I stand on this translation topic. But I thinks translation should be handled by the application not by the template. Nevertheless if it will be included with smarty then the above way is a candidate I would go for. Andi

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