>In Russian it's slightly different. There are (generally) 3 variants:
>1. ending with 1 (except 11)
>2. ending with 2,3,4 (except 12,13,14)
>3. 11,12,13,14

That can actually be done with gettext, you have the C "%" operator
available and can do exactly those checks. What you do, you write C
expressions that use "n" as the variable and return either a true or
false value and that will decide wether that plural form will be used.
So in go singular+plural (as that's what english uses) and a count, out
comes what the language needs - based on the expressions the language
needs.

In the end you just move your function into the .po file, kind of, and
then never need to worry about it any more :-)

bye, Georg

Reply via email to