Re: using different languages in my Templates

From: Date: Fri, 20 Dec 2002 15:17:12 +0000
Subject: Re: using different languages in my Templates
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6917@lists.php.net to get a copy of this message
At http://smarty.incutio.com/?page=SmartyMultilanguageSupport I've posted a short article how to extend Smarty to use special tags within your template. It's not 100% finished yet and has smaller bugs in source but hey - it works. Using this classes you can use special marked tags ##TAG_TO_TRANSLATE## which will be automatically replaced at compile time by the appropriate language text stored in separate language files. This is very fast and has no performance issues like custom functions {translate text='foo'} or a output filter and so on. bye, André "Andreas Korthaus" <akorthaus@web.de> schrieb im Newsbeitrag news:200212201242.gBKCgvX26347@mailgate5.cinetic.de... > Hallo! > > I'm thinking of using different languages (english, german, french and spanish) in my templates, but I have no (good) idea how to do this. > > Should I use one template vor each language, or should I work with variables in my templates, for example {$title}, and decide in my php-Script which language should be used? > > What would you recommend here? > > Kind regards, > Andreas > > ____________________________________________________________________________ __ > PREMIERE: Der Countdown laeuft! 3 Monate gratis + d-box 1 ab 1 Euro > nur noch wenige Tage zu haben! > http://premiere.web.de/?mc=999927&lp=2 >

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