Closed Bug 474862 Opened 17 years ago Closed 16 years ago

Create plural rule for Icelandic

Categories

(Core :: Internationalization: Localization, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: kristjanbjarni, Assigned: Mardak)

Details

(Keywords: fixed1.9.1)

Attachments

(1 file)

I am the localizer for the Icelandic language on Mozilla. When I started localizing I choose plural rule #3 from this list: https://developer.mozilla.org/en/Localization_and_Plurals because it was the closest rule to plural rules in my language, but it actually includes an extra plural form (for 0) that isn't needed because in Icelandic there are only two plural rules. The Plural rule for Icelandic is the following: ends in 1, not 11: 1, 21, 31, 41, 51, 61, 71, 81, 91, 101, 121, 131, 141, 151, 161, 171, 181, 191, 201, 221, 231, 241, 251, 261, 271, 281, 291, … everything else: 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 28, 29, 30, 32, 33, … Is it possible to create a new plural rule for Icelandic so that the unnecessary translation for 0 isn't needed?
Assignee: smontagu → nobody
Component: Internationalization → Localization
QA Contact: i18n → localization
Summary: Plural rule for Icelandic → Create plural rule for Icelandic
Attached patch v1Splinter Review
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #368321 - Flags: review?
Attachment #368321 - Flags: review? → review?(gandalf)
Kristjan: Does it mean that algorithm like this matches all cases: if (num%10==1 && num%100!=11) #singular else #plural ?
Yes this algorithm would match all cases.
Attachment #368321 - Flags: review?(gandalf) → review+
Attachment #368321 - Flags: review?(smontagu)
Attachment #368321 - Flags: review?(smontagu) → review+
http://hg.mozilla.org/mozilla-central/rev/ac9deb7fd0c8 Landed on trunk.. do we want this for 3.5? It's not super critical, but when you use this on trunk, you'll need to update the plural strings to use 2 forms instead of 3.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Flags: in-testsuite+
OS: Windows XP → All
Hardware: x86 → All
Resolution: --- → FIXED
Version: unspecified → Trunk
Well as you say it's not critical since I can use the 3 forms with same results. But it would be nice to have it on 3.5 so that I can make the plural changes sooner than later.
Attachment #368321 - Flags: approval1.9.1?
Attachment #368321 - Flags: approval1.9.1? → approval1.9.1+
Keywords: fixed1.9.1
Target Milestone: --- → mozilla1.9.2a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: