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

Submitted by:  Jure Repinc <jrepin>
Submitted on:  Sun 08 Jun 2008 09:50:20 PM UTC  
 
Category: Plural formsSeverity: 3 - Normal
Item Group: NoneStatus: Not a Bug
Privacy: PublicAssigned to: Bruno Haible <haible>
Open/Closed: Closed

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>
Project AdministratorIn charge of this item.
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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 26 Nov 2016 11:58:02 PM UTChaibleCategoryNone=>Plural forms
    Mon 09 Jun 2008 08:59:35 PM UTChaibleStatusNone=>Not a Bug
      Assigned toNone=>haible
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1