Internationalization
| From: | Garland foster | Date: | Tue, 30 Jul 2002 14:19:28 +0000 |
| Subject: | Internationalization | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5511@lists.php.net to get a copy of this message | ||
Hi,
I want to discuss which is the best approach for internationalization using Smarty,
I thought about using config files and loading the specified config section for each
page, then displaying the strings as {#string_name#}.
The main problem with this approach are error messages, error messages are
generated at the logic level of the application in contrast with application strings
that are generated at the presentation level (templates). If I want to go to the
"error template" displaying something like:
"the username $user doesn't exist" how can I do it using config files?
Other ideas or approaches?
Thanks,
Garland