Translation

From: Date: Sat, 16 Mar 2002 04:25:58 +0000
Subject: Translation
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3096@lists.php.net to get a copy of this message
Hi, 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's not a perfect solution , because sometimes u want to translate dynamic Text. 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....

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