Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ONE without placeholder & released languages question

6 views
Skip to first unread message

Michael Bauer

unread,
Jul 11, 2013, 6:32:04 PM7/11/13
to Mozilla l10n
Updating the mobile translations, I've come across this one:

You have one try left to enter the correct code before locking the SIM card.

apps/communications/ftu/ftu.properties.po
pinAttemptMsg2[one]

The problem is that the plural form ONE in Gaelic (and a lot of other
languages) covers not just one but (in our case) 1 and 11. Can I replace
the word 'one' with {{n}} to force the correct plural behaviour?

If so, a note would be handy in these strings that in languages with
complex behaviour for ONE this can be stated using {{n}}

Also, since Spain has now got its first handsets - do they have
Basque/Galician/Catalan/Asturian on them? Has anyone seen?

Michael

Axel Hecht

unread,
Jul 12, 2013, 2:22:14 AM7/12/13
to
On 7/12/13 12:32 AM, Michael Bauer wrote:
> Updating the mobile translations, I've come across this one:
>
> You have one try left to enter the correct code before locking the SIM
> card.
>
> apps/communications/ftu/ftu.properties.po
> pinAttemptMsg2[one]
>
> The problem is that the plural form ONE in Gaelic (and a lot of other
> languages) covers not just one but (in our case) 1 and 11. Can I replace
> the word 'one' with {{n}} to force the correct plural behaviour?

Yes, that will work. In this particular case, you might be able to
assume that n<<10.

Side question, this probably also affects all those plural forms in
shared/date/date.properties, right? Does Gaelic for example have a word
for tomorrow, though?

Some of these call for non-standard plurality handling, and it'd be good
to have a list of those.

That said, I'm just freaking out about 'zero' not being reachable in
quite a few of our plural forms, posting to .gaia about that next.

> If so, a note would be handy in these strings that in languages with
> complex behaviour for ONE this can be stated using {{n}}

I don't think it's worth commenting, this is part of how the plural code
works in l10n.js in general. Just one of the artifacts that folks need
to learn about, I guess.

> Also, since Spain has now got its first handsets - do they have
> Basque/Galician/Catalan/Asturian on them? Has anyone seen?

Nope, they're not on there. There are a variety of internal threads
going top-down on language choice on mobile now. I'm working on making
at least some of them public.

Technically, it's surprisingly hard what one needs to do to have a
language working, once you own the full stack. Localization is just one
of them. I'm driving getting a list, and descriptions that allow us to
file bugs on each.

Axel

Michael Bauer

unread,
Jul 12, 2013, 6:53:53 AM7/12/13
to dev-...@lists.mozilla.org

12/07/2013 07:22, sgrìobh Axel Hecht:
>
> Yes, that will work. In this particular case, you might be able to
> assume that n<<10.
Ok, thanks
>
> Side question, this probably also affects all those plural forms in
> shared/date/date.properties, right? Does Gaelic for example have a
> word for tomorrow, though?
>
> Some of these call for non-standard plurality handling, and it'd be
> good to have a list of those.
You mean things like

daysAgo-long[one] = yesterday

Yes, we do have a word and it is problematic though perhaps not in the
way you meant. There's quite a lot of languages (Gaelic being one of
them) which have precomposed names for days going forward or backward
more than one day. In our case:

3, 4... days ago = 3, 4 làithean air ais (from here further back it's
normal plurals using 'day')
day before yesterday = a-bhòin-dè
yesterday = an-dè
today = an-diugh
tomorrow = a-màireach
day after tomorrow = an-earar
2 days after tomorrow = an-eararais
in 4, 5... days = ann an 4 làithean (for here further forward it's
normal plurals using 'day')

Not sure if that's what you meant but for certain, it sounds very
strange in such languages to use 'in x days' when there is a different
word that should be used.

>
> Nope, they're not on there. There are a variety of internal threads
> going top-down on language choice on mobile now. I'm working on making
> at least some of them public.
>
> Technically, it's surprisingly hard what one needs to do to have a
> language working, once you own the full stack. Localization is just
> one of them. I'm driving getting a list, and descriptions that allow
> us to file bugs on each.
Ok, looking forward to it :)

Thanks!

Michael

Axel Hecht

unread,
Jul 12, 2013, 8:39:38 AM7/12/13
to
The context is: we're hoping to convince gaia to convert to l20n, where
you can use different plural forms depending on context. And this looks
like an example where a special plural form would be useful.

Axel
0 new messages