Просмотр исходного кода

* 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

Michael Vogt лет назад: 13
Родитель
Сommit
291f47791d
2 измененных файлов с 7 добавлено и 2 удалено
  1. 2 2
      apt-pkg/contrib/progress.cc
  2. 5 0
      debian/changelog

+ 2 - 2
apt-pkg/contrib/progress.cc

@@ -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;

+ 5 - 0
debian/changelog

@@ -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