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