Proper plural handling with Wx::gettext()
|Reported by:||zenogantner||Owned by:||zenogantner|
Wx::gettext() seems only to work in its simple form:
As it (at least I think so) should roughly correspond to
wxGetTranslation - see http://docs.wxwidgets.org/stable/wx_stringfunctions.html#wxgettranslation for reference - it should also support the correct handling of plural forms:
Wx::gettext('%d thing', '%d things', n)
where n is the current number of things. This allows gettext to choose the right string for output, no matter how your language handles numbers.
Just having two different forms (singular and plural) and getting them via the simple Wx::gettext() is not sufficient, because there are languages that have a thing called dual (like Standard Modern Arabic), some Slavic languages handle low certain numbers differently from high numbers, etc.
I sent an e-mail to the WxPerl? mailing list about the problem.
Mattia Barbon responded quite fast on a CPAN bug ticket, so I hope for a quick answer on that ;-)
Wx Version=(0.9701) wxWidgets 2.8.10 unicode=(1)