[PATCH 2/2] Fix plurals translation

Sergey Starosek sergey.starosek at gmail.com
Thu Oct 29 11:59:06 PDT 2015


On Thu, Oct 29, 2015 at 9:25 PM, Dirk Hohndel <dirk at hohndel.org> wrote:

> > > So we had a bunch of problems with the plural forms and just dropped
> them
> > > for 4.5
> > >
> > > Are these resolved?
> > >
> >
> > I've spotted only two using 'git grep'. Likely this needs more thorough
> > search. And/or a kind of guidelines
> > for coders/translators.
>
> I seem to remember that the problem was that the translations didn't
> actually work correctly.
>
>
> https://www.mail-archive.com/subsurface@subsurface-divelog.org/msg06917.html
>
> So unless this has been resolved, I don't think this patch makes sense :-(
>

Tested locally with 'linguist' (not sure about transifex) against en-GB and
ru-RU locales. Works for me (c).
I.e. I get

   - 1 *дайв* for one dive in RU
   - 2-3-4 *дайва* for 2-4 dives
   - 5-... *дайвов* for more than four dives

One have to explicitly provide translations for singular (Rule 1), plural
(Rule 3) and dual (Rule 2 in case of 'ru' locale).
Also one have to translate plural forms in the base (en) locale and load it
explicitly in order to make plurals work.

What am I missing?

Sergey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.subsurface-divelog.org/pipermail/subsurface/attachments/20151029/6fc216ab/attachment.html>


More information about the subsurface mailing list