Closed
Bug 474862
Opened 17 years ago
Closed 16 years ago
Create plural rule for Icelandic
Categories
(Core :: Internationalization: Localization, defect)
Core
Internationalization: Localization
Tracking
()
RESOLVED
FIXED
mozilla1.9.2a1
People
(Reporter: kristjanbjarni, Assigned: Mardak)
Details
(Keywords: fixed1.9.1)
Attachments
(1 file)
|
2.56 KB,
patch
|
zbraniecki
:
review+
smontagu
:
review+
beltzner
:
approval1.9.1+
|
Details | Diff | Splinter Review |
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?
Updated•16 years ago
|
Assignee: smontagu → nobody
Component: Internationalization → Localization
QA Contact: i18n → localization
Summary: Plural rule for Icelandic → Create plural rule for Icelandic
| Assignee | ||
Comment 1•16 years ago
|
||
| Assignee | ||
Updated•16 years ago
|
Attachment #368321 -
Flags: review? → review?(gandalf)
Comment 2•16 years ago
|
||
Kristjan:
Does it mean that algorithm like this matches all cases:
if (num%10==1 && num%100!=11)
#singular
else
#plural
?
| Reporter | ||
Comment 3•16 years ago
|
||
Yes this algorithm would match all cases.
Comment 4•16 years ago
|
||
Comment on attachment 368321 [details] [diff] [review]
v1
r+
Attachment #368321 -
Flags: review?(gandalf) → review+
| Assignee | ||
Updated•16 years ago
|
Attachment #368321 -
Flags: review?(smontagu)
Updated•16 years ago
|
Attachment #368321 -
Flags: review?(smontagu) → review+
| Assignee | ||
Comment 5•16 years ago
|
||
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
| Reporter | ||
Comment 6•16 years ago
|
||
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.
| Assignee | ||
Updated•16 years ago
|
Attachment #368321 -
Flags: approval1.9.1?
Updated•16 years ago
|
Attachment #368321 -
Flags: approval1.9.1? → approval1.9.1+
Comment 7•16 years ago
|
||
Comment on attachment 368321 [details] [diff] [review]
v1
a191=beltzner
| Assignee | ||
Comment 8•16 years ago
|
||
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.
Description
•