bugGNU gettext - Bugs: bug #23526, Plural form for Slovenian (sl) is...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #23526: Plural form for Slovenian (sl) is wrong and should be changed

Submitter:  Jure Repinc <jrepin>
Submitted:  Sun 08 Jun 2008 09:50:20 PM UTC
   
 
Category:  Plural forms Severity:  3 - Normal
Item Group:  None Status:  Not a Bug
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed

Sat 25 Aug 2018 02:44:41 PM UTC, comment #2: 

Found this only now. Please see also #45591. This is a bug because being taken as a reference the chosen plural string impacts all other projects.

Bernard Banko <beernarrd>
Mon 09 Jun 2008 08:59:35 PM UTC, comment #1: 

Both formulas that you mention are equivalent except for a
permutation: While the one from the gettext manual puts the
singular case first and the most general case last. the
"Slovenian team" formula puts the most general case first.

Both formulas are correct; it's only a matter of taste or habit
which to use.

However. when changing the header entry of a PO file from one form
to the other, one obviously also has to update the msgstr[0,1,2,3]
forms by performing the permutation (a rotation by 90 degrees in
this case). If the person who converted the KDE 3 PO files to KDE 4
did not do this rotation, the resulting PO files are buggy, of
course.

I don't think that any of the gettext tools (msgmerge, msgcat, ...)
have this buggy behaviour, therefore I am closing this as "Not a
bug". If you have evidence to the contrary, feel free to post
a recipe to reproduce the bug, and reopen this issue.

Bruno Haible <haible>
Group administrator
Sun 08 Jun 2008 09:50:20 PM UTC, original submission:  

A few months ago when we started translating the new KDE 4 series into Slovenian we noticed a strange thing. Plural forms were not shown correctly while in KDE 3 they were OK. As it turned out, during the conversion of *.po files from KDE 3 to KDE 4 all the plural forms in header were changed to:

nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);

All newly created *.po files also had this header by default. It looks like this is what gettext uses for Slovenian plural form by default. Slovenian team from the very beginings uses this form:

nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n%100==4 ? 3 : 0);

You can see that this is so from KDE translations and from translations on http://translationproject.org/team/sl.html

So what we are asking is if gettext could be fixed to use the established second form, that is:

nplurals=4; plural=(n%100==1 ? 1 : n%100==2 ? 2 : n%100==3 || n%100==4 ? 3 : 0);

We have also noticed that the documentation should be fixed as well.

Jure Repinc <jrepin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by beernarrd (Posted a comment)
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by jrepin (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-26 haible CategoryNone Plural forms
    2008-06-09 haible StatusNone Not a Bug
        Assigned toNone haible
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code