Re: Re: How to i18n better?
Norbert Lindenberg ♻ <[email protected]> Mon, 3 May 2010 09:04:51 -0700
| Newsgroups | gmane.comp.php.internationalization |
|---|---|
| Message-ID | <[email protected]> |
ICU, the internationalization library underlying the PHP intl =20 extension, has had support for plural formats since version 4.0, and =20 added support for gender-based formatting in version 4.4. Both are =20 available through pattern strings for the PHP MessageFormatter class. =20= 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 Norbert On May 2, 2010, at 21:19 , Tomas Kuliavas wrote: > Andre Polykanine ra=C5=A1=C4=97: >> Hello Tomas, >> >> A good point about plurals! How do I handle them if I have Ukrainian, >> Russian, and English interfaces? > > Check gettext manual (http://www.php.net/ngettext). > > Either you use gettext or you are doomed to reinvent it. > > --=20 > PHP Unicode & I18N Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php