Re: Translation

From: Date: Fri, 22 Mar 2002 15:10:21 +0000
Subject: Re: Translation
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3278@lists.php.net to get a copy of this message
So the question is, has anyone looked into creating a plugin for static and dynamic translation? KT -----Original Message----- From: programisci_listy [mailto:programisci_listy@murator.com.pl] Sent: Friday, March 22, 2002 6:50 AM To: smarty@lists.ispi.net Cc: smarty@lists.ispi.net Subject: [smarty] Re: Translation 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 --- You are currently subscribed to smarty as: mpn@3dgamelink.com To unsubscribe send a blank email to $subst('Email.Unsub') Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

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