]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: mark autostart answers for translation
authorJustin Clift <justin@salasaga.org>
Mon, 14 Jun 2010 09:45:52 +0000 (19:45 +1000)
committerEric Blake <eblake@redhat.com>
Tue, 15 Jun 2010 21:36:27 +0000 (15:36 -0600)
This is a trivial fix for several autostart yes/no strings that
weren't correctly marked for translation.

tools/virsh.c

index 4aa281e3c9d36921305981ee2ed48e29eb11e433..07f2a1e3e96a80ec002b92771da630b2b290bd91 100644 (file)
@@ -3413,7 +3413,7 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
         if (virNetworkGetAutostart(network, &autostart) < 0)
             autostartStr = _("no autostart");
         else
-            autostartStr = autostart ? "yes" : "no";
+            autostartStr = autostart ? _("yes") : _("no");
 
         vshPrint(ctl, "%-20s %-10s %-10s\n",
                  virNetworkGetName(network),
@@ -3436,7 +3436,7 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
         if (virNetworkGetAutostart(network, &autostart) < 0)
             autostartStr = _("no autostart");
         else
-            autostartStr = autostart ? "yes" : "no";
+            autostartStr = autostart ? _("yes") : _("no");
 
         vshPrint(ctl, "%-20s %-10s %-10s\n",
                  inactiveNames[i],
@@ -4954,7 +4954,7 @@ cmdPoolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
         if (virStoragePoolGetAutostart(pool, &autostart) < 0)
             autostartStr = _("no autostart");
         else
-            autostartStr = autostart ? "yes" : "no";
+            autostartStr = autostart ? _("yes") : _("no");
 
         vshPrint(ctl, "%-20s %-10s %-10s\n",
                  virStoragePoolGetName(pool),
@@ -4977,7 +4977,7 @@ cmdPoolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
         if (virStoragePoolGetAutostart(pool, &autostart) < 0)
             autostartStr = _("no autostart");
         else
-            autostartStr = autostart ? "yes" : "no";
+            autostartStr = autostart ? _("yes") : _("no");
 
         vshPrint(ctl, "%-20s %-10s %-10s\n",
                  inactiveNames[i],