* apt-pkg/contrib/progress.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 9 Jan 2013 05:33:56 +0000 (06:33 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 9 Jan 2013 05:33:56 +0000 (06:33 +0100)
  - Make "..." translatable to fix inconsistencies in the output
    of e.g. apt-get update. While this adds new translatable strings,
    not having translations for them will not break anything.
    Thanks to Guillem Jover. Closes: #696225

apt-pkg/contrib/progress.cc
debian/changelog

index 3170488..17a6b70 100644 (file)
@@ -176,7 +176,7 @@ void OpTextProgress::Update()
         if (OldOp.empty() == false)
            cout << endl;
         OldOp = "a";
-        cout << Op << "..." << flush;
+        cout << Op << _("...") << flush;
       }
       
       return;
@@ -192,7 +192,7 @@ void OpTextProgress::Update()
    }
    
    // Print the spinner
-   snprintf(S,sizeof(S),"\r%s... %u%%",Op.c_str(),(unsigned int)Percent);
+   snprintf(S,sizeof(S),_("\r%s... %u%%"),Op.c_str(),(unsigned int)Percent);
    Write(S);
 
    OldOp = Op;
index e308eb0..02fcdaa 100644 (file)
@@ -8,6 +8,11 @@ apt (0.9.7.8) UNRELEASED; urgency=low
     Closes: #697577
   * add missing translated apt.8 manpages, thanks to Helge Kreutzmann.
     Closes: #696923
+  * apt-pkg/contrib/progress.cc:
+    - Make "..." translatable to fix inconsistencies in the output
+      of e.g. apt-get update. While this adds new translatable strings,
+      not having translations for them will not break anything.
+      Thanks to Guillem Jover. Closes: #696225
 
  -- Christian Perrier <bubulle@debian.org>  Mon, 24 Dec 2012 07:01:20 +0100