Using smarty with languages other than English

From: Date: Wed, 02 Oct 2002 01:28:19 +0000
Subject: Using smarty with languages other than English
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6062@lists.php.net to get a copy of this message
Hi, I'm hoping to use Smarty for templating languages. 1 template, all text stored in a config file and the section is the language I want used. Questions relating to this are... (1) Smarty seems to support multi-byte languages like Japanese. Can someone confirm this for me please? (2) In order to do this I am trying to use a PHP variable storing the section name, eg: $lang = 'en'; .. and then use this variable when loading the config file for the template .. {* Smarty Template *} {config_load file="index.cfg" section=$lang} But this doesn't seem to be working for me (it only works if I hard-code the section name in the template). (3) Although I have a encoding specified in a meta tag in the file, the browser doesn't seem to recognize that the encoding is what I tell it (eg Shift_JIS for the Japanese version). Is there something special that I need to do to ensure that the page encoding is set to what I want it to be? Regards, Brodie.

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