[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    Re: Different formulas for plurals in Qt and KDE
From:       "Soenke Dibbern" <s_dibbern () web ! de>
Date:       2014-05-18 16:55:11
Message-ID: op.xf2el9gqhcj86w () smtp ! web ! de
[Download RAW message or body]

Op Fr., den 16. Mai.'14, hett Chusslove Illich Klock 15.08 schreven:

>> [: Alexander Potashev :]
>> Or may be there are no languages that both use PO Summit and have
>> different plural formulas for tr() and i18n(), and so there is no
>> conversion to do by PO Summit?
>
> Well there is at least sr and nds. I've now added a plural conversion  
> hook,
> to enable it one adds something like this to the language-specific summit
> configuration file  
> trunk/l10n-support/<lang>/summit/messages.extras.summit:
>
>   from pology.resolve import convert_plurals
>   from pology.proj.kde.cattype import is_qt_cat
>
>   plmap_qt = [(0, 0), (1, 1), (2, 2)] # source->destination form mapping
>   plhead_qt = "nplurals=3; plural=....." # destination plural header
>   S.hook_on_scatter_cat.extend([
>       (convert_plurals(plmap_qt, plhead_qt), "future", is_qt_cat),
>   ])
>
> In case of Serbian only the fourth form should be removed and the first
> three forms retain same places, so the mapping is [(0, 0), (1, 1), (2,  
> 2)]
> as above.
>
> I can add this myself for nds (and anyone else), I only need the plural
> formula that Qt assumes.
>

Moin Chusslove,

btw, thanks for all your work! I have to admit that I have not the
smallest clue what the correct plural formula would be - I think I've read  
somewhere something about the tupels you mention above during the last few  
weeks, but I wasn't able to find it again...

All I can say is that nds handles plurals just like English or German.

Gröten
Sönke
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic