]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/progress.cc
support \n and \r\n line endings in ReadMessages
[apt.git] / apt-pkg / contrib / progress.cc
index 317048845c1a89fb9a1ee0d8941ad413d0b05518..916e1d730a7abf76153813c6304c5fdcb987b7c7 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),_("%c%s... %u%%"),'\r',Op.c_str(),(unsigned int)Percent);
    Write(S);
 
    OldOp = Op;