[jboss-dev] jboss i18n and localization (l10n)
Jens Petersen
petersen at redhat.com
Sun Jul 29 21:35:16 EDT 2007
Max Rydahl Andersen さんは書きました:
>> System.out.println(num + " file(s) changed");
>>
>> This doesn't map well to other languages because many of them have
>> different rules for plurals (some have as many as 3 with a special
>> form for zero).
>
> huh ? java localization has plural handling:
> http://java.sun.com/docs/books/tutorial/i18n/format/choiceFormat.html
But this requires actually writing a little code to handle that.
Gettext .po files can handle plurals directly without needing to
write any extra code by hand.
> What else does gettext do ?
Another nice thing about gettext is that the original English strings
are kept in the source file - no need to use string labels for strings.
And .po files which contain a copy of the original strings and their
translations next to them are much easier for translators to work with.
Jens
More information about the jboss-development
mailing list