SV: [SMARTY] Using smarty with languages other than English
| From: | Paolo Nesti Poggi | Date: | Wed, 02 Oct 2002 06:43:53 +0000 |
| Subject: | SV: [SMARTY] Using smarty with languages other than English | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6068@lists.php.net to get a copy of this message | ||
I can't see why it shouldn't work the way you do. So I would look into the
*scope* property of config_load.
It can be what makes the difference depending on your app's structure.
Paolo
> -----Oprindelig meddelelse-----
> Fra: Brodie Thiesfield [mailto:bt@jellycan.com]
> Sendt: 2. oktober 2002 03:28
> Til: smarty-general@lists.php.net
> Emne: [SMARTY] Using smarty with languages other than English
>
>
> 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.
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>