SV: Multilanual sites using Smarty
| From: | Jonas Bengtsson | Date: | Tue, 13 Feb 2001 22:38:59 +0000 |
| Subject: | SV: Multilanual sites using Smarty | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-121@lists.php.net to get a copy of this message | ||
Thanks! I will check both this and http://www.php.net/gettext ...
But after a quick glance config files with Smarty seems easier. Very little
extra code to use the strings. And because I will use Smarty anyway it would
have felt more secure to not use another third-party component.
/Jonas
> -----Ursprungligt meddelande-----
> Från: Maciek Uhlig [mailto:muhlig@us.edu.pl]
> Skickat: den 13 februari 2001 23:05
> Till: Jonas Bengtsson; smarty@lists.ispi.net
> Ämne: RE: [smarty] Multilanual sites using Smarty
>
>
> Check http://stphp.sourceforge.net .
>
> Maciek
>
> > -----Original Message-----
> > From: Jonas Bengtsson [mailto:jonas.b@home.se]
> > Sent: Tuesday, February 13, 2001 11:01 PM
> > To: smarty@lists.ispi.net
> > Subject: [smarty] Multilanual sites using Smarty
> >
> >
> > Hello,
> > I'm developing a web-based system that shall support many languages. It
> > shall be as easy as possible to add and change languages.
> > One way to accomplish this is to use config files and have all
> strings in
> > them. One config file per language would be easiest when adding new
> > language. But will this be to inefficient? Because there are no
> > possibility
> > to choose multiple sections in config_load you must perform multiple
> > config_load.
> > There are also problems when I have to choose which string to
> > show from the
> > php script. Then I have to first config_load in my php script to get the
> > string I want (for instance an error message) and then in the tpl script
> > config_load for all other strings. This is not to prefer. I want
> > to load all
> > strings on one place.
> > Is there a better way to solve this?
> >
> >
> > Thanks in advance,
> > Jonas Bengtsson
> >
> >
> > ---
> > You are currently subscribed to smarty as: muhlig@us.edu.pl
> > To unsubscribe send a blank email to $subst('Email.Unsub')
> > Visit Smarty's homepage at
> > http://www.phpinsider.com/php/code/Smarty/
> >
> >
>