]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Honour user locale in cmdList
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Sep 2018 08:23:53 +0000 (10:23 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Sep 2018 08:44:08 +0000 (10:44 +0200)
In 2e97450425e we've mistakenly removed gettext macro for
translating static strings. This results in table header being
printed in English regardless of user locale.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
tools/virsh-domain-monitor.c

index adc5bb1a7a5c67c1dfb658b550897c026af956dd..8962586d7670facda0b7fce430a4c3904258060c 100644 (file)
@@ -1942,9 +1942,9 @@ cmdList(vshControl *ctl, const vshCmd *cmd)
     /* print table header in legacy mode */
     if (optTable) {
         if (optTitle)
-            table = vshTableNew("Id", "Name", "State", "Title", NULL);
+            table = vshTableNew(_("Id"), _("Name"), _("State"), _("Title"), NULL);
         else
-            table = vshTableNew("Id", "Name", "State", NULL);
+            table = vshTableNew(_("Id"), _("Name"), _("State"), NULL);
 
         if (!table)
             goto cleanup;