]> xenbits.xensource.com Git - libvirt.git/commit
virsh: fix existing N_ uses
authorEric Blake <eblake@redhat.com>
Tue, 9 Mar 2010 17:05:01 +0000 (10:05 -0700)
committerJim Meyering <meyering@redhat.com>
Tue, 9 Mar 2010 17:23:44 +0000 (18:23 +0100)
commitf6876e10cf11090e717054c98a890bff07ec533f
tree3ce837c1dd98b0d4078746919157092870aa5ebb
parentd1c754168ae78808dbe1b190a76ab2ca241b0399
virsh: fix existing N_ uses

It is a bad idea to call gettext on an already-translated
string.  In cases where a string must be translated separately
from where it is exposed to xgettext, the gettext manual
recommends the idiom of N_() wrapping gettext_noop for
marking the string.

* src/internal.h (N_): Fix definition to match gettext manual.
* tools/virsh.c: (cmdHelp, cmdList, cmdDomstate, cmdDominfo)
(cmdVcpuinfo, vshUsage): Replace incorrect use of N_ with _.
(vshCmddefHelp): Likewise.  Mark C format strings appropriately.
src/internal.h
tools/virsh.c