Fixing plurals for gd

Asked by Akerbeltz

Hiya. The plurals for this locale are currently wrong, not entirely sure what they're set to (it brings up 3 options mostly) but we need 4 plural forms for Scottish Gaelic (gd). The correct plurals are listed on CLDR (http://unicode.org/cldr/trac/browser/trunk/common/supplemental/plurals.xml) but if we need a different kind of format, please let me know?
Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Curtis Hovey (sinzui) said :
#1

There doesn't appear to be agreement about the expression for gd. Some have rules for numbers below 20, others 40:
    https://bugzilla.mozilla.org/show_bug.cgi?id=566859
    http://translate.sourceforge.net/wiki/l10n/pluralforms

Lp believes there are 3 plurals determined by this expression: n < 2 ? 0 : n == 2 ? 1 : 2

This might be the correct setting to match singular, dual and plural numbers.
    plurals: 4
    expression: (n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3"

Can you confirm that this looks correct.

Revision history for this message
Akerbeltz (fios) said :
#2

Hi Curtis!

The Lp formula is definitely wrong.

They're actually both in agreement (i.e. over 20, we had somehow accidentally gotten 40 in there to begin with) - you just have to scroll down a bit on the Mozilla bug to 2010-07-14 03:09:22 PDT and you'll see that the rule added was

> // 4: Scottish Gaelic
>- [3, function(n) n==1?0:n==2?1:2],
>+ [4, function(n) n==1||n==11?0:n==2||n==12?1:n>0&&n<20?2:3]

So yes, since they're all the same and the one above you posted looks like the one from Sourceforge, that would be correct for Gaelic.

Revision history for this message
Curtis Hovey (sinzui) said :
#3
Revision history for this message
Akerbeltz (fios) said :
#4

We can take the dots off the first two lines as they're finite lists i.e.
Form 0 for 1, 11
Form 1 for 2, 12

Other than that it looks fine.

Can you help with this problem?

Provide an answer of your own, or ask Akerbeltz for more information if necessary.

To post a message you must log in.