Re: Translation

From: Date: Fri, 22 Mar 2002 14:50:16 +0000
Subject: Re: Translation
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3277@lists.php.net to get a copy of this message
On 16 marca 2002 at 05:25:58 olivier hericord <ohericord@free.fr> wrote: > There's a lot of way to achieve a translation of a page... > The text that has to be translated can be > -Static > -Dynamic > > An already given solution is to achieve the translation by creating a .conf > file containing something like that: > > [en] > hello="hello" > other=... > > [de] > hello="Bonjour" > other=... > > The template will look like this: > > {config_load file="language.conf" section="$language"} > <html> > <body> > {#hello#} > </body> > </html> > > It would be possible to use this way to translate a dynamic text if it was > possible to write something like that in a Template : {#$TEXT#} > $TEXT is a variable containing the name of the config variable that contains > the text u want to translate.... I agree with you with 100%. -- Jarek

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