kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #32569
undefined plural form(s)
Hi,
we have quite a few strings that are pluralized with "(s)". IMO, that
looks ugly.
A few of them can be resolved by using
wxPLURAL( "%d item", "%d items", num )
to get the appropriate string. In the C locale, this resolves to
( ( num == 1 ) ? "%d item" : "%d items" )
while other languages can specify the formula to select the appropriate
plural form in the .po file[1].
It's less obvious what would be correct for the GUI strings (mostly
menus and tooltips) where the actual number of items is not known when
the string is needed. Any opinions on that?
Simon
[1]
https://www.gnu.org/software/gettext/manual/html_node/Translating-plural-forms.html#Translating-plural-forms
Attachment:
signature.asc
Description: OpenPGP digital signature
Follow ups