Closed Bug 897523 Opened 12 years ago Closed 12 years ago

[B2G][l10n] Russian: Plural translations for "few" are wrong

Categories

(Mozilla Localizations :: ru / Russian, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stas, Assigned: unghost)

Details

I was toying with plural rules and I realized that the translations for "few" cases in pluralized strings might be wrong. My Russian is a bit rusty, but I think that in the following example, the "few" case (which works for 2, 3, 4) should use "года": years-ago-long[two] = {{value}} года назад years-ago-long[few] = {{value}} лет назад This happens in all date related strings, for minutes, days, weeks, month and years, in shared/date and apps/calendar: https://hg.mozilla.org/gaia-l10n/ru/file/6526ea06089e/shared/date/date.properties#l86 https://hg.mozilla.org/gaia-l10n/ru/file/6526ea06089e/apps/calendar/calendar.properties#l98
Can you confirm that "few" in Gaia is less than 5? Russian has 3 forms of plural - see https://developer.mozilla.org/en-US/docs/Localization_and_Plurals#Plural_rule_.237_.283_forms.29 Where can I find documentation on how to correspond Gecko plurals with Gaia plurals ([few]/[many]/[other])? And what the purpose of {[ plural(value) ]} in Gaia l10n?
As per http://www.unicode.org/cldr/charts/supplemental/language_plural_rules.html#ru, the "few" case mathes the following numbers few 2-4, 22-24, 32-34... {[ plural(value) ]} is simply how the localization library knows that it's supposed to pluralize the string.
(In reply to Staś Małolepszy :stas from comment #2) > As per > http://www.unicode.org/cldr/charts/supplemental/language_plural_rules. > html#ru, the "few" case mathes the following numbers > > few 2-4, 22-24, 32-34... Thanks. It would be nice if it would be documented somewhere on https://developer.mozilla.org/ > {[ plural(value) ]} is simply how the localization library knows that it's > supposed to pluralize the string. Why it's exposed to localizers? There were a lot of cases when localizers had localized strings that should not be localized. Let's not provide us a gun for foot shooting.
Assignee: nobody → unghost
Summary: Plural translations for "few" are wrong → [ru] Plural translations for "few" are wrong
OS: Linux → Gonk (Firefox OS)
Hardware: x86_64 → ARM
Summary: [ru] Plural translations for "few" are wrong → [B2G][l10n] Russian: Plural translations for "few" are wrong
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.