Opened 10 years ago

Last modified 10 years ago

#893 assigned enhancement

Proper plural handling with Wx::gettext()

Reported by: zenogantner Owned by: zenogantner
Priority: minor Milestone:
Component: External dependency Version: trunk
Keywords: i18n Cc:


Wx::gettext() seems only to work in its simple form:

Wx::gettext('My message')

As it (at least I think so) should roughly correspond to
wxGetTranslation - see 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)

Change History (2)

comment:1 Changed 10 years ago by zenogantner

  • Version changed from 0.58 to trunk

comment:2 Changed 10 years ago by zenogantner

  • Owner set to zenogantner
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.