kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #32571
Re: undefined plural form(s)
On Thu, Dec 21, 2017 at 07:38:25PM +0100, Simon Richter wrote:
> 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
I think this is far more professional.
Great catch Simon & thanks also for having updated the strings updater script!
--
Marco Ciampa
I know a joke about UDP, but you might not get it.
------------------------
GNU/Linux User #78271
FSFE fellow #364
------------------------
References