[PATCH] virsh: mark autostart answers for translation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]