提交 8e8a9dc3 编写于 作者: M Michal Privoznik

virsh: Honour user locale in cmdList

In 2e974504 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: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
上级 6d855abc
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册