Bug 105141 - "%1: %2 %3 Packages" doesn't support plural form correctly
Summary: "%1: %2 %3 Packages" doesn't support plural form correctly
Status: RESOLVED FIXED
Alias: None
Product: kpackage
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Toivo Pedaste
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-05 15:39 UTC by Andrey Cherepanov
Modified: 2005-07-01 00:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Cherepanov 2005-05-05 15:39:24 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    RedHat RPMs
OS:                Linux

There are two line in kpackage.po:
'%1: 1 %2 Package' and '%1: %2 %3 Packages'. This is error for correct form for translation this plural form! For example, Russian language has three plural forms.
Please, change pkgOptions.cpp:201 like:
'_n: %1 is action, %2 is type of package and %n - number of packages\n
%1: %n %3 package\n
%1: %n %3 packages'
and change output function too.
Comment 1 Richard Lärkäng 2005-07-01 00:50:09 UTC
SVN commit 430326 by larkang:

Fix plural forms
BUG: 105141

Is it possible to add a translator comment when using plural forms?


 M  +1 -5      pkgOptions.cpp  


--- trunk/KDE/kdeadmin/kpackage/pkgOptions.cpp #430325:430326
@@ -202,11 +202,7 @@
     }
   }
 
- if (plist.count() == 1) {
-   s = i18n("%1: 1 %2 Package").arg(insType).arg(pkgInt->name);
- } else {
-   s = i18n("%1: %2 %3 Packages").arg(insType).arg(plist.count()).arg(pkgInt->name);
- }
+ s = i18n("%1: 1 %2 Package","%1: %n %2 Packages",plist.count()).arg(insType,pkgInt->name);
  title->setText(s);
 
   for (QStringList::Iterator pit = plist.begin(); pit != plist.end(); ++pit ) {