Re: Multi-language and Smarty
| From: | Andrei Zmievski | Date: | Tue, 29 Jan 2002 14:32:41 +0000 |
| Subject: | Re: Multi-language and Smarty | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2601@lists.php.net to get a copy of this message | ||
On Tue, 29 Jan 2002, Phillip Smith wrote:
> I guess my question on this approach is, as the conf starts getting
> larger (depending on how many strings you place in it), does Smarty
> start incurring a noticable overhead delay in parsing/loading/reading
> it?
Not really. Config files are parsed only once and then stored in memory.
> I suppose you could create a conf for each language, and use the
> [] sections to break your strings up into different groups. Then
> you'd have something like:
>
> english.conf:
>
> [login]
> message="To login, type your username"
>
> ...
>
>
> Doesn't PHP support .po files?
Yep, through gettext(). We found it to be more of a hassle though.
-Andrei
* Black holes are where God divided by zero. *