mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-19 01:24:42 -05:00
virsh: Honour user locale in cmdList
In 2e97450425 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 <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user