Re: I18N for PEAR (before Language class for PEAR?)
| From: | Wolfram Kriesing | Date: | Mon, 11 Feb 2002 11:40:54 +0000 |
| Subject: | Re: I18N for PEAR (before Language class for PEAR?) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4597@lists.php.net to get a copy of this message | ||
On Monday 11 February 2002 12:17, Naoki Shima wrote:
> From: Wolfram Kriesing [mailto:lists@kriesing.de]
> >There are a lot of defines (the iso codes) for this I18N stuff,
> > how can we best do that?
> >1.we can define all the iso-codes in a file, like: array(
> >'en'=>'english', ... ) and
> >array('en_US'=>'american english',
> > ...), etc.
> >This will make the php-code quite big. And not all variables are
> >needed all the time. This might be a performance issue, or not?
> >(Where are the PHP-core experts :-) )
>
> I have already done that in Locale_Language which contains contain
> ISO 639-1 code to Language name mapping.
> It is defined in array.
> Also, Locale_Country contains ISO-3166 code to Country name
> mapping. see: http://phplocale.sourceforge.net/
i am looking at your classes and i have seen that, i just want to
evaluate which is the best method to do it, since we do not only have
those iso-codes to provide.
but also the locales like "en_US" and may be the 3-letter code (which
is a lot more) and may be some others, or am i wrong?
--
Wolfram
... translating template system ...
http://wolfram.kriesing.de/SimpleTemplate