Bug 282829 - gettext should use standard plurals coding for strings 95 & 96
Summary: gettext should use standard plurals coding for strings 95 & 96
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-i18n (show other bugs)
Version: 2.2.0
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 16:38 UTC by Bjørn Steensrud
Modified: 2017-08-18 13:15 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 2.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bjørn Steensrud 2011-09-26 16:38:25 UTC
Version:           unspecified (using KDE 4.5.0) 
OS:                Linux

string 95 is "Unable to create %1 element%2!" 
It seems that %2 is either empty (for %1 = 1) or "s" (for %1 > 1). 
Such a construct can not be translated. 

Reproducible: Didn't try

Steps to Reproduce:
Not applicable

Actual Results:  
Not applicable

Expected Results:  
Not applicable
Comment 1 caulier.gilles 2011-09-28 07:56:34 UTC
M  +2    -3    photolayoutseditor/widgets/canvas/Scene.cpp

http://commits.kde.org/kipi-plugins/790de931fe41152faf7e0c8b257ea6e9d180d5f5

diff --git a/photolayoutseditor/widgets/canvas/Scene.cpp b/photolayoutseditor/widgets/canvas/Scene.cpp
index da1fd54..8e185e3 100644
--- a/photolayoutseditor/widgets/canvas/Scene.cpp
+++ b/photolayoutseditor/widgets/canvas/Scene.cpp
@@ -1377,9 +1377,8 @@ Scene * Scene::fromSvg(QDomElement & sceneElement)
    if (errorsCount)
    {
        KMessageBox::error(0,
-                           i18n("Unable to create %1 element%2!",
-                                QString::number(errorsCount).toAscii().constData(),
-                                (errorsCount > 1 ? "s" : "")));
+                           i18n("Unable to create %1 element(s)!",
+                                QString::number(errorsCount).toAscii().constData()));
    }

    return result;