From: Michal Privoznik Date: Wed, 19 Sep 2018 08:23:53 +0000 (+0200) Subject: virsh: Honour user locale in cmdList X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8e8a9dc3fa84b2845dc37511e13e4efd0cfc8e97;p=libvirt.git virsh: Honour user locale in cmdList 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 Reviewed-by: John Ferlan --- diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-domain-monitor.c index adc5bb1a7a..8962586d76 100644 --- a/tools/virsh-domain-monitor.c +++ b/tools/virsh-domain-monitor.c @@ -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;