Re: Re: How to i18n better?
| From: | Darren Cook | Date: | Tue, 04 May 2010 00:08:15 +0000 |
| Subject: | Re: Re: How to i18n better? | ||
| References: | 1 2 3 4 5 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-1403@lists.php.net to get a copy of this message | ||
>> Either you use gettext or you are doomed to reinvent it.
...
> ICU, the internationalization library underlying the PHP intl extension,
> has had support for plural formats since version 4.0, and added support
> for gender-based formatting in version 4.4.
Has anyone here used gettext and then switched to the ICU solution, and
can comment on what it does better than gettext, and what they feel is
missing?
An interesting article here, see section 10.2:
http://wiki.zope.org/zope3/i18noverview.html
My interpretation of this is they wanted to use ICU for Zope3 but it was
too big to port to python, so they borrowed some of its ready-made
translation data, and then used gettext because it was already available
for python.
Darren
> Both are available through
> pattern strings for the PHP MessageFormatter class. See:
> http://docs.php.net/manual/en/class.messageformatter.php
> http://icu-project.org/apiref/icu4c/classPluralFormat.html
> http://icu-project.org/apiref/icu4c/classSelectFormat.html
>
>> Check gettext manual (http://www.php.net/ngettext).
--
Darren Cook, Software Researcher/Developer
http://dcook.org/gobet/ (Shodan Go Bet - who will win?)
http://dcook.org/work/ (About me and my work)
http://dcook.org/blogs.html (My blogs and articles)