Re: More ideas for translation support (long)

From: Date: Mon, 23 Jul 2001 14:56:45 +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-1248@lists.php.net to get a copy of this message
lists+smarty@oeri.ch wrote:
As for the new resource handler: What about the next include? I may well include en.foo.tpl... But what if foo.tpl includes another file? The language information is lost there, isn't it? yeah, but I set a smarty variable defining the current language, and
always {include file="lang:$LANG.foo.tpl"} My routine to handle lang: filter first checks if $LANG.foo.tpl is an actual template (it's sometimes easy to maintain multiple templates). If you it looks for template foo.tpl, passes it through a translation routine and sends it back. Mike

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