1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-26 02:50:32 +03:00

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 <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
Michal Privoznik 2018-09-19 10:23:53 +02:00
parent 6d855abc14
commit 8e8a9dc3fa

View File

@ -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;