]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Internationalize disk shrink progress string
authorVMware, Inc <>
Wed, 18 Sep 2013 03:17:55 +0000 (20:17 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:01:54 +0000 (22:01 -0700)
Disk shrink is a long running operation with progress reporting. The
"progress" string is visible to users and therefore needs to be
internationalized.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/toolbox/toolboxcmd-shrink.c

index a03a7b117c98529a0b2c97a8e46c28edffc00c15..d0b9cabb80ab897899c654e836327a1073f11398 100644 (file)
@@ -444,7 +444,8 @@ ShrinkDoWipeAndShrink(char *mountPoint,         // IN: mount point
       }
 
       if (!quiet) {
-         g_print("\rProgress: %d [", progress);
+         g_print(SU_(disk.wiper.progress, "\rProgress: %d"), progress);
+         g_print(" [");
          for (i = 0; i <= progress / 10; i++) {
             putchar('=');
          }