[libvirt] [PATCH] virsh: mark autostart answers for translation

Justin Clift justin at salasaga.org
Mon Jun 14 09:45:52 UTC 2010


This is a trivial fix for several autostart yes/no strings that
weren't correctly marked for translation.
---
 tools/virsh.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/virsh.c b/tools/virsh.c
index 7e65942..56e1bd7 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -3406,7 +3406,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),
@@ -3429,7 +3429,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],
@@ -4947,7 +4947,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),
@@ -4970,7 +4970,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],
-- 
1.7.0.1




More information about the libvir-list mailing list