If you look at the 1st string of the group, you'll see the name of the
variable used and you can add it to your plural forms.
In this case is 'n' (the most common)
https://hg.mozilla.org/gaia-l10n/en-US/file/86f3073e71a1/apps/sms/sms.properties#l7
But in this case is 'value'
https://hg.mozilla.org/gaia-l10n/en-US/file/86f3073e71a1/apps/system/system.properties#l489
Franesco
2014-10-27 21:22 GMT+01:00 Mihovil Stanic <
moz...@miho.im>:
> Francesco, Michael,
>
> Thank you for reply.
> I checked source code Francesco linked and only 1, few, many are mentioned
> (and others as exception).
> I have one more question.
>
http://mozilla.locamotion.org/hr/firefoxos_2.1/translate/
> apps/email/email.properties.po#unit=7806513
>
> In english there is explicitly number 1 in string. Since in croatian this
> plural form is not only for 1, it's also for 21, 31, 41... I replaced
> number 1 with {{ n }}. Hope that's correct and won't break anything.
>
> Mihovil
>
> 26.10.2014. u 20:00,
dev-l10n...@lists.mozilla.org je napisao/la:
>
>> Date: Sat, 25 Oct 2014 21:06:41 +0200
>> From: "Francesco Lodolo [:flod]" <
fl...@lodolo.net>
>> To: Mozilla l10n Mailing List <
dev-...@lists.mozilla.org>
>> Subject: Re: Firefox OS plural forms
>> Message-ID:
>> <CAGB+t-eApyNiC7urx=XroA-BPX641q5CaX-zrPTxKXFdRffp_w@
>>
mail.gmail.com>
>> Content-Type: text/plain; charset=UTF-8
>>
>> Hi Mihovil,
>> I'm not sure if there's documentation available about Firefox OS plural
>> forms (I'll ask on Monday).
>>
>> In any case, for Croatian the mapping should be this:
>>
>> - ends in 1, excluding 11: [one]
>> - ends in 2-4, excluding 12-14: [few]
>> - everything else: [many]
>>
>> There are 2 other forms that needs to be localized (as explained in that
>> document, you need to fill all the forms, even if your locale has less):
>>
>> - [zero] is often a special case, like "no message selected" without
>> the
>> number
>> - [other] is usually the default fallback, in your case it will be the
>> same as [many]
>>
>> All this based on the l10n.js code (rule for hr is #11)
>>
https://github.com/mozilla-b2g/gaia/blob/master/shared/
>> js/l10n.js#L405-L418
>>
>> Francesco
>>
>>
>>
>>