Bug 120521 - Untranslatable message in tagfilterview.cpp
Summary: Untranslatable message in tagfilterview.cpp
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-i18n (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-20 20:10 UTC by Albert Astals Cid
Modified: 2021-12-30 16:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 0.9.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Albert Astals Cid 2006-01-20 20:10:35 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

In tagfilterview.cpp you can find

i18n("Tag '%1' has %2 subtag(s). "
"Deleting this will also delete "
"the subtag(s). "
"Are you sure you want to continue?")

That is not translatable to catalan as subtag is "etiqueta" and subtags is "etiquetes", please use the proper KDE way of having singular/plural messages and not that singular(s) thing that i'm sure it problematic for lots of languages.
Comment 1 Tom Albers 2006-01-20 21:05:26 UTC
SVN commit 500650 by toma:

Fix plural.
BUG: 120521


 M  +12 -6     tagfilterview.cpp  
 M  +11 -6     tagfolderview.cpp  


--- trunk/extragear/graphics/digikam/digikam/tagfilterview.cpp #500649:500650
@@ -590,12 +590,18 @@
     if (children)
     {
         int result =
-            KMessageBox::warningContinueCancel(this, i18n("Tag '%1' has %2 subtag(s). "
-                                                 "Deleting this will also delete "
-                                                 "the subtag(s). "
-                                                 "Are you sure you want to continue?")
-                                      .arg(tag->title())
-                                      .arg(children), i18n("Delete Tag"), KGuiItem(i18n("Delete"),"editdelete"));
+            KMessageBox::warningContinueCancel(this, 
+                i18n("Tag '%1' has one subtag. "
+                     "Deleting this will also delete "
+                     "the subtag. "
+                     "Are you sure you want to continue?",
+                     "Tag '%1' has %n subtags. "
+                     "Deleting this will also delete "
+                     "the subtags. "
+                     "Are you sure you want to continue?",
+                     children).arg(tag->title()),
+                i18n("Delete Tag"),
+                KGuiItem(i18n("Delete"),"editdelete"));
 
         if(result == KMessageBox::Continue)
         {
--- trunk/extragear/graphics/digikam/digikam/tagfolderview.cpp #500649:500650
@@ -488,12 +488,17 @@
     if(children)
     {
         int result =
-            KMessageBox::warningContinueCancel(this, i18n("Tag '%1' has %2 subtag(s). "
-                                                 "Deleting this will also delete "
-                                                 "the subtag(s). "
-                                                 "Are you sure you want to continue?")
-                                      .arg(tag->title())
-                                      .arg(children),i18n("Delete Tag"),KGuiItem(i18n("Delete"),"editdelete"));
+            KMessageBox::warningContinueCancel(this,
+                    i18n("Tag '%1' has one subtag. "
+                         "Deleting this will also delete "
+                         "the subtag. "
+                         "Are you sure you want to continue?",
+                         "Tag '%1' has %n subtags. "
+                         "Deleting this will also delete "
+                         "the subtags. "
+                         "Are you sure you want to continue?",
+                         children).arg(tag->title()),
+                      i18n("Delete Tag"),KGuiItem(i18n("Delete"),"editdelete"));
 
         if(result == KMessageBox::Continue)
         {