ay 12, 2008 5:23 PM
> To: Gergely Hodicska
> Cc: php-i18n@lists.php.net
> Subject: Re: [PHP-I18N] intl extension
>
> Hi!
>
> > 1.) Gettext way: I call a format_plural($count, '1
> comment', '$count
> > comments'), and this function can handle s
> - Is there now standard like way to handle plurals?
Those who don't use gettext are doomed to reimplement it.
--
Tomas
--
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
1.) Gettext way: I call a format_plural($count, '1 comment', '$count
comments'), and this function can handle special cases (for example
Russian), and the given language file can store multiple plural format.
2.) "All-in-one" way: only one string belongs to one string id, and this
string
> entry (so the data model is a little strange, it holds some redundancy).
How many of these do you have? A little redundancy is OK, I think.
> o My other problem is that for this structure it would be not easy to
> create a logical/usable user interface for translating.
Don't do that. Transl
Hi!
In MessageFormatter, you have a way to use conditionals (see ICU docs
here:
http://icu-project.org/apiref/icu4c/classMessageFormat.html#_details)
which may allow you to do correct plurals. Of course, you would still
have to supply the correct words (room/rooms, etc.) in the format.
Than
Hi!
I would have some question:
- If I should have to came out to a site with multi language support in
1-2 months is it worth to rely on this extension? (Will be part of 5.3?)
Yes, I think so.
- Is there now standard like way to handle plurals?
In MessageFormatter, you have a way to use c
Hi!
I have released a beta version of the intl extension (ICU
implementation). It is documented here:
http://docs.php.net/manual/en/book.intl.php
I just started to get familiar with intl while I read your article in
phparchitect and I like a lot of features of this extension.
I would have so