From 043f05fda4d3d7320027065d548780a25b34b5f2 Mon Sep 17 00:00:00 2001 From: Justin Clift Date: Mon, 14 Jun 2010 19:45:52 +1000 Subject: [PATCH] virsh: mark autostart answers for translation This is a trivial fix for several autostart yes/no strings that weren't correctly marked for translation. --- tools/virsh.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index 4aa281e3c9..07f2a1e3e9 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -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], -- GitLab