提交 0c39adef 编写于 作者: E Eric Blake 提交者: Jim Meyering

virsh: use N_ rather than gettext_noop

With N_() in place, we can use it for a smaller file.

* doc/api-extension/0008-Step-8-of-8-Add-virsh-support.patch:
Replace all uses of gettext_noop with N_.
* tools/virsh.c: Likewise, throughout the file.
上级 f6876e10
...@@ -11,16 +11,15 @@ diff --git a/src/virsh.c b/src/virsh.c ...@@ -11,16 +11,15 @@ diff --git a/src/virsh.c b/src/virsh.c
index cb32ede..ab2a2b7 100644 index cb32ede..ab2a2b7 100644
--- a/src/virsh.c --- a/src/virsh.c
+++ b/src/virsh.c +++ b/src/virsh.c
@@ -2962,6 +2962,107 @@ cmdPoolCreate(vshControl *ctl, const vshCmd *cmd) @@ -2962,6 +2962,106 @@ cmdPoolCreate(vshControl *ctl, const vshCmd *cmd)
/* /*
+ * "nodedev-create" command + * "nodedev-create" command
+ */ + */
+static const vshCmdInfo info_node_device_create[] = { +static const vshCmdInfo info_node_device_create[] = {
+ {"help", gettext_noop("create a device defined " + {"help", N_("create a device defined by an XML file on the node")},
+ "by an XML file on the node")}, + {"desc", N_("Create a device on the node. Note that this "
+ {"desc", gettext_noop("Create a device on the node. Note that this "
+ "command creates devices on the physical host " + "command creates devices on the physical host "
+ "that can then be assigned to a virtual machine.")}, + "that can then be assigned to a virtual machine.")},
+ {NULL, NULL} + {NULL, NULL}
...@@ -28,7 +27,7 @@ index cb32ede..ab2a2b7 100644 ...@@ -28,7 +27,7 @@ index cb32ede..ab2a2b7 100644
+ +
+static const vshCmdOptDef opts_node_device_create[] = { +static const vshCmdOptDef opts_node_device_create[] = {
+ {"file", VSH_OT_DATA, VSH_OFLAG_REQ, + {"file", VSH_OT_DATA, VSH_OFLAG_REQ,
+ gettext_noop("file containing an XML description of the device")}, + N_("file containing an XML description of the device")},
+ {NULL, 0, 0, NULL} + {NULL, 0, 0, NULL}
+}; +};
+ +
...@@ -72,15 +71,15 @@ index cb32ede..ab2a2b7 100644 ...@@ -72,15 +71,15 @@ index cb32ede..ab2a2b7 100644
+ * "nodedev-destroy" command + * "nodedev-destroy" command
+ */ + */
+static const vshCmdInfo info_node_device_destroy[] = { +static const vshCmdInfo info_node_device_destroy[] = {
+ {"help", gettext_noop("destroy a device on the node")}, + {"help", N_("destroy a device on the node")},
+ {"desc", gettext_noop("Destroy a device on the node. Note that this " + {"desc", N_("Destroy a device on the node. Note that this "
+ "command destroys devices on the physical host ")}, + "command destroys devices on the physical host")},
+ {NULL, NULL} + {NULL, NULL}
+}; +};
+ +
+static const vshCmdOptDef opts_node_device_destroy[] = { +static const vshCmdOptDef opts_node_device_destroy[] = {
+ {"name", VSH_OT_DATA, VSH_OFLAG_REQ, + {"name", VSH_OT_DATA, VSH_OFLAG_REQ,
+ gettext_noop("name of the device to be destroyed")}, + N_("name of the device to be destroyed")},
+ {NULL, 0, 0, NULL} + {NULL, 0, 0, NULL}
+}; +};
+ +
......
...@@ -407,14 +407,14 @@ out: ...@@ -407,14 +407,14 @@ out:
* "help" command * "help" command
*/ */
static const vshCmdInfo info_help[] = { static const vshCmdInfo info_help[] = {
{"help", gettext_noop("print help")}, {"help", N_("print help")},
{"desc", gettext_noop("Prints global help or command specific help.")}, {"desc", N_("Prints global help or command specific help.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_help[] = { static const vshCmdOptDef opts_help[] = {
{"command", VSH_OT_DATA, 0, gettext_noop("name of command")}, {"command", VSH_OT_DATA, 0, N_("name of command")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -439,15 +439,15 @@ cmdHelp(vshControl *ctl, const vshCmd *cmd) ...@@ -439,15 +439,15 @@ cmdHelp(vshControl *ctl, const vshCmd *cmd)
* "autostart" command * "autostart" command
*/ */
static const vshCmdInfo info_autostart[] = { static const vshCmdInfo info_autostart[] = {
{"help", gettext_noop("autostart a domain")}, {"help", N_("autostart a domain")},
{"desc", {"desc",
gettext_noop("Configure a domain to be automatically started at boot.")}, N_("Configure a domain to be automatically started at boot.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_autostart[] = { static const vshCmdOptDef opts_autostart[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"disable", VSH_OT_BOOL, 0, gettext_noop("disable autostarting")}, {"disable", VSH_OT_BOOL, 0, N_("disable autostarting")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -488,15 +488,15 @@ cmdAutostart(vshControl *ctl, const vshCmd *cmd) ...@@ -488,15 +488,15 @@ cmdAutostart(vshControl *ctl, const vshCmd *cmd)
* "connect" command * "connect" command
*/ */
static const vshCmdInfo info_connect[] = { static const vshCmdInfo info_connect[] = {
{"help", gettext_noop("(re)connect to hypervisor")}, {"help", N_("(re)connect to hypervisor")},
{"desc", {"desc",
gettext_noop("Connect to local hypervisor. This is built-in command after shell start up.")}, N_("Connect to local hypervisor. This is built-in command after shell start up.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_connect[] = { static const vshCmdOptDef opts_connect[] = {
{"name", VSH_OT_DATA, 0, gettext_noop("hypervisor connection URI")}, {"name", VSH_OT_DATA, 0, N_("hypervisor connection URI")},
{"readonly", VSH_OT_BOOL, 0, gettext_noop("read-only connection")}, {"readonly", VSH_OT_BOOL, 0, N_("read-only connection")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -537,14 +537,14 @@ cmdConnect(vshControl *ctl, const vshCmd *cmd) ...@@ -537,14 +537,14 @@ cmdConnect(vshControl *ctl, const vshCmd *cmd)
* "console" command * "console" command
*/ */
static const vshCmdInfo info_console[] = { static const vshCmdInfo info_console[] = {
{"help", gettext_noop("connect to the guest console")}, {"help", N_("connect to the guest console")},
{"desc", {"desc",
gettext_noop("Connect the virtual serial console for the guest")}, N_("Connect the virtual serial console for the guest")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_console[] = { static const vshCmdOptDef opts_console[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -646,14 +646,14 @@ cmdConsole(vshControl *ctl, const vshCmd *cmd) ...@@ -646,14 +646,14 @@ cmdConsole(vshControl *ctl, const vshCmd *cmd)
* "list" command * "list" command
*/ */
static const vshCmdInfo info_list[] = { static const vshCmdInfo info_list[] = {
{"help", gettext_noop("list domains")}, {"help", N_("list domains")},
{"desc", gettext_noop("Returns list of domains.")}, {"desc", N_("Returns list of domains.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_list[] = { static const vshCmdOptDef opts_list[] = {
{"inactive", VSH_OT_BOOL, 0, gettext_noop("list inactive domains")}, {"inactive", VSH_OT_BOOL, 0, N_("list inactive domains")},
{"all", VSH_OT_BOOL, 0, gettext_noop("list inactive & active domains")}, {"all", VSH_OT_BOOL, 0, N_("list inactive & active domains")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -763,13 +763,13 @@ cmdList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -763,13 +763,13 @@ cmdList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "domstate" command * "domstate" command
*/ */
static const vshCmdInfo info_domstate[] = { static const vshCmdInfo info_domstate[] = {
{"help", gettext_noop("domain state")}, {"help", N_("domain state")},
{"desc", gettext_noop("Returns state about a domain.")}, {"desc", N_("Returns state about a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_domstate[] = { static const vshCmdOptDef opts_domstate[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -799,14 +799,14 @@ cmdDomstate(vshControl *ctl, const vshCmd *cmd) ...@@ -799,14 +799,14 @@ cmdDomstate(vshControl *ctl, const vshCmd *cmd)
/* "domblkstat" command /* "domblkstat" command
*/ */
static const vshCmdInfo info_domblkstat[] = { static const vshCmdInfo info_domblkstat[] = {
{"help", gettext_noop("get device block stats for a domain")}, {"help", N_("get device block stats for a domain")},
{"desc", gettext_noop("Get device block stats for a running domain.")}, {"desc", N_("Get device block stats for a running domain.")},
{NULL,NULL} {NULL,NULL}
}; };
static const vshCmdOptDef opts_domblkstat[] = { static const vshCmdOptDef opts_domblkstat[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"device", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("block device")}, {"device", VSH_OT_DATA, VSH_OFLAG_REQ, N_("block device")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -856,14 +856,14 @@ cmdDomblkstat (vshControl *ctl, const vshCmd *cmd) ...@@ -856,14 +856,14 @@ cmdDomblkstat (vshControl *ctl, const vshCmd *cmd)
/* "domifstat" command /* "domifstat" command
*/ */
static const vshCmdInfo info_domifstat[] = { static const vshCmdInfo info_domifstat[] = {
{"help", gettext_noop("get network interface stats for a domain")}, {"help", N_("get network interface stats for a domain")},
{"desc", gettext_noop("Get network interface stats for a running domain.")}, {"desc", N_("Get network interface stats for a running domain.")},
{NULL,NULL} {NULL,NULL}
}; };
static const vshCmdOptDef opts_domifstat[] = { static const vshCmdOptDef opts_domifstat[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"interface", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("interface device")}, {"interface", VSH_OT_DATA, VSH_OFLAG_REQ, N_("interface device")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -923,13 +923,13 @@ cmdDomIfstat (vshControl *ctl, const vshCmd *cmd) ...@@ -923,13 +923,13 @@ cmdDomIfstat (vshControl *ctl, const vshCmd *cmd)
* "dommemstats" command * "dommemstats" command
*/ */
static const vshCmdInfo info_dommemstat[] = { static const vshCmdInfo info_dommemstat[] = {
{"help", gettext_noop("get memory statistics for a domain")}, {"help", N_("get memory statistics for a domain")},
{"desc", gettext_noop("Get memory statistics for a runnng domain.")}, {"desc", N_("Get memory statistics for a runnng domain.")},
{NULL,NULL} {NULL,NULL}
}; };
static const vshCmdOptDef opts_dommemstat[] = { static const vshCmdOptDef opts_dommemstat[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -977,13 +977,13 @@ cmdDomMemStat(vshControl *ctl, const vshCmd *cmd) ...@@ -977,13 +977,13 @@ cmdDomMemStat(vshControl *ctl, const vshCmd *cmd)
* "suspend" command * "suspend" command
*/ */
static const vshCmdInfo info_suspend[] = { static const vshCmdInfo info_suspend[] = {
{"help", gettext_noop("suspend a domain")}, {"help", N_("suspend a domain")},
{"desc", gettext_noop("Suspend a running domain.")}, {"desc", N_("Suspend a running domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_suspend[] = { static const vshCmdOptDef opts_suspend[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1015,15 +1015,15 @@ cmdSuspend(vshControl *ctl, const vshCmd *cmd) ...@@ -1015,15 +1015,15 @@ cmdSuspend(vshControl *ctl, const vshCmd *cmd)
* "create" command * "create" command
*/ */
static const vshCmdInfo info_create[] = { static const vshCmdInfo info_create[] = {
{"help", gettext_noop("create a domain from an XML file")}, {"help", N_("create a domain from an XML file")},
{"desc", gettext_noop("Create a domain.")}, {"desc", N_("Create a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_create[] = { static const vshCmdOptDef opts_create[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing an XML domain description")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing an XML domain description")},
#ifndef WIN32 #ifndef WIN32
{"console", VSH_OT_BOOL, 0, gettext_noop("attach to console after creation")}, {"console", VSH_OT_BOOL, 0, N_("attach to console after creation")},
#endif #endif
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1072,13 +1072,13 @@ cmdCreate(vshControl *ctl, const vshCmd *cmd) ...@@ -1072,13 +1072,13 @@ cmdCreate(vshControl *ctl, const vshCmd *cmd)
* "define" command * "define" command
*/ */
static const vshCmdInfo info_define[] = { static const vshCmdInfo info_define[] = {
{"help", gettext_noop("define (but don't start) a domain from an XML file")}, {"help", N_("define (but don't start) a domain from an XML file")},
{"desc", gettext_noop("Define a domain.")}, {"desc", N_("Define a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_define[] = { static const vshCmdOptDef opts_define[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing an XML domain description")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing an XML domain description")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1119,13 +1119,13 @@ cmdDefine(vshControl *ctl, const vshCmd *cmd) ...@@ -1119,13 +1119,13 @@ cmdDefine(vshControl *ctl, const vshCmd *cmd)
* "undefine" command * "undefine" command
*/ */
static const vshCmdInfo info_undefine[] = { static const vshCmdInfo info_undefine[] = {
{"help", gettext_noop("undefine an inactive domain")}, {"help", N_("undefine an inactive domain")},
{"desc", gettext_noop("Undefine the configuration for an inactive domain.")}, {"desc", N_("Undefine the configuration for an inactive domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_undefine[] = { static const vshCmdOptDef opts_undefine[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1175,15 +1175,15 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd) ...@@ -1175,15 +1175,15 @@ cmdUndefine(vshControl *ctl, const vshCmd *cmd)
* "start" command * "start" command
*/ */
static const vshCmdInfo info_start[] = { static const vshCmdInfo info_start[] = {
{"help", gettext_noop("start a (previously defined) inactive domain")}, {"help", N_("start a (previously defined) inactive domain")},
{"desc", gettext_noop("Start a domain.")}, {"desc", N_("Start a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_start[] = { static const vshCmdOptDef opts_start[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("name of the inactive domain")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("name of the inactive domain")},
#ifndef WIN32 #ifndef WIN32
{"console", VSH_OT_BOOL, 0, gettext_noop("attach to console after creation")}, {"console", VSH_OT_BOOL, 0, N_("attach to console after creation")},
#endif #endif
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1228,14 +1228,14 @@ cmdStart(vshControl *ctl, const vshCmd *cmd) ...@@ -1228,14 +1228,14 @@ cmdStart(vshControl *ctl, const vshCmd *cmd)
* "save" command * "save" command
*/ */
static const vshCmdInfo info_save[] = { static const vshCmdInfo info_save[] = {
{"help", gettext_noop("save a domain state to a file")}, {"help", N_("save a domain state to a file")},
{"desc", gettext_noop("Save a running domain.")}, {"desc", N_("Save a running domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_save[] = { static const vshCmdOptDef opts_save[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("where to save the data")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("where to save the data")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1271,16 +1271,16 @@ cmdSave(vshControl *ctl, const vshCmd *cmd) ...@@ -1271,16 +1271,16 @@ cmdSave(vshControl *ctl, const vshCmd *cmd)
* "schedinfo" command * "schedinfo" command
*/ */
static const vshCmdInfo info_schedinfo[] = { static const vshCmdInfo info_schedinfo[] = {
{"help", gettext_noop("show/set scheduler parameters")}, {"help", N_("show/set scheduler parameters")},
{"desc", gettext_noop("Show/Set scheduler parameters.")}, {"desc", N_("Show/Set scheduler parameters.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_schedinfo[] = { static const vshCmdOptDef opts_schedinfo[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"set", VSH_OT_STRING, VSH_OFLAG_NONE, gettext_noop("parameter=value")}, {"set", VSH_OT_STRING, VSH_OFLAG_NONE, N_("parameter=value")},
{"weight", VSH_OT_INT, VSH_OFLAG_NONE, gettext_noop("weight for XEN_CREDIT")}, {"weight", VSH_OT_INT, VSH_OFLAG_NONE, N_("weight for XEN_CREDIT")},
{"cap", VSH_OT_INT, VSH_OFLAG_NONE, gettext_noop("cap for XEN_CREDIT")}, {"cap", VSH_OT_INT, VSH_OFLAG_NONE, N_("cap for XEN_CREDIT")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1477,13 +1477,13 @@ cmdSchedinfo(vshControl *ctl, const vshCmd *cmd) ...@@ -1477,13 +1477,13 @@ cmdSchedinfo(vshControl *ctl, const vshCmd *cmd)
* "restore" command * "restore" command
*/ */
static const vshCmdInfo info_restore[] = { static const vshCmdInfo info_restore[] = {
{"help", gettext_noop("restore a domain from a saved state in a file")}, {"help", N_("restore a domain from a saved state in a file")},
{"desc", gettext_noop("Restore a domain.")}, {"desc", N_("Restore a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_restore[] = { static const vshCmdOptDef opts_restore[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("the state to restore")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("the state to restore")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1514,16 +1514,16 @@ cmdRestore(vshControl *ctl, const vshCmd *cmd) ...@@ -1514,16 +1514,16 @@ cmdRestore(vshControl *ctl, const vshCmd *cmd)
* "dump" command * "dump" command
*/ */
static const vshCmdInfo info_dump[] = { static const vshCmdInfo info_dump[] = {
{"help", gettext_noop("dump the core of a domain to a file for analysis")}, {"help", N_("dump the core of a domain to a file for analysis")},
{"desc", gettext_noop("Core dump a domain.")}, {"desc", N_("Core dump a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_dump[] = { static const vshCmdOptDef opts_dump[] = {
{"live", VSH_OT_BOOL, 0, gettext_noop("perform a live core dump if supported")}, {"live", VSH_OT_BOOL, 0, N_("perform a live core dump if supported")},
{"crash", VSH_OT_BOOL, 0, gettext_noop("crash the domain after core dump")}, {"crash", VSH_OT_BOOL, 0, N_("crash the domain after core dump")},
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("where to dump the core")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("where to dump the core")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1565,13 +1565,13 @@ cmdDump(vshControl *ctl, const vshCmd *cmd) ...@@ -1565,13 +1565,13 @@ cmdDump(vshControl *ctl, const vshCmd *cmd)
* "resume" command * "resume" command
*/ */
static const vshCmdInfo info_resume[] = { static const vshCmdInfo info_resume[] = {
{"help", gettext_noop("resume a domain")}, {"help", N_("resume a domain")},
{"desc", gettext_noop("Resume a previously suspended domain.")}, {"desc", N_("Resume a previously suspended domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_resume[] = { static const vshCmdOptDef opts_resume[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1603,13 +1603,13 @@ cmdResume(vshControl *ctl, const vshCmd *cmd) ...@@ -1603,13 +1603,13 @@ cmdResume(vshControl *ctl, const vshCmd *cmd)
* "shutdown" command * "shutdown" command
*/ */
static const vshCmdInfo info_shutdown[] = { static const vshCmdInfo info_shutdown[] = {
{"help", gettext_noop("gracefully shutdown a domain")}, {"help", N_("gracefully shutdown a domain")},
{"desc", gettext_noop("Run shutdown in the target domain.")}, {"desc", N_("Run shutdown in the target domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_shutdown[] = { static const vshCmdOptDef opts_shutdown[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1641,13 +1641,13 @@ cmdShutdown(vshControl *ctl, const vshCmd *cmd) ...@@ -1641,13 +1641,13 @@ cmdShutdown(vshControl *ctl, const vshCmd *cmd)
* "reboot" command * "reboot" command
*/ */
static const vshCmdInfo info_reboot[] = { static const vshCmdInfo info_reboot[] = {
{"help", gettext_noop("reboot a domain")}, {"help", N_("reboot a domain")},
{"desc", gettext_noop("Run a reboot command in the target domain.")}, {"desc", N_("Run a reboot command in the target domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_reboot[] = { static const vshCmdOptDef opts_reboot[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1679,13 +1679,13 @@ cmdReboot(vshControl *ctl, const vshCmd *cmd) ...@@ -1679,13 +1679,13 @@ cmdReboot(vshControl *ctl, const vshCmd *cmd)
* "destroy" command * "destroy" command
*/ */
static const vshCmdInfo info_destroy[] = { static const vshCmdInfo info_destroy[] = {
{"help", gettext_noop("destroy a domain")}, {"help", N_("destroy a domain")},
{"desc", gettext_noop("Destroy a given domain.")}, {"desc", N_("Destroy a given domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_destroy[] = { static const vshCmdOptDef opts_destroy[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1717,13 +1717,13 @@ cmdDestroy(vshControl *ctl, const vshCmd *cmd) ...@@ -1717,13 +1717,13 @@ cmdDestroy(vshControl *ctl, const vshCmd *cmd)
* "dominfo" command * "dominfo" command
*/ */
static const vshCmdInfo info_dominfo[] = { static const vshCmdInfo info_dominfo[] = {
{"help", gettext_noop("domain information")}, {"help", N_("domain information")},
{"desc", gettext_noop("Returns basic information about the domain.")}, {"desc", N_("Returns basic information about the domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_dominfo[] = { static const vshCmdOptDef opts_dominfo[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1825,13 +1825,13 @@ cmdDominfo(vshControl *ctl, const vshCmd *cmd) ...@@ -1825,13 +1825,13 @@ cmdDominfo(vshControl *ctl, const vshCmd *cmd)
* "domjobinfo" command * "domjobinfo" command
*/ */
static const vshCmdInfo info_domjobinfo[] = { static const vshCmdInfo info_domjobinfo[] = {
{"help", gettext_noop("domain job information")}, {"help", N_("domain job information")},
{"desc", gettext_noop("Returns information about jobs running on a domain.")}, {"desc", N_("Returns information about jobs running on a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_domjobinfo[] = { static const vshCmdOptDef opts_domjobinfo[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1910,13 +1910,13 @@ cleanup: ...@@ -1910,13 +1910,13 @@ cleanup:
* "domjobabort" command * "domjobabort" command
*/ */
static const vshCmdInfo info_domjobabort[] = { static const vshCmdInfo info_domjobabort[] = {
{"help", gettext_noop("abort active domain job")}, {"help", N_("abort active domain job")},
{"desc", gettext_noop("Aborts the currently running domain job")}, {"desc", N_("Aborts the currently running domain job")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_domjobabort[] = { static const vshCmdOptDef opts_domjobabort[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1946,13 +1946,13 @@ cleanup: ...@@ -1946,13 +1946,13 @@ cleanup:
* "freecell" command * "freecell" command
*/ */
static const vshCmdInfo info_freecell[] = { static const vshCmdInfo info_freecell[] = {
{"help", gettext_noop("NUMA free memory")}, {"help", N_("NUMA free memory")},
{"desc", gettext_noop("display available free memory for the NUMA cell.")}, {"desc", N_("display available free memory for the NUMA cell.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_freecell[] = { static const vshCmdOptDef opts_freecell[] = {
{"cellno", VSH_OT_DATA, 0, gettext_noop("NUMA cell number")}, {"cellno", VSH_OT_DATA, 0, N_("NUMA cell number")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -1989,13 +1989,13 @@ cmdFreecell(vshControl *ctl, const vshCmd *cmd) ...@@ -1989,13 +1989,13 @@ cmdFreecell(vshControl *ctl, const vshCmd *cmd)
* "vcpuinfo" command * "vcpuinfo" command
*/ */
static const vshCmdInfo info_vcpuinfo[] = { static const vshCmdInfo info_vcpuinfo[] = {
{"help", gettext_noop("domain vcpu information")}, {"help", N_("domain vcpu information")},
{"desc", gettext_noop("Returns basic information about the domain virtual CPUs.")}, {"desc", N_("Returns basic information about the domain virtual CPUs.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vcpuinfo[] = { static const vshCmdOptDef opts_vcpuinfo[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2075,15 +2075,15 @@ cmdVcpuinfo(vshControl *ctl, const vshCmd *cmd) ...@@ -2075,15 +2075,15 @@ cmdVcpuinfo(vshControl *ctl, const vshCmd *cmd)
* "vcpupin" command * "vcpupin" command
*/ */
static const vshCmdInfo info_vcpupin[] = { static const vshCmdInfo info_vcpupin[] = {
{"help", gettext_noop("control domain vcpu affinity")}, {"help", N_("control domain vcpu affinity")},
{"desc", gettext_noop("Pin domain VCPUs to host physical CPUs.")}, {"desc", N_("Pin domain VCPUs to host physical CPUs.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vcpupin[] = { static const vshCmdOptDef opts_vcpupin[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"vcpu", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("vcpu number")}, {"vcpu", VSH_OT_DATA, VSH_OFLAG_REQ, N_("vcpu number")},
{"cpulist", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("host cpu number(s) (comma separated)")}, {"cpulist", VSH_OT_DATA, VSH_OFLAG_REQ, N_("host cpu number(s) (comma separated)")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2212,14 +2212,14 @@ cmdVcpupin(vshControl *ctl, const vshCmd *cmd) ...@@ -2212,14 +2212,14 @@ cmdVcpupin(vshControl *ctl, const vshCmd *cmd)
* "setvcpus" command * "setvcpus" command
*/ */
static const vshCmdInfo info_setvcpus[] = { static const vshCmdInfo info_setvcpus[] = {
{"help", gettext_noop("change number of virtual CPUs")}, {"help", N_("change number of virtual CPUs")},
{"desc", gettext_noop("Change the number of virtual CPUs in the guest domain.")}, {"desc", N_("Change the number of virtual CPUs in the guest domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_setvcpus[] = { static const vshCmdOptDef opts_setvcpus[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"count", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("number of virtual CPUs")}, {"count", VSH_OT_DATA, VSH_OFLAG_REQ, N_("number of virtual CPUs")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2268,14 +2268,14 @@ cmdSetvcpus(vshControl *ctl, const vshCmd *cmd) ...@@ -2268,14 +2268,14 @@ cmdSetvcpus(vshControl *ctl, const vshCmd *cmd)
* "setmemory" command * "setmemory" command
*/ */
static const vshCmdInfo info_setmem[] = { static const vshCmdInfo info_setmem[] = {
{"help", gettext_noop("change memory allocation")}, {"help", N_("change memory allocation")},
{"desc", gettext_noop("Change the current memory allocation in the guest domain.")}, {"desc", N_("Change the current memory allocation in the guest domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_setmem[] = { static const vshCmdOptDef opts_setmem[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"kilobytes", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("number of kilobytes of memory")}, {"kilobytes", VSH_OT_DATA, VSH_OFLAG_REQ, N_("number of kilobytes of memory")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2324,14 +2324,14 @@ cmdSetmem(vshControl *ctl, const vshCmd *cmd) ...@@ -2324,14 +2324,14 @@ cmdSetmem(vshControl *ctl, const vshCmd *cmd)
* "setmaxmem" command * "setmaxmem" command
*/ */
static const vshCmdInfo info_setmaxmem[] = { static const vshCmdInfo info_setmaxmem[] = {
{"help", gettext_noop("change maximum memory limit")}, {"help", N_("change maximum memory limit")},
{"desc", gettext_noop("Change the maximum memory allocation limit in the guest domain.")}, {"desc", N_("Change the maximum memory allocation limit in the guest domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_setmaxmem[] = { static const vshCmdOptDef opts_setmaxmem[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"kilobytes", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("maximum memory limit in kilobytes")}, {"kilobytes", VSH_OT_DATA, VSH_OFLAG_REQ, N_("maximum memory limit in kilobytes")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2383,8 +2383,8 @@ cmdSetmaxmem(vshControl *ctl, const vshCmd *cmd) ...@@ -2383,8 +2383,8 @@ cmdSetmaxmem(vshControl *ctl, const vshCmd *cmd)
* "nodeinfo" command * "nodeinfo" command
*/ */
static const vshCmdInfo info_nodeinfo[] = { static const vshCmdInfo info_nodeinfo[] = {
{"help", gettext_noop("node information")}, {"help", N_("node information")},
{"desc", gettext_noop("Returns basic information about the node.")}, {"desc", N_("Returns basic information about the node.")},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -2416,8 +2416,8 @@ cmdNodeinfo(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -2416,8 +2416,8 @@ cmdNodeinfo(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "capabilities" command * "capabilities" command
*/ */
static const vshCmdInfo info_capabilities[] = { static const vshCmdInfo info_capabilities[] = {
{"help", gettext_noop("capabilities")}, {"help", N_("capabilities")},
{"desc", gettext_noop("Returns capabilities of hypervisor/driver.")}, {"desc", N_("Returns capabilities of hypervisor/driver.")},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -2443,15 +2443,15 @@ cmdCapabilities (vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -2443,15 +2443,15 @@ cmdCapabilities (vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "dumpxml" command * "dumpxml" command
*/ */
static const vshCmdInfo info_dumpxml[] = { static const vshCmdInfo info_dumpxml[] = {
{"help", gettext_noop("domain information in XML")}, {"help", N_("domain information in XML")},
{"desc", gettext_noop("Output the domain information as an XML dump to stdout.")}, {"desc", N_("Output the domain information as an XML dump to stdout.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_dumpxml[] = { static const vshCmdOptDef opts_dumpxml[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"inactive", VSH_OT_BOOL, 0, gettext_noop("show inactive defined XML")}, {"inactive", VSH_OT_BOOL, 0, N_("show inactive defined XML")},
{"security-info", VSH_OT_BOOL, 0, gettext_noop("include security sensitive information in XML dump")}, {"security-info", VSH_OT_BOOL, 0, N_("include security sensitive information in XML dump")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2492,14 +2492,14 @@ cmdDumpXML(vshControl *ctl, const vshCmd *cmd) ...@@ -2492,14 +2492,14 @@ cmdDumpXML(vshControl *ctl, const vshCmd *cmd)
* "domxml-from-native" command * "domxml-from-native" command
*/ */
static const vshCmdInfo info_domxmlfromnative[] = { static const vshCmdInfo info_domxmlfromnative[] = {
{"help", gettext_noop("Convert native config to domain XML")}, {"help", N_("Convert native config to domain XML")},
{"desc", gettext_noop("Convert native guest configuration format to domain XML format.")}, {"desc", N_("Convert native guest configuration format to domain XML format.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_domxmlfromnative[] = { static const vshCmdOptDef opts_domxmlfromnative[] = {
{"format", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("source config data format")}, {"format", VSH_OT_DATA, VSH_OFLAG_REQ, N_("source config data format")},
{"config", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("config data file to import from")}, {"config", VSH_OT_DATA, VSH_OFLAG_REQ, N_("config data file to import from")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2538,14 +2538,14 @@ cmdDomXMLFromNative(vshControl *ctl, const vshCmd *cmd) ...@@ -2538,14 +2538,14 @@ cmdDomXMLFromNative(vshControl *ctl, const vshCmd *cmd)
* "domxml-to-native" command * "domxml-to-native" command
*/ */
static const vshCmdInfo info_domxmltonative[] = { static const vshCmdInfo info_domxmltonative[] = {
{"help", gettext_noop("Convert domain XML to native config")}, {"help", N_("Convert domain XML to native config")},
{"desc", gettext_noop("Convert domain XML config to a native guest configuration format.")}, {"desc", N_("Convert domain XML config to a native guest configuration format.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_domxmltonative[] = { static const vshCmdOptDef opts_domxmltonative[] = {
{"format", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("target config data type format")}, {"format", VSH_OT_DATA, VSH_OFLAG_REQ, N_("target config data type format")},
{"xml", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("xml data file to export from")}, {"xml", VSH_OT_DATA, VSH_OFLAG_REQ, N_("xml data file to export from")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2584,13 +2584,13 @@ cmdDomXMLToNative(vshControl *ctl, const vshCmd *cmd) ...@@ -2584,13 +2584,13 @@ cmdDomXMLToNative(vshControl *ctl, const vshCmd *cmd)
* "domname" command * "domname" command
*/ */
static const vshCmdInfo info_domname[] = { static const vshCmdInfo info_domname[] = {
{"help", gettext_noop("convert a domain id or UUID to domain name")}, {"help", N_("convert a domain id or UUID to domain name")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_domname[] = { static const vshCmdOptDef opts_domname[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2614,13 +2614,13 @@ cmdDomname(vshControl *ctl, const vshCmd *cmd) ...@@ -2614,13 +2614,13 @@ cmdDomname(vshControl *ctl, const vshCmd *cmd)
* "domid" command * "domid" command
*/ */
static const vshCmdInfo info_domid[] = { static const vshCmdInfo info_domid[] = {
{"help", gettext_noop("convert a domain name or UUID to domain id")}, {"help", N_("convert a domain name or UUID to domain id")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_domid[] = { static const vshCmdOptDef opts_domid[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2649,13 +2649,13 @@ cmdDomid(vshControl *ctl, const vshCmd *cmd) ...@@ -2649,13 +2649,13 @@ cmdDomid(vshControl *ctl, const vshCmd *cmd)
* "domuuid" command * "domuuid" command
*/ */
static const vshCmdInfo info_domuuid[] = { static const vshCmdInfo info_domuuid[] = {
{"help", gettext_noop("convert a domain name or id to domain UUID")}, {"help", N_("convert a domain name or id to domain UUID")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_domuuid[] = { static const vshCmdOptDef opts_domuuid[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain id or name")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain id or name")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2684,23 +2684,23 @@ cmdDomuuid(vshControl *ctl, const vshCmd *cmd) ...@@ -2684,23 +2684,23 @@ cmdDomuuid(vshControl *ctl, const vshCmd *cmd)
* "migrate" command * "migrate" command
*/ */
static const vshCmdInfo info_migrate[] = { static const vshCmdInfo info_migrate[] = {
{"help", gettext_noop("migrate domain to another host")}, {"help", N_("migrate domain to another host")},
{"desc", gettext_noop("Migrate domain to another host. Add --live for live migration.")}, {"desc", N_("Migrate domain to another host. Add --live for live migration.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_migrate[] = { static const vshCmdOptDef opts_migrate[] = {
{"live", VSH_OT_BOOL, 0, gettext_noop("live migration")}, {"live", VSH_OT_BOOL, 0, N_("live migration")},
{"p2p", VSH_OT_BOOL, 0, gettext_noop("peer-2-peer migration")}, {"p2p", VSH_OT_BOOL, 0, N_("peer-2-peer migration")},
{"direct", VSH_OT_BOOL, 0, gettext_noop("direct migration")}, {"direct", VSH_OT_BOOL, 0, N_("direct migration")},
{"tunnelled", VSH_OT_BOOL, 0, gettext_noop("tunnelled migration")}, {"tunnelled", VSH_OT_BOOL, 0, N_("tunnelled migration")},
{"persistent", VSH_OT_BOOL, 0, gettext_noop("persist VM on destination")}, {"persistent", VSH_OT_BOOL, 0, N_("persist VM on destination")},
{"undefinesource", VSH_OT_BOOL, 0, gettext_noop("undefine VM on source")}, {"undefinesource", VSH_OT_BOOL, 0, N_("undefine VM on source")},
{"suspend", VSH_OT_BOOL, 0, gettext_noop("do not restart the domain on the destination host")}, {"suspend", VSH_OT_BOOL, 0, N_("do not restart the domain on the destination host")},
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"desturi", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("connection URI of the destination host")}, {"desturi", VSH_OT_DATA, VSH_OFLAG_REQ, N_("connection URI of the destination host")},
{"migrateuri", VSH_OT_DATA, 0, gettext_noop("migration URI, usually can be omitted")}, {"migrateuri", VSH_OT_DATA, 0, N_("migration URI, usually can be omitted")},
{"dname", VSH_OT_DATA, 0, gettext_noop("rename to new name during migration (if supported)")}, {"dname", VSH_OT_DATA, 0, N_("rename to new name during migration (if supported)")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2781,15 +2781,15 @@ cmdMigrate (vshControl *ctl, const vshCmd *cmd) ...@@ -2781,15 +2781,15 @@ cmdMigrate (vshControl *ctl, const vshCmd *cmd)
* "net-autostart" command * "net-autostart" command
*/ */
static const vshCmdInfo info_network_autostart[] = { static const vshCmdInfo info_network_autostart[] = {
{"help", gettext_noop("autostart a network")}, {"help", N_("autostart a network")},
{"desc", {"desc",
gettext_noop("Configure a network to be automatically started at boot.")}, N_("Configure a network to be automatically started at boot.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_autostart[] = { static const vshCmdOptDef opts_network_autostart[] = {
{"network", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("network name or uuid")}, {"network", VSH_OT_DATA, VSH_OFLAG_REQ, N_("network name or uuid")},
{"disable", VSH_OT_BOOL, 0, gettext_noop("disable autostarting")}, {"disable", VSH_OT_BOOL, 0, N_("disable autostarting")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2830,13 +2830,13 @@ cmdNetworkAutostart(vshControl *ctl, const vshCmd *cmd) ...@@ -2830,13 +2830,13 @@ cmdNetworkAutostart(vshControl *ctl, const vshCmd *cmd)
* "net-create" command * "net-create" command
*/ */
static const vshCmdInfo info_network_create[] = { static const vshCmdInfo info_network_create[] = {
{"help", gettext_noop("create a network from an XML file")}, {"help", N_("create a network from an XML file")},
{"desc", gettext_noop("Create a network.")}, {"desc", N_("Create a network.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_create[] = { static const vshCmdOptDef opts_network_create[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing an XML network description")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing an XML network description")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2878,13 +2878,13 @@ cmdNetworkCreate(vshControl *ctl, const vshCmd *cmd) ...@@ -2878,13 +2878,13 @@ cmdNetworkCreate(vshControl *ctl, const vshCmd *cmd)
* "net-define" command * "net-define" command
*/ */
static const vshCmdInfo info_network_define[] = { static const vshCmdInfo info_network_define[] = {
{"help", gettext_noop("define (but don't start) a network from an XML file")}, {"help", N_("define (but don't start) a network from an XML file")},
{"desc", gettext_noop("Define a network.")}, {"desc", N_("Define a network.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_define[] = { static const vshCmdOptDef opts_network_define[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing an XML network description")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing an XML network description")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2926,13 +2926,13 @@ cmdNetworkDefine(vshControl *ctl, const vshCmd *cmd) ...@@ -2926,13 +2926,13 @@ cmdNetworkDefine(vshControl *ctl, const vshCmd *cmd)
* "net-destroy" command * "net-destroy" command
*/ */
static const vshCmdInfo info_network_destroy[] = { static const vshCmdInfo info_network_destroy[] = {
{"help", gettext_noop("destroy a network")}, {"help", N_("destroy a network")},
{"desc", gettext_noop("Destroy a given network.")}, {"desc", N_("Destroy a given network.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_destroy[] = { static const vshCmdOptDef opts_network_destroy[] = {
{"network", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("network name, id or uuid")}, {"network", VSH_OT_DATA, VSH_OFLAG_REQ, N_("network name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -2965,13 +2965,13 @@ cmdNetworkDestroy(vshControl *ctl, const vshCmd *cmd) ...@@ -2965,13 +2965,13 @@ cmdNetworkDestroy(vshControl *ctl, const vshCmd *cmd)
* "net-dumpxml" command * "net-dumpxml" command
*/ */
static const vshCmdInfo info_network_dumpxml[] = { static const vshCmdInfo info_network_dumpxml[] = {
{"help", gettext_noop("network information in XML")}, {"help", N_("network information in XML")},
{"desc", gettext_noop("Output the network information as an XML dump to stdout.")}, {"desc", N_("Output the network information as an XML dump to stdout.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_dumpxml[] = { static const vshCmdOptDef opts_network_dumpxml[] = {
{"network", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("network name, id or uuid")}, {"network", VSH_OT_DATA, VSH_OFLAG_REQ, N_("network name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3005,13 +3005,13 @@ cmdNetworkDumpXML(vshControl *ctl, const vshCmd *cmd) ...@@ -3005,13 +3005,13 @@ cmdNetworkDumpXML(vshControl *ctl, const vshCmd *cmd)
* "iface-edit" command * "iface-edit" command
*/ */
static const vshCmdInfo info_interface_edit[] = { static const vshCmdInfo info_interface_edit[] = {
{"help", gettext_noop("edit XML configuration for a physical host interface")}, {"help", N_("edit XML configuration for a physical host interface")},
{"desc", gettext_noop("Edit the XML configuration for a physical host interface.")}, {"desc", N_("Edit the XML configuration for a physical host interface.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_interface_edit[] = { static const vshCmdOptDef opts_interface_edit[] = {
{"interface", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("interface name or MAC address")}, {"interface", VSH_OT_DATA, VSH_OFLAG_REQ, N_("interface name or MAC address")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3105,14 +3105,14 @@ cleanup: ...@@ -3105,14 +3105,14 @@ cleanup:
* "net-list" command * "net-list" command
*/ */
static const vshCmdInfo info_network_list[] = { static const vshCmdInfo info_network_list[] = {
{"help", gettext_noop("list networks")}, {"help", N_("list networks")},
{"desc", gettext_noop("Returns list of networks.")}, {"desc", N_("Returns list of networks.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_list[] = { static const vshCmdOptDef opts_network_list[] = {
{"inactive", VSH_OT_BOOL, 0, gettext_noop("list inactive networks")}, {"inactive", VSH_OT_BOOL, 0, N_("list inactive networks")},
{"all", VSH_OT_BOOL, 0, gettext_noop("list inactive & active networks")}, {"all", VSH_OT_BOOL, 0, N_("list inactive & active networks")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3232,13 +3232,13 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -3232,13 +3232,13 @@ cmdNetworkList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "net-name" command * "net-name" command
*/ */
static const vshCmdInfo info_network_name[] = { static const vshCmdInfo info_network_name[] = {
{"help", gettext_noop("convert a network UUID to network name")}, {"help", N_("convert a network UUID to network name")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_name[] = { static const vshCmdOptDef opts_network_name[] = {
{"network", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("network uuid")}, {"network", VSH_OT_DATA, VSH_OFLAG_REQ, N_("network uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3263,13 +3263,13 @@ cmdNetworkName(vshControl *ctl, const vshCmd *cmd) ...@@ -3263,13 +3263,13 @@ cmdNetworkName(vshControl *ctl, const vshCmd *cmd)
* "net-start" command * "net-start" command
*/ */
static const vshCmdInfo info_network_start[] = { static const vshCmdInfo info_network_start[] = {
{"help", gettext_noop("start a (previously defined) inactive network")}, {"help", N_("start a (previously defined) inactive network")},
{"desc", gettext_noop("Start a network.")}, {"desc", N_("Start a network.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_start[] = { static const vshCmdOptDef opts_network_start[] = {
{"network", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("name of the inactive network")}, {"network", VSH_OT_DATA, VSH_OFLAG_REQ, N_("name of the inactive network")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3302,13 +3302,13 @@ cmdNetworkStart(vshControl *ctl, const vshCmd *cmd) ...@@ -3302,13 +3302,13 @@ cmdNetworkStart(vshControl *ctl, const vshCmd *cmd)
* "net-undefine" command * "net-undefine" command
*/ */
static const vshCmdInfo info_network_undefine[] = { static const vshCmdInfo info_network_undefine[] = {
{"help", gettext_noop("undefine an inactive network")}, {"help", N_("undefine an inactive network")},
{"desc", gettext_noop("Undefine the configuration for an inactive network.")}, {"desc", N_("Undefine the configuration for an inactive network.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_undefine[] = { static const vshCmdOptDef opts_network_undefine[] = {
{"network", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("network name or uuid")}, {"network", VSH_OT_DATA, VSH_OFLAG_REQ, N_("network name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3341,13 +3341,13 @@ cmdNetworkUndefine(vshControl *ctl, const vshCmd *cmd) ...@@ -3341,13 +3341,13 @@ cmdNetworkUndefine(vshControl *ctl, const vshCmd *cmd)
* "net-uuid" command * "net-uuid" command
*/ */
static const vshCmdInfo info_network_uuid[] = { static const vshCmdInfo info_network_uuid[] = {
{"help", gettext_noop("convert a network name to network UUID")}, {"help", N_("convert a network name to network UUID")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_uuid[] = { static const vshCmdOptDef opts_network_uuid[] = {
{"network", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("network name")}, {"network", VSH_OT_DATA, VSH_OFLAG_REQ, N_("network name")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3379,14 +3379,14 @@ cmdNetworkUuid(vshControl *ctl, const vshCmd *cmd) ...@@ -3379,14 +3379,14 @@ cmdNetworkUuid(vshControl *ctl, const vshCmd *cmd)
* "iface-list" command * "iface-list" command
*/ */
static const vshCmdInfo info_interface_list[] = { static const vshCmdInfo info_interface_list[] = {
{"help", gettext_noop("list physical host interfaces")}, {"help", N_("list physical host interfaces")},
{"desc", gettext_noop("Returns list of physical host interfaces.")}, {"desc", N_("Returns list of physical host interfaces.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_interface_list[] = { static const vshCmdOptDef opts_interface_list[] = {
{"inactive", VSH_OT_BOOL, 0, gettext_noop("list inactive interfaces")}, {"inactive", VSH_OT_BOOL, 0, N_("list inactive interfaces")},
{"all", VSH_OT_BOOL, 0, gettext_noop("list inactive & active interfaces")}, {"all", VSH_OT_BOOL, 0, N_("list inactive & active interfaces")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
static int static int
...@@ -3491,13 +3491,13 @@ cmdInterfaceList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -3491,13 +3491,13 @@ cmdInterfaceList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "iface-name" command * "iface-name" command
*/ */
static const vshCmdInfo info_interface_name[] = { static const vshCmdInfo info_interface_name[] = {
{"help", gettext_noop("convert an interface MAC address to interface name")}, {"help", N_("convert an interface MAC address to interface name")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_interface_name[] = { static const vshCmdOptDef opts_interface_name[] = {
{"interface", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("interface mac")}, {"interface", VSH_OT_DATA, VSH_OFLAG_REQ, N_("interface mac")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3521,13 +3521,13 @@ cmdInterfaceName(vshControl *ctl, const vshCmd *cmd) ...@@ -3521,13 +3521,13 @@ cmdInterfaceName(vshControl *ctl, const vshCmd *cmd)
* "iface-mac" command * "iface-mac" command
*/ */
static const vshCmdInfo info_interface_mac[] = { static const vshCmdInfo info_interface_mac[] = {
{"help", gettext_noop("convert an interface name to interface MAC address")}, {"help", N_("convert an interface name to interface MAC address")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_interface_mac[] = { static const vshCmdOptDef opts_interface_mac[] = {
{"interface", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("interface name")}, {"interface", VSH_OT_DATA, VSH_OFLAG_REQ, N_("interface name")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3551,14 +3551,14 @@ cmdInterfaceMAC(vshControl *ctl, const vshCmd *cmd) ...@@ -3551,14 +3551,14 @@ cmdInterfaceMAC(vshControl *ctl, const vshCmd *cmd)
* "iface-dumpxml" command * "iface-dumpxml" command
*/ */
static const vshCmdInfo info_interface_dumpxml[] = { static const vshCmdInfo info_interface_dumpxml[] = {
{"help", gettext_noop("interface information in XML")}, {"help", N_("interface information in XML")},
{"desc", gettext_noop("Output the physical host interface information as an XML dump to stdout.")}, {"desc", N_("Output the physical host interface information as an XML dump to stdout.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_interface_dumpxml[] = { static const vshCmdOptDef opts_interface_dumpxml[] = {
{"interface", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("interface name or MAC address")}, {"interface", VSH_OT_DATA, VSH_OFLAG_REQ, N_("interface name or MAC address")},
{"inactive", VSH_OT_BOOL, 0, gettext_noop("show inactive defined XML")}, {"inactive", VSH_OT_BOOL, 0, N_("show inactive defined XML")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3596,13 +3596,13 @@ cmdInterfaceDumpXML(vshControl *ctl, const vshCmd *cmd) ...@@ -3596,13 +3596,13 @@ cmdInterfaceDumpXML(vshControl *ctl, const vshCmd *cmd)
* "iface-define" command * "iface-define" command
*/ */
static const vshCmdInfo info_interface_define[] = { static const vshCmdInfo info_interface_define[] = {
{"help", gettext_noop("define (but don't start) a physical host interface from an XML file")}, {"help", N_("define (but don't start) a physical host interface from an XML file")},
{"desc", gettext_noop("Define a physical host interface.")}, {"desc", N_("Define a physical host interface.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_interface_define[] = { static const vshCmdOptDef opts_interface_define[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing an XML interface description")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing an XML interface description")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3643,13 +3643,13 @@ cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd) ...@@ -3643,13 +3643,13 @@ cmdInterfaceDefine(vshControl *ctl, const vshCmd *cmd)
* "iface-undefine" command * "iface-undefine" command
*/ */
static const vshCmdInfo info_interface_undefine[] = { static const vshCmdInfo info_interface_undefine[] = {
{"help", gettext_noop("undefine a physical host interface (remove it from configuration)")}, {"help", N_("undefine a physical host interface (remove it from configuration)")},
{"desc", gettext_noop("undefine an interface.")}, {"desc", N_("undefine an interface.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_interface_undefine[] = { static const vshCmdOptDef opts_interface_undefine[] = {
{"interface", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("interface name or MAC address")}, {"interface", VSH_OT_DATA, VSH_OFLAG_REQ, N_("interface name or MAC address")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3681,13 +3681,13 @@ cmdInterfaceUndefine(vshControl *ctl, const vshCmd *cmd) ...@@ -3681,13 +3681,13 @@ cmdInterfaceUndefine(vshControl *ctl, const vshCmd *cmd)
* "iface-start" command * "iface-start" command
*/ */
static const vshCmdInfo info_interface_start[] = { static const vshCmdInfo info_interface_start[] = {
{"help", gettext_noop("start a physical host interface (enable it / \"if-up\")")}, {"help", N_("start a physical host interface (enable it / \"if-up\")")},
{"desc", gettext_noop("start a physical host interface.")}, {"desc", N_("start a physical host interface.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_interface_start[] = { static const vshCmdOptDef opts_interface_start[] = {
{"interface", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("interface name or MAC address")}, {"interface", VSH_OT_DATA, VSH_OFLAG_REQ, N_("interface name or MAC address")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3719,13 +3719,13 @@ cmdInterfaceStart(vshControl *ctl, const vshCmd *cmd) ...@@ -3719,13 +3719,13 @@ cmdInterfaceStart(vshControl *ctl, const vshCmd *cmd)
* "iface-destroy" command * "iface-destroy" command
*/ */
static const vshCmdInfo info_interface_destroy[] = { static const vshCmdInfo info_interface_destroy[] = {
{"help", gettext_noop("destroy a physical host interface (disable it / \"if-down\")")}, {"help", N_("destroy a physical host interface (disable it / \"if-down\")")},
{"desc", gettext_noop("destroy a physical host interface.")}, {"desc", N_("destroy a physical host interface.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_interface_destroy[] = { static const vshCmdOptDef opts_interface_destroy[] = {
{"interface", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("interface name or MAC address")}, {"interface", VSH_OT_DATA, VSH_OFLAG_REQ, N_("interface name or MAC address")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3758,15 +3758,15 @@ cmdInterfaceDestroy(vshControl *ctl, const vshCmd *cmd) ...@@ -3758,15 +3758,15 @@ cmdInterfaceDestroy(vshControl *ctl, const vshCmd *cmd)
* "pool-autostart" command * "pool-autostart" command
*/ */
static const vshCmdInfo info_pool_autostart[] = { static const vshCmdInfo info_pool_autostart[] = {
{"help", gettext_noop("autostart a pool")}, {"help", N_("autostart a pool")},
{"desc", {"desc",
gettext_noop("Configure a pool to be automatically started at boot.")}, N_("Configure a pool to be automatically started at boot.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_autostart[] = { static const vshCmdOptDef opts_pool_autostart[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{"disable", VSH_OT_BOOL, 0, gettext_noop("disable autostarting")}, {"disable", VSH_OT_BOOL, 0, N_("disable autostarting")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3807,14 +3807,14 @@ cmdPoolAutostart(vshControl *ctl, const vshCmd *cmd) ...@@ -3807,14 +3807,14 @@ cmdPoolAutostart(vshControl *ctl, const vshCmd *cmd)
* "pool-create" command * "pool-create" command
*/ */
static const vshCmdInfo info_pool_create[] = { static const vshCmdInfo info_pool_create[] = {
{"help", gettext_noop("create a pool from an XML file")}, {"help", N_("create a pool from an XML file")},
{"desc", gettext_noop("Create a pool.")}, {"desc", N_("Create a pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_create[] = { static const vshCmdOptDef opts_pool_create[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, {"file", VSH_OT_DATA, VSH_OFLAG_REQ,
gettext_noop("file containing an XML pool description")}, N_("file containing an XML pool description")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3856,9 +3856,9 @@ cmdPoolCreate(vshControl *ctl, const vshCmd *cmd) ...@@ -3856,9 +3856,9 @@ cmdPoolCreate(vshControl *ctl, const vshCmd *cmd)
* "nodedev-create" command * "nodedev-create" command
*/ */
static const vshCmdInfo info_node_device_create[] = { static const vshCmdInfo info_node_device_create[] = {
{"help", gettext_noop("create a device defined " {"help", N_("create a device defined "
"by an XML file on the node")}, "by an XML file on the node")},
{"desc", gettext_noop("Create a device on the node. Note that this " {"desc", N_("Create a device on the node. Note that this "
"command creates devices on the physical host " "command creates devices on the physical host "
"that can then be assigned to a virtual machine.")}, "that can then be assigned to a virtual machine.")},
{NULL, NULL} {NULL, NULL}
...@@ -3866,7 +3866,7 @@ static const vshCmdInfo info_node_device_create[] = { ...@@ -3866,7 +3866,7 @@ static const vshCmdInfo info_node_device_create[] = {
static const vshCmdOptDef opts_node_device_create[] = { static const vshCmdOptDef opts_node_device_create[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, {"file", VSH_OT_DATA, VSH_OFLAG_REQ,
gettext_noop("file containing an XML description of the device")}, N_("file containing an XML description of the device")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3911,15 +3911,15 @@ cmdNodeDeviceCreate(vshControl *ctl, const vshCmd *cmd) ...@@ -3911,15 +3911,15 @@ cmdNodeDeviceCreate(vshControl *ctl, const vshCmd *cmd)
* "nodedev-destroy" command * "nodedev-destroy" command
*/ */
static const vshCmdInfo info_node_device_destroy[] = { static const vshCmdInfo info_node_device_destroy[] = {
{"help", gettext_noop("destroy a device on the node")}, {"help", N_("destroy a device on the node")},
{"desc", gettext_noop("Destroy a device on the node. Note that this " {"desc", N_("Destroy a device on the node. Note that this "
"command destroys devices on the physical host ")}, "command destroys devices on the physical host ")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_node_device_destroy[] = { static const vshCmdOptDef opts_node_device_destroy[] = {
{"name", VSH_OT_DATA, VSH_OFLAG_REQ, {"name", VSH_OT_DATA, VSH_OFLAG_REQ,
gettext_noop("name of the device to be destroyed")}, N_("name of the device to be destroyed")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -3958,14 +3958,14 @@ cmdNodeDeviceDestroy(vshControl *ctl, const vshCmd *cmd) ...@@ -3958,14 +3958,14 @@ cmdNodeDeviceDestroy(vshControl *ctl, const vshCmd *cmd)
* XML Building helper for pool-define-as and pool-create-as * XML Building helper for pool-define-as and pool-create-as
*/ */
static const vshCmdOptDef opts_pool_X_as[] = { static const vshCmdOptDef opts_pool_X_as[] = {
{"name", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("name of the pool")}, {"name", VSH_OT_DATA, VSH_OFLAG_REQ, N_("name of the pool")},
{"print-xml", VSH_OT_BOOL, 0, gettext_noop("print XML document, but don't define/create")}, {"print-xml", VSH_OT_BOOL, 0, N_("print XML document, but don't define/create")},
{"type", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("type of the pool")}, {"type", VSH_OT_DATA, VSH_OFLAG_REQ, N_("type of the pool")},
{"source-host", VSH_OT_DATA, 0, gettext_noop("source-host for underlying storage")}, {"source-host", VSH_OT_DATA, 0, N_("source-host for underlying storage")},
{"source-path", VSH_OT_DATA, 0, gettext_noop("source path for underlying storage")}, {"source-path", VSH_OT_DATA, 0, N_("source path for underlying storage")},
{"source-dev", VSH_OT_DATA, 0, gettext_noop("source device for underlying storage")}, {"source-dev", VSH_OT_DATA, 0, N_("source device for underlying storage")},
{"source-name", VSH_OT_DATA, 0, gettext_noop("source name for underlying storage")}, {"source-name", VSH_OT_DATA, 0, N_("source name for underlying storage")},
{"target", VSH_OT_DATA, 0, gettext_noop("target for underlying storage")}, {"target", VSH_OT_DATA, 0, N_("target for underlying storage")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4029,8 +4029,8 @@ cleanup: ...@@ -4029,8 +4029,8 @@ cleanup:
* "pool-create-as" command * "pool-create-as" command
*/ */
static const vshCmdInfo info_pool_create_as[] = { static const vshCmdInfo info_pool_create_as[] = {
{"help", gettext_noop("create a pool from a set of args")}, {"help", N_("create a pool from a set of args")},
{"desc", gettext_noop("Create a pool.")}, {"desc", N_("Create a pool.")},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -4070,13 +4070,13 @@ cmdPoolCreateAs(vshControl *ctl, const vshCmd *cmd) ...@@ -4070,13 +4070,13 @@ cmdPoolCreateAs(vshControl *ctl, const vshCmd *cmd)
* "pool-define" command * "pool-define" command
*/ */
static const vshCmdInfo info_pool_define[] = { static const vshCmdInfo info_pool_define[] = {
{"help", gettext_noop("define (but don't start) a pool from an XML file")}, {"help", N_("define (but don't start) a pool from an XML file")},
{"desc", gettext_noop("Define a pool.")}, {"desc", N_("Define a pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_define[] = { static const vshCmdOptDef opts_pool_define[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing an XML pool description")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing an XML pool description")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4118,8 +4118,8 @@ cmdPoolDefine(vshControl *ctl, const vshCmd *cmd) ...@@ -4118,8 +4118,8 @@ cmdPoolDefine(vshControl *ctl, const vshCmd *cmd)
* "pool-define-as" command * "pool-define-as" command
*/ */
static const vshCmdInfo info_pool_define_as[] = { static const vshCmdInfo info_pool_define_as[] = {
{"help", gettext_noop("define a pool from a set of args")}, {"help", N_("define a pool from a set of args")},
{"desc", gettext_noop("Define a pool.")}, {"desc", N_("Define a pool.")},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -4159,13 +4159,13 @@ cmdPoolDefineAs(vshControl *ctl, const vshCmd *cmd) ...@@ -4159,13 +4159,13 @@ cmdPoolDefineAs(vshControl *ctl, const vshCmd *cmd)
* "pool-build" command * "pool-build" command
*/ */
static const vshCmdInfo info_pool_build[] = { static const vshCmdInfo info_pool_build[] = {
{"help", gettext_noop("build a pool")}, {"help", N_("build a pool")},
{"desc", gettext_noop("Build a given pool.")}, {"desc", N_("Build a given pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_build[] = { static const vshCmdOptDef opts_pool_build[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4199,13 +4199,13 @@ cmdPoolBuild(vshControl *ctl, const vshCmd *cmd) ...@@ -4199,13 +4199,13 @@ cmdPoolBuild(vshControl *ctl, const vshCmd *cmd)
* "pool-destroy" command * "pool-destroy" command
*/ */
static const vshCmdInfo info_pool_destroy[] = { static const vshCmdInfo info_pool_destroy[] = {
{"help", gettext_noop("destroy a pool")}, {"help", N_("destroy a pool")},
{"desc", gettext_noop("Destroy a given pool.")}, {"desc", N_("Destroy a given pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_destroy[] = { static const vshCmdOptDef opts_pool_destroy[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4238,13 +4238,13 @@ cmdPoolDestroy(vshControl *ctl, const vshCmd *cmd) ...@@ -4238,13 +4238,13 @@ cmdPoolDestroy(vshControl *ctl, const vshCmd *cmd)
* "pool-delete" command * "pool-delete" command
*/ */
static const vshCmdInfo info_pool_delete[] = { static const vshCmdInfo info_pool_delete[] = {
{"help", gettext_noop("delete a pool")}, {"help", N_("delete a pool")},
{"desc", gettext_noop("Delete a given pool.")}, {"desc", N_("Delete a given pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_delete[] = { static const vshCmdOptDef opts_pool_delete[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4277,13 +4277,13 @@ cmdPoolDelete(vshControl *ctl, const vshCmd *cmd) ...@@ -4277,13 +4277,13 @@ cmdPoolDelete(vshControl *ctl, const vshCmd *cmd)
* "pool-refresh" command * "pool-refresh" command
*/ */
static const vshCmdInfo info_pool_refresh[] = { static const vshCmdInfo info_pool_refresh[] = {
{"help", gettext_noop("refresh a pool")}, {"help", N_("refresh a pool")},
{"desc", gettext_noop("Refresh a given pool.")}, {"desc", N_("Refresh a given pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_refresh[] = { static const vshCmdOptDef opts_pool_refresh[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4316,13 +4316,13 @@ cmdPoolRefresh(vshControl *ctl, const vshCmd *cmd) ...@@ -4316,13 +4316,13 @@ cmdPoolRefresh(vshControl *ctl, const vshCmd *cmd)
* "pool-dumpxml" command * "pool-dumpxml" command
*/ */
static const vshCmdInfo info_pool_dumpxml[] = { static const vshCmdInfo info_pool_dumpxml[] = {
{"help", gettext_noop("pool information in XML")}, {"help", N_("pool information in XML")},
{"desc", gettext_noop("Output the pool information as an XML dump to stdout.")}, {"desc", N_("Output the pool information as an XML dump to stdout.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_dumpxml[] = { static const vshCmdOptDef opts_pool_dumpxml[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4356,14 +4356,14 @@ cmdPoolDumpXML(vshControl *ctl, const vshCmd *cmd) ...@@ -4356,14 +4356,14 @@ cmdPoolDumpXML(vshControl *ctl, const vshCmd *cmd)
* "pool-list" command * "pool-list" command
*/ */
static const vshCmdInfo info_pool_list[] = { static const vshCmdInfo info_pool_list[] = {
{"help", gettext_noop("list pools")}, {"help", N_("list pools")},
{"desc", gettext_noop("Returns list of pools.")}, {"desc", N_("Returns list of pools.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_list[] = { static const vshCmdOptDef opts_pool_list[] = {
{"inactive", VSH_OT_BOOL, 0, gettext_noop("list inactive pools")}, {"inactive", VSH_OT_BOOL, 0, N_("list inactive pools")},
{"all", VSH_OT_BOOL, 0, gettext_noop("list inactive & active pools")}, {"all", VSH_OT_BOOL, 0, N_("list inactive & active pools")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4478,16 +4478,16 @@ cmdPoolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -4478,16 +4478,16 @@ cmdPoolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "find-storage-pool-sources-as" command * "find-storage-pool-sources-as" command
*/ */
static const vshCmdInfo info_find_storage_pool_sources_as[] = { static const vshCmdInfo info_find_storage_pool_sources_as[] = {
{"help", gettext_noop("find potential storage pool sources")}, {"help", N_("find potential storage pool sources")},
{"desc", gettext_noop("Returns XML <sources> document.")}, {"desc", N_("Returns XML <sources> document.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_find_storage_pool_sources_as[] = { static const vshCmdOptDef opts_find_storage_pool_sources_as[] = {
{"type", VSH_OT_DATA, VSH_OFLAG_REQ, {"type", VSH_OT_DATA, VSH_OFLAG_REQ,
gettext_noop("type of storage pool sources to find")}, N_("type of storage pool sources to find")},
{"host", VSH_OT_DATA, VSH_OFLAG_NONE, gettext_noop("optional host to query")}, {"host", VSH_OT_DATA, VSH_OFLAG_NONE, N_("optional host to query")},
{"port", VSH_OT_DATA, VSH_OFLAG_NONE, gettext_noop("optional port to query")}, {"port", VSH_OT_DATA, VSH_OFLAG_NONE, N_("optional port to query")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4558,16 +4558,16 @@ cmdPoolDiscoverSourcesAs(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED) ...@@ -4558,16 +4558,16 @@ cmdPoolDiscoverSourcesAs(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED)
* "find-storage-pool-sources" command * "find-storage-pool-sources" command
*/ */
static const vshCmdInfo info_find_storage_pool_sources[] = { static const vshCmdInfo info_find_storage_pool_sources[] = {
{"help", gettext_noop("discover potential storage pool sources")}, {"help", N_("discover potential storage pool sources")},
{"desc", gettext_noop("Returns XML <sources> document.")}, {"desc", N_("Returns XML <sources> document.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_find_storage_pool_sources[] = { static const vshCmdOptDef opts_find_storage_pool_sources[] = {
{"type", VSH_OT_DATA, VSH_OFLAG_REQ, {"type", VSH_OT_DATA, VSH_OFLAG_REQ,
gettext_noop("type of storage pool sources to discover")}, N_("type of storage pool sources to discover")},
{"srcSpec", VSH_OT_DATA, VSH_OFLAG_NONE, {"srcSpec", VSH_OT_DATA, VSH_OFLAG_NONE,
gettext_noop("optional file of source xml to query for pools")}, N_("optional file of source xml to query for pools")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4608,13 +4608,13 @@ cmdPoolDiscoverSources(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED) ...@@ -4608,13 +4608,13 @@ cmdPoolDiscoverSources(vshControl * ctl, const vshCmd * cmd ATTRIBUTE_UNUSED)
* "pool-info" command * "pool-info" command
*/ */
static const vshCmdInfo info_pool_info[] = { static const vshCmdInfo info_pool_info[] = {
{"help", gettext_noop("storage pool information")}, {"help", N_("storage pool information")},
{"desc", gettext_noop("Returns basic information about the storage pool.")}, {"desc", N_("Returns basic information about the storage pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_info[] = { static const vshCmdOptDef opts_pool_info[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4683,13 +4683,13 @@ cmdPoolInfo(vshControl *ctl, const vshCmd *cmd) ...@@ -4683,13 +4683,13 @@ cmdPoolInfo(vshControl *ctl, const vshCmd *cmd)
* "pool-name" command * "pool-name" command
*/ */
static const vshCmdInfo info_pool_name[] = { static const vshCmdInfo info_pool_name[] = {
{"help", gettext_noop("convert a pool UUID to pool name")}, {"help", N_("convert a pool UUID to pool name")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_name[] = { static const vshCmdOptDef opts_pool_name[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4714,13 +4714,13 @@ cmdPoolName(vshControl *ctl, const vshCmd *cmd) ...@@ -4714,13 +4714,13 @@ cmdPoolName(vshControl *ctl, const vshCmd *cmd)
* "pool-start" command * "pool-start" command
*/ */
static const vshCmdInfo info_pool_start[] = { static const vshCmdInfo info_pool_start[] = {
{"help", gettext_noop("start a (previously defined) inactive pool")}, {"help", N_("start a (previously defined) inactive pool")},
{"desc", gettext_noop("Start a pool.")}, {"desc", N_("Start a pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_start[] = { static const vshCmdOptDef opts_pool_start[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("name of the inactive pool")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("name of the inactive pool")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4753,17 +4753,17 @@ cmdPoolStart(vshControl *ctl, const vshCmd *cmd) ...@@ -4753,17 +4753,17 @@ cmdPoolStart(vshControl *ctl, const vshCmd *cmd)
* "vol-create-as" command * "vol-create-as" command
*/ */
static const vshCmdInfo info_vol_create_as[] = { static const vshCmdInfo info_vol_create_as[] = {
{"help", gettext_noop("create a volume from a set of args")}, {"help", N_("create a volume from a set of args")},
{"desc", gettext_noop("Create a vol.")}, {"desc", N_("Create a vol.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_create_as[] = { static const vshCmdOptDef opts_vol_create_as[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name")},
{"name", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("name of the volume")}, {"name", VSH_OT_DATA, VSH_OFLAG_REQ, N_("name of the volume")},
{"capacity", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("size of the vol with optional k,M,G,T suffix")}, {"capacity", VSH_OT_DATA, VSH_OFLAG_REQ, N_("size of the vol with optional k,M,G,T suffix")},
{"allocation", VSH_OT_STRING, 0, gettext_noop("initial allocation size with optional k,M,G,T suffix")}, {"allocation", VSH_OT_STRING, 0, N_("initial allocation size with optional k,M,G,T suffix")},
{"format", VSH_OT_STRING, 0, gettext_noop("file format type raw,bochs,qcow,qcow2,vmdk")}, {"format", VSH_OT_STRING, 0, N_("file format type raw,bochs,qcow,qcow2,vmdk")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4873,13 +4873,13 @@ cmdVolCreateAs(vshControl *ctl, const vshCmd *cmd) ...@@ -4873,13 +4873,13 @@ cmdVolCreateAs(vshControl *ctl, const vshCmd *cmd)
* "pool-undefine" command * "pool-undefine" command
*/ */
static const vshCmdInfo info_pool_undefine[] = { static const vshCmdInfo info_pool_undefine[] = {
{"help", gettext_noop("undefine an inactive pool")}, {"help", N_("undefine an inactive pool")},
{"desc", gettext_noop("Undefine the configuration for an inactive pool.")}, {"desc", N_("Undefine the configuration for an inactive pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_undefine[] = { static const vshCmdOptDef opts_pool_undefine[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4912,13 +4912,13 @@ cmdPoolUndefine(vshControl *ctl, const vshCmd *cmd) ...@@ -4912,13 +4912,13 @@ cmdPoolUndefine(vshControl *ctl, const vshCmd *cmd)
* "pool-uuid" command * "pool-uuid" command
*/ */
static const vshCmdInfo info_pool_uuid[] = { static const vshCmdInfo info_pool_uuid[] = {
{"help", gettext_noop("convert a pool name to pool UUID")}, {"help", N_("convert a pool name to pool UUID")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_uuid[] = { static const vshCmdOptDef opts_pool_uuid[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -4949,14 +4949,14 @@ cmdPoolUuid(vshControl *ctl, const vshCmd *cmd) ...@@ -4949,14 +4949,14 @@ cmdPoolUuid(vshControl *ctl, const vshCmd *cmd)
* "vol-create" command * "vol-create" command
*/ */
static const vshCmdInfo info_vol_create[] = { static const vshCmdInfo info_vol_create[] = {
{"help", gettext_noop("create a vol from an XML file")}, {"help", N_("create a vol from an XML file")},
{"desc", gettext_noop("Create a vol.")}, {"desc", N_("Create a vol.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_create[] = { static const vshCmdOptDef opts_vol_create[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name")},
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing an XML vol description")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing an XML vol description")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5007,16 +5007,16 @@ cmdVolCreate(vshControl *ctl, const vshCmd *cmd) ...@@ -5007,16 +5007,16 @@ cmdVolCreate(vshControl *ctl, const vshCmd *cmd)
* "vol-create-from" command * "vol-create-from" command
*/ */
static const vshCmdInfo info_vol_create_from[] = { static const vshCmdInfo info_vol_create_from[] = {
{"help", gettext_noop("create a vol, using another volume as input")}, {"help", N_("create a vol, using another volume as input")},
{"desc", gettext_noop("Create a vol from an existing volume.")}, {"desc", N_("Create a vol from an existing volume.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_create_from[] = { static const vshCmdOptDef opts_vol_create_from[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name")},
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing an XML vol description")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing an XML vol description")},
{"inputpool", VSH_OT_STRING, 0, gettext_noop("pool name or uuid of the input volume's pool")}, {"inputpool", VSH_OT_STRING, 0, N_("pool name or uuid of the input volume's pool")},
{"vol", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("input vol name or key")}, {"vol", VSH_OT_DATA, VSH_OFLAG_REQ, N_("input vol name or key")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5106,15 +5106,15 @@ cleanup: ...@@ -5106,15 +5106,15 @@ cleanup:
* "vol-clone" command * "vol-clone" command
*/ */
static const vshCmdInfo info_vol_clone[] = { static const vshCmdInfo info_vol_clone[] = {
{"help", gettext_noop("clone a volume.")}, {"help", N_("clone a volume.")},
{"desc", gettext_noop("Clone an existing volume.")}, {"desc", N_("Clone an existing volume.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_clone[] = { static const vshCmdOptDef opts_vol_clone[] = {
{"pool", VSH_OT_STRING, 0, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_STRING, 0, N_("pool name or uuid")},
{"vol", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("orig vol name or key")}, {"vol", VSH_OT_DATA, VSH_OFLAG_REQ, N_("orig vol name or key")},
{"newname", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("clone name")}, {"newname", VSH_OT_DATA, VSH_OFLAG_REQ, N_("clone name")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5183,14 +5183,14 @@ cleanup: ...@@ -5183,14 +5183,14 @@ cleanup:
* "vol-delete" command * "vol-delete" command
*/ */
static const vshCmdInfo info_vol_delete[] = { static const vshCmdInfo info_vol_delete[] = {
{"help", gettext_noop("delete a vol")}, {"help", N_("delete a vol")},
{"desc", gettext_noop("Delete a given vol.")}, {"desc", N_("Delete a given vol.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_delete[] = { static const vshCmdOptDef opts_vol_delete[] = {
{"pool", VSH_OT_STRING, 0, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_STRING, 0, N_("pool name or uuid")},
{"vol", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("vol name, key or path")}, {"vol", VSH_OT_DATA, VSH_OFLAG_REQ, N_("vol name, key or path")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5224,14 +5224,14 @@ cmdVolDelete(vshControl *ctl, const vshCmd *cmd) ...@@ -5224,14 +5224,14 @@ cmdVolDelete(vshControl *ctl, const vshCmd *cmd)
* "vol-info" command * "vol-info" command
*/ */
static const vshCmdInfo info_vol_info[] = { static const vshCmdInfo info_vol_info[] = {
{"help", gettext_noop("storage vol information")}, {"help", N_("storage vol information")},
{"desc", gettext_noop("Returns basic information about the storage vol.")}, {"desc", N_("Returns basic information about the storage vol.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_info[] = { static const vshCmdOptDef opts_vol_info[] = {
{"pool", VSH_OT_STRING, 0, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_STRING, 0, N_("pool name or uuid")},
{"vol", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("vol name, key or path")}, {"vol", VSH_OT_DATA, VSH_OFLAG_REQ, N_("vol name, key or path")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5275,14 +5275,14 @@ cmdVolInfo(vshControl *ctl, const vshCmd *cmd) ...@@ -5275,14 +5275,14 @@ cmdVolInfo(vshControl *ctl, const vshCmd *cmd)
* "vol-dumpxml" command * "vol-dumpxml" command
*/ */
static const vshCmdInfo info_vol_dumpxml[] = { static const vshCmdInfo info_vol_dumpxml[] = {
{"help", gettext_noop("vol information in XML")}, {"help", N_("vol information in XML")},
{"desc", gettext_noop("Output the vol information as an XML dump to stdout.")}, {"desc", N_("Output the vol information as an XML dump to stdout.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_dumpxml[] = { static const vshCmdOptDef opts_vol_dumpxml[] = {
{"pool", VSH_OT_STRING, 0, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_STRING, 0, N_("pool name or uuid")},
{"vol", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("vol name, key or path")}, {"vol", VSH_OT_DATA, VSH_OFLAG_REQ, N_("vol name, key or path")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5316,13 +5316,13 @@ cmdVolDumpXML(vshControl *ctl, const vshCmd *cmd) ...@@ -5316,13 +5316,13 @@ cmdVolDumpXML(vshControl *ctl, const vshCmd *cmd)
* "vol-list" command * "vol-list" command
*/ */
static const vshCmdInfo info_vol_list[] = { static const vshCmdInfo info_vol_list[] = {
{"help", gettext_noop("list vols")}, {"help", N_("list vols")},
{"desc", gettext_noop("Returns list of vols by pool.")}, {"desc", N_("Returns list of vols by pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_list[] = { static const vshCmdOptDef opts_vol_list[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5394,13 +5394,13 @@ cmdVolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -5394,13 +5394,13 @@ cmdVolList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "vol-name" command * "vol-name" command
*/ */
static const vshCmdInfo info_vol_name[] = { static const vshCmdInfo info_vol_name[] = {
{"help", gettext_noop("convert a vol UUID to vol name")}, {"help", N_("convert a vol UUID to vol name")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_name[] = { static const vshCmdOptDef opts_vol_name[] = {
{"vol", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("vol key or path")}, {"vol", VSH_OT_DATA, VSH_OFLAG_REQ, N_("vol key or path")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5427,13 +5427,13 @@ cmdVolName(vshControl *ctl, const vshCmd *cmd) ...@@ -5427,13 +5427,13 @@ cmdVolName(vshControl *ctl, const vshCmd *cmd)
* "vol-key" command * "vol-key" command
*/ */
static const vshCmdInfo info_vol_key[] = { static const vshCmdInfo info_vol_key[] = {
{"help", gettext_noop("convert a vol UUID to vol key")}, {"help", N_("convert a vol UUID to vol key")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_key[] = { static const vshCmdOptDef opts_vol_key[] = {
{"vol", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("vol uuid")}, {"vol", VSH_OT_DATA, VSH_OFLAG_REQ, N_("vol uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5460,14 +5460,14 @@ cmdVolKey(vshControl *ctl, const vshCmd *cmd) ...@@ -5460,14 +5460,14 @@ cmdVolKey(vshControl *ctl, const vshCmd *cmd)
* "vol-path" command * "vol-path" command
*/ */
static const vshCmdInfo info_vol_path[] = { static const vshCmdInfo info_vol_path[] = {
{"help", gettext_noop("convert a vol UUID to vol path")}, {"help", N_("convert a vol UUID to vol path")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vol_path[] = { static const vshCmdOptDef opts_vol_path[] = {
{"pool", VSH_OT_STRING, 0, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_STRING, 0, N_("pool name or uuid")},
{"vol", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("vol name or key")}, {"vol", VSH_OT_DATA, VSH_OFLAG_REQ, N_("vol name or key")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5494,13 +5494,13 @@ cmdVolPath(vshControl *ctl, const vshCmd *cmd) ...@@ -5494,13 +5494,13 @@ cmdVolPath(vshControl *ctl, const vshCmd *cmd)
* "secret-define" command * "secret-define" command
*/ */
static const vshCmdInfo info_secret_define[] = { static const vshCmdInfo info_secret_define[] = {
{"help", gettext_noop("define or modify a secret from an XML file")}, {"help", N_("define or modify a secret from an XML file")},
{"desc", gettext_noop("Define or modify a secret.")}, {"desc", N_("Define or modify a secret.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_secret_define[] = { static const vshCmdOptDef opts_secret_define[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing secret attributes in XML")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing secret attributes in XML")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5542,13 +5542,13 @@ cmdSecretDefine(vshControl *ctl, const vshCmd *cmd) ...@@ -5542,13 +5542,13 @@ cmdSecretDefine(vshControl *ctl, const vshCmd *cmd)
* "secret-dumpxml" command * "secret-dumpxml" command
*/ */
static const vshCmdInfo info_secret_dumpxml[] = { static const vshCmdInfo info_secret_dumpxml[] = {
{"help", gettext_noop("secret attributes in XML")}, {"help", N_("secret attributes in XML")},
{"desc", gettext_noop("Output attributes of a secret as an XML dump to stdout.")}, {"desc", N_("Output attributes of a secret as an XML dump to stdout.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_secret_dumpxml[] = { static const vshCmdOptDef opts_secret_dumpxml[] = {
{"secret", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("secret UUID")}, {"secret", VSH_OT_DATA, VSH_OFLAG_REQ, N_("secret UUID")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5582,14 +5582,14 @@ cleanup: ...@@ -5582,14 +5582,14 @@ cleanup:
* "secret-set-value" command * "secret-set-value" command
*/ */
static const vshCmdInfo info_secret_set_value[] = { static const vshCmdInfo info_secret_set_value[] = {
{"help", gettext_noop("set a secret value")}, {"help", N_("set a secret value")},
{"desc", gettext_noop("Set a secret value.")}, {"desc", N_("Set a secret value.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_secret_set_value[] = { static const vshCmdOptDef opts_secret_set_value[] = {
{"secret", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("secret UUID")}, {"secret", VSH_OT_DATA, VSH_OFLAG_REQ, N_("secret UUID")},
{"base64", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("base64-encoded secret value")}, {"base64", VSH_OT_DATA, VSH_OFLAG_REQ, N_("base64-encoded secret value")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5641,13 +5641,13 @@ cleanup: ...@@ -5641,13 +5641,13 @@ cleanup:
* "secret-get-value" command * "secret-get-value" command
*/ */
static const vshCmdInfo info_secret_get_value[] = { static const vshCmdInfo info_secret_get_value[] = {
{"help", gettext_noop("Output a secret value")}, {"help", N_("Output a secret value")},
{"desc", gettext_noop("Output a secret value to stdout.")}, {"desc", N_("Output a secret value to stdout.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_secret_get_value[] = { static const vshCmdOptDef opts_secret_get_value[] = {
{"secret", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("secret UUID")}, {"secret", VSH_OT_DATA, VSH_OFLAG_REQ, N_("secret UUID")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5693,13 +5693,13 @@ cleanup: ...@@ -5693,13 +5693,13 @@ cleanup:
* "secret-undefine" command * "secret-undefine" command
*/ */
static const vshCmdInfo info_secret_undefine[] = { static const vshCmdInfo info_secret_undefine[] = {
{"help", gettext_noop("undefine a secret")}, {"help", N_("undefine a secret")},
{"desc", gettext_noop("Undefine a secret.")}, {"desc", N_("Undefine a secret.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_secret_undefine[] = { static const vshCmdOptDef opts_secret_undefine[] = {
{"secret", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("secret UUID")}, {"secret", VSH_OT_DATA, VSH_OFLAG_REQ, N_("secret UUID")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -5733,8 +5733,8 @@ cleanup: ...@@ -5733,8 +5733,8 @@ cleanup:
* "secret-list" command * "secret-list" command
*/ */
static const vshCmdInfo info_secret_list[] = { static const vshCmdInfo info_secret_list[] = {
{"help", gettext_noop("list secrets")}, {"help", N_("list secrets")},
{"desc", gettext_noop("Returns a list of secrets")}, {"desc", N_("Returns a list of secrets")},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -5801,8 +5801,8 @@ cmdSecretList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -5801,8 +5801,8 @@ cmdSecretList(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "version" command * "version" command
*/ */
static const vshCmdInfo info_version[] = { static const vshCmdInfo info_version[] = {
{"help", gettext_noop("show version")}, {"help", N_("show version")},
{"desc", gettext_noop("Display the system version information.")}, {"desc", N_("Display the system version information.")},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -5880,14 +5880,14 @@ cmdVersion(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -5880,14 +5880,14 @@ cmdVersion(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "nodedev-list" command * "nodedev-list" command
*/ */
static const vshCmdInfo info_node_list_devices[] = { static const vshCmdInfo info_node_list_devices[] = {
{"help", gettext_noop("enumerate devices on this host")}, {"help", N_("enumerate devices on this host")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_node_list_devices[] = { static const vshCmdOptDef opts_node_list_devices[] = {
{"tree", VSH_OT_BOOL, 0, gettext_noop("list devices in a tree")}, {"tree", VSH_OT_BOOL, 0, N_("list devices in a tree")},
{"cap", VSH_OT_STRING, VSH_OFLAG_NONE, gettext_noop("capability name")}, {"cap", VSH_OT_STRING, VSH_OFLAG_NONE, N_("capability name")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6048,14 +6048,14 @@ cmdNodeListDevices (vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -6048,14 +6048,14 @@ cmdNodeListDevices (vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "nodedev-dumpxml" command * "nodedev-dumpxml" command
*/ */
static const vshCmdInfo info_node_device_dumpxml[] = { static const vshCmdInfo info_node_device_dumpxml[] = {
{"help", gettext_noop("node device details in XML")}, {"help", N_("node device details in XML")},
{"desc", gettext_noop("Output the node device details as an XML dump to stdout.")}, {"desc", N_("Output the node device details as an XML dump to stdout.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_node_device_dumpxml[] = { static const vshCmdOptDef opts_node_device_dumpxml[] = {
{"device", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("device key")}, {"device", VSH_OT_DATA, VSH_OFLAG_REQ, N_("device key")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6091,14 +6091,14 @@ cmdNodeDeviceDumpXML (vshControl *ctl, const vshCmd *cmd) ...@@ -6091,14 +6091,14 @@ cmdNodeDeviceDumpXML (vshControl *ctl, const vshCmd *cmd)
* "nodedev-dettach" command * "nodedev-dettach" command
*/ */
static const vshCmdInfo info_node_device_dettach[] = { static const vshCmdInfo info_node_device_dettach[] = {
{"help", gettext_noop("dettach node device from its device driver")}, {"help", N_("dettach node device from its device driver")},
{"desc", gettext_noop("Dettach node device from its device driver before assigning to a domain.")}, {"desc", N_("Dettach node device from its device driver before assigning to a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_node_device_dettach[] = { static const vshCmdOptDef opts_node_device_dettach[] = {
{"device", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("device key")}, {"device", VSH_OT_DATA, VSH_OFLAG_REQ, N_("device key")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6132,14 +6132,14 @@ cmdNodeDeviceDettach (vshControl *ctl, const vshCmd *cmd) ...@@ -6132,14 +6132,14 @@ cmdNodeDeviceDettach (vshControl *ctl, const vshCmd *cmd)
* "nodedev-reattach" command * "nodedev-reattach" command
*/ */
static const vshCmdInfo info_node_device_reattach[] = { static const vshCmdInfo info_node_device_reattach[] = {
{"help", gettext_noop("reattach node device to its device driver")}, {"help", N_("reattach node device to its device driver")},
{"desc", gettext_noop("Reattach node device to its device driver once released by the domain.")}, {"desc", N_("Reattach node device to its device driver once released by the domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_node_device_reattach[] = { static const vshCmdOptDef opts_node_device_reattach[] = {
{"device", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("device key")}, {"device", VSH_OT_DATA, VSH_OFLAG_REQ, N_("device key")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6173,14 +6173,14 @@ cmdNodeDeviceReAttach (vshControl *ctl, const vshCmd *cmd) ...@@ -6173,14 +6173,14 @@ cmdNodeDeviceReAttach (vshControl *ctl, const vshCmd *cmd)
* "nodedev-reset" command * "nodedev-reset" command
*/ */
static const vshCmdInfo info_node_device_reset[] = { static const vshCmdInfo info_node_device_reset[] = {
{"help", gettext_noop("reset node device")}, {"help", N_("reset node device")},
{"desc", gettext_noop("Reset node device before or after assigning to a domain.")}, {"desc", N_("Reset node device before or after assigning to a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_node_device_reset[] = { static const vshCmdOptDef opts_node_device_reset[] = {
{"device", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("device key")}, {"device", VSH_OT_DATA, VSH_OFLAG_REQ, N_("device key")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6214,7 +6214,7 @@ cmdNodeDeviceReset (vshControl *ctl, const vshCmd *cmd) ...@@ -6214,7 +6214,7 @@ cmdNodeDeviceReset (vshControl *ctl, const vshCmd *cmd)
* "hostkey" command * "hostkey" command
*/ */
static const vshCmdInfo info_hostname[] = { static const vshCmdInfo info_hostname[] = {
{"help", gettext_noop("print the hypervisor hostname")}, {"help", N_("print the hypervisor hostname")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -6243,7 +6243,7 @@ cmdHostname (vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -6243,7 +6243,7 @@ cmdHostname (vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "uri" command * "uri" command
*/ */
static const vshCmdInfo info_uri[] = { static const vshCmdInfo info_uri[] = {
{"help", gettext_noop("print the hypervisor canonical URI")}, {"help", N_("print the hypervisor canonical URI")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -6272,13 +6272,13 @@ cmdURI (vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -6272,13 +6272,13 @@ cmdURI (vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "vncdisplay" command * "vncdisplay" command
*/ */
static const vshCmdInfo info_vncdisplay[] = { static const vshCmdInfo info_vncdisplay[] = {
{"help", gettext_noop("vnc display")}, {"help", N_("vnc display")},
{"desc", gettext_noop("Output the IP address and port number for the VNC display.")}, {"desc", N_("Output the IP address and port number for the VNC display.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_vncdisplay[] = { static const vshCmdOptDef opts_vncdisplay[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6347,13 +6347,13 @@ cmdVNCDisplay(vshControl *ctl, const vshCmd *cmd) ...@@ -6347,13 +6347,13 @@ cmdVNCDisplay(vshControl *ctl, const vshCmd *cmd)
* "ttyconsole" command * "ttyconsole" command
*/ */
static const vshCmdInfo info_ttyconsole[] = { static const vshCmdInfo info_ttyconsole[] = {
{"help", gettext_noop("tty console")}, {"help", N_("tty console")},
{"desc", gettext_noop("Output the device for the TTY console.")}, {"desc", N_("Output the device for the TTY console.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_ttyconsole[] = { static const vshCmdOptDef opts_ttyconsole[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6408,15 +6408,15 @@ cmdTTYConsole(vshControl *ctl, const vshCmd *cmd) ...@@ -6408,15 +6408,15 @@ cmdTTYConsole(vshControl *ctl, const vshCmd *cmd)
* "attach-device" command * "attach-device" command
*/ */
static const vshCmdInfo info_attach_device[] = { static const vshCmdInfo info_attach_device[] = {
{"help", gettext_noop("attach device from an XML file")}, {"help", N_("attach device from an XML file")},
{"desc", gettext_noop("Attach device from an XML <file>.")}, {"desc", N_("Attach device from an XML <file>.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_attach_device[] = { static const vshCmdOptDef opts_attach_device[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("XML file")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("XML file")},
{"persistent", VSH_OT_BOOL, 0, gettext_noop("persist device attachment")}, {"persistent", VSH_OT_BOOL, 0, N_("persist device attachment")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6475,15 +6475,15 @@ cmdAttachDevice(vshControl *ctl, const vshCmd *cmd) ...@@ -6475,15 +6475,15 @@ cmdAttachDevice(vshControl *ctl, const vshCmd *cmd)
* "detach-device" command * "detach-device" command
*/ */
static const vshCmdInfo info_detach_device[] = { static const vshCmdInfo info_detach_device[] = {
{"help", gettext_noop("detach device from an XML file")}, {"help", N_("detach device from an XML file")},
{"desc", gettext_noop("Detach device from an XML <file>")}, {"desc", N_("Detach device from an XML <file>")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_detach_device[] = { static const vshCmdOptDef opts_detach_device[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("XML file")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("XML file")},
{"persistent", VSH_OT_BOOL, 0, gettext_noop("persist device detachment")}, {"persistent", VSH_OT_BOOL, 0, N_("persist device detachment")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6542,19 +6542,19 @@ cmdDetachDevice(vshControl *ctl, const vshCmd *cmd) ...@@ -6542,19 +6542,19 @@ cmdDetachDevice(vshControl *ctl, const vshCmd *cmd)
* "attach-interface" command * "attach-interface" command
*/ */
static const vshCmdInfo info_attach_interface[] = { static const vshCmdInfo info_attach_interface[] = {
{"help", gettext_noop("attach network interface")}, {"help", N_("attach network interface")},
{"desc", gettext_noop("Attach new network interface.")}, {"desc", N_("Attach new network interface.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_attach_interface[] = { static const vshCmdOptDef opts_attach_interface[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"type", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("network interface type")}, {"type", VSH_OT_DATA, VSH_OFLAG_REQ, N_("network interface type")},
{"source", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("source of network interface")}, {"source", VSH_OT_DATA, VSH_OFLAG_REQ, N_("source of network interface")},
{"target", VSH_OT_DATA, 0, gettext_noop("target network name")}, {"target", VSH_OT_DATA, 0, N_("target network name")},
{"mac", VSH_OT_DATA, 0, gettext_noop("MAC address")}, {"mac", VSH_OT_DATA, 0, N_("MAC address")},
{"script", VSH_OT_DATA, 0, gettext_noop("script used to bridge network interface")}, {"script", VSH_OT_DATA, 0, N_("script used to bridge network interface")},
{"persistent", VSH_OT_BOOL, 0, gettext_noop("persist interface attachment")}, {"persistent", VSH_OT_BOOL, 0, N_("persist interface attachment")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6669,16 +6669,16 @@ cmdAttachInterface(vshControl *ctl, const vshCmd *cmd) ...@@ -6669,16 +6669,16 @@ cmdAttachInterface(vshControl *ctl, const vshCmd *cmd)
* "detach-interface" command * "detach-interface" command
*/ */
static const vshCmdInfo info_detach_interface[] = { static const vshCmdInfo info_detach_interface[] = {
{"help", gettext_noop("detach network interface")}, {"help", N_("detach network interface")},
{"desc", gettext_noop("Detach network interface.")}, {"desc", N_("Detach network interface.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_detach_interface[] = { static const vshCmdOptDef opts_detach_interface[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"type", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("network interface type")}, {"type", VSH_OT_DATA, VSH_OFLAG_REQ, N_("network interface type")},
{"mac", VSH_OT_STRING, 0, gettext_noop("MAC address")}, {"mac", VSH_OT_STRING, 0, N_("MAC address")},
{"persistent", VSH_OT_BOOL, 0, gettext_noop("persist interface detachment")}, {"persistent", VSH_OT_BOOL, 0, N_("persist interface detachment")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6802,20 +6802,20 @@ cmdDetachInterface(vshControl *ctl, const vshCmd *cmd) ...@@ -6802,20 +6802,20 @@ cmdDetachInterface(vshControl *ctl, const vshCmd *cmd)
* "attach-disk" command * "attach-disk" command
*/ */
static const vshCmdInfo info_attach_disk[] = { static const vshCmdInfo info_attach_disk[] = {
{"help", gettext_noop("attach disk device")}, {"help", N_("attach disk device")},
{"desc", gettext_noop("Attach new disk device.")}, {"desc", N_("Attach new disk device.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_attach_disk[] = { static const vshCmdOptDef opts_attach_disk[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"source", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("source of disk device")}, {"source", VSH_OT_DATA, VSH_OFLAG_REQ, N_("source of disk device")},
{"target", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("target of disk device")}, {"target", VSH_OT_DATA, VSH_OFLAG_REQ, N_("target of disk device")},
{"driver", VSH_OT_STRING, 0, gettext_noop("driver of disk device")}, {"driver", VSH_OT_STRING, 0, N_("driver of disk device")},
{"subdriver", VSH_OT_STRING, 0, gettext_noop("subdriver of disk device")}, {"subdriver", VSH_OT_STRING, 0, N_("subdriver of disk device")},
{"type", VSH_OT_STRING, 0, gettext_noop("target device type")}, {"type", VSH_OT_STRING, 0, N_("target device type")},
{"mode", VSH_OT_STRING, 0, gettext_noop("mode of device reading and writing")}, {"mode", VSH_OT_STRING, 0, N_("mode of device reading and writing")},
{"persistent", VSH_OT_BOOL, 0, gettext_noop("persist disk attachment")}, {"persistent", VSH_OT_BOOL, 0, N_("persist disk attachment")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -6971,15 +6971,15 @@ cmdAttachDisk(vshControl *ctl, const vshCmd *cmd) ...@@ -6971,15 +6971,15 @@ cmdAttachDisk(vshControl *ctl, const vshCmd *cmd)
* "detach-disk" command * "detach-disk" command
*/ */
static const vshCmdInfo info_detach_disk[] = { static const vshCmdInfo info_detach_disk[] = {
{"help", gettext_noop("detach disk device")}, {"help", N_("detach disk device")},
{"desc", gettext_noop("Detach disk device.")}, {"desc", N_("Detach disk device.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_detach_disk[] = { static const vshCmdOptDef opts_detach_disk[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{"target", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("target of disk device")}, {"target", VSH_OT_DATA, VSH_OFLAG_REQ, N_("target of disk device")},
{"persistent", VSH_OT_BOOL, 0, gettext_noop("persist disk detachment")}, {"persistent", VSH_OT_BOOL, 0, N_("persist disk detachment")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -7096,13 +7096,13 @@ cmdDetachDisk(vshControl *ctl, const vshCmd *cmd) ...@@ -7096,13 +7096,13 @@ cmdDetachDisk(vshControl *ctl, const vshCmd *cmd)
* "cpu-compare" command * "cpu-compare" command
*/ */
static const vshCmdInfo info_cpu_compare[] = { static const vshCmdInfo info_cpu_compare[] = {
{"help", gettext_noop("compare host CPU with a CPU described by an XML file")}, {"help", N_("compare host CPU with a CPU described by an XML file")},
{"desc", gettext_noop("compare CPU with host CPU")}, {"desc", N_("compare CPU with host CPU")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_cpu_compare[] = { static const vshCmdOptDef opts_cpu_compare[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing an XML CPU description")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing an XML CPU description")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -7160,13 +7160,13 @@ cmdCPUCompare(vshControl *ctl, const vshCmd *cmd) ...@@ -7160,13 +7160,13 @@ cmdCPUCompare(vshControl *ctl, const vshCmd *cmd)
* "cpu-baseline" command * "cpu-baseline" command
*/ */
static const vshCmdInfo info_cpu_baseline[] = { static const vshCmdInfo info_cpu_baseline[] = {
{"help", gettext_noop("compute baseline CPU")}, {"help", N_("compute baseline CPU")},
{"desc", gettext_noop("Compute baseline CPU for a set of given CPUs.")}, {"desc", N_("Compute baseline CPU for a set of given CPUs.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_cpu_baseline[] = { static const vshCmdOptDef opts_cpu_baseline[] = {
{"file", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("file containing XML CPU descriptions")}, {"file", VSH_OT_DATA, VSH_OFLAG_REQ, N_("file containing XML CPU descriptions")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -7396,13 +7396,13 @@ editReadBackFile (vshControl *ctl, const char *filename) ...@@ -7396,13 +7396,13 @@ editReadBackFile (vshControl *ctl, const char *filename)
* "cd" command * "cd" command
*/ */
static const vshCmdInfo info_cd[] = { static const vshCmdInfo info_cd[] = {
{"help", gettext_noop("change the current directory")}, {"help", N_("change the current directory")},
{"desc", gettext_noop("Change the current directory.")}, {"desc", N_("Change the current directory.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_cd[] = { static const vshCmdOptDef opts_cd[] = {
{"dir", VSH_OT_DATA, 0, gettext_noop("directory to switch to (default: home or else root)")}, {"dir", VSH_OT_DATA, 0, N_("directory to switch to (default: home or else root)")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -7440,8 +7440,8 @@ cmdCd(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -7440,8 +7440,8 @@ cmdCd(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "pwd" command * "pwd" command
*/ */
static const vshCmdInfo info_pwd[] = { static const vshCmdInfo info_pwd[] = {
{"help", gettext_noop("print the current directory")}, {"help", N_("print the current directory")},
{"desc", gettext_noop("Print the current directory.")}, {"desc", N_("Print the current directory.")},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -7478,13 +7478,13 @@ cmdPwd(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED) ...@@ -7478,13 +7478,13 @@ cmdPwd(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "edit" command * "edit" command
*/ */
static const vshCmdInfo info_edit[] = { static const vshCmdInfo info_edit[] = {
{"help", gettext_noop("edit XML configuration for a domain")}, {"help", N_("edit XML configuration for a domain")},
{"desc", gettext_noop("Edit the XML configuration for a domain.")}, {"desc", N_("Edit the XML configuration for a domain.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_edit[] = { static const vshCmdOptDef opts_edit[] = {
{"domain", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("domain name, id or uuid")}, {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, N_("domain name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -7581,13 +7581,13 @@ cmdEdit (vshControl *ctl, const vshCmd *cmd) ...@@ -7581,13 +7581,13 @@ cmdEdit (vshControl *ctl, const vshCmd *cmd)
* "net-edit" command * "net-edit" command
*/ */
static const vshCmdInfo info_network_edit[] = { static const vshCmdInfo info_network_edit[] = {
{"help", gettext_noop("edit XML configuration for a network")}, {"help", N_("edit XML configuration for a network")},
{"desc", gettext_noop("Edit the XML configuration for a network.")}, {"desc", N_("Edit the XML configuration for a network.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_network_edit[] = { static const vshCmdOptDef opts_network_edit[] = {
{"network", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("network name, id or uuid")}, {"network", VSH_OT_DATA, VSH_OFLAG_REQ, N_("network name, id or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -7598,13 +7598,13 @@ static const vshCmdOptDef opts_network_edit[] = { ...@@ -7598,13 +7598,13 @@ static const vshCmdOptDef opts_network_edit[] = {
* "pool-edit" command * "pool-edit" command
*/ */
static const vshCmdInfo info_pool_edit[] = { static const vshCmdInfo info_pool_edit[] = {
{"help", gettext_noop("edit XML configuration for a storage pool")}, {"help", N_("edit XML configuration for a storage pool")},
{"desc", gettext_noop("Edit the XML configuration for a storage pool.")}, {"desc", N_("Edit the XML configuration for a storage pool.")},
{NULL, NULL} {NULL, NULL}
}; };
static const vshCmdOptDef opts_pool_edit[] = { static const vshCmdOptDef opts_pool_edit[] = {
{"pool", VSH_OT_DATA, VSH_OFLAG_REQ, gettext_noop("pool name or uuid")}, {"pool", VSH_OT_DATA, VSH_OFLAG_REQ, N_("pool name or uuid")},
{NULL, 0, 0, NULL} {NULL, 0, 0, NULL}
}; };
...@@ -7615,7 +7615,7 @@ static const vshCmdOptDef opts_pool_edit[] = { ...@@ -7615,7 +7615,7 @@ static const vshCmdOptDef opts_pool_edit[] = {
* "quit" command * "quit" command
*/ */
static const vshCmdInfo info_quit[] = { static const vshCmdInfo info_quit[] = {
{"help", gettext_noop("quit this interactive terminal")}, {"help", N_("quit this interactive terminal")},
{"desc", ""}, {"desc", ""},
{NULL, NULL} {NULL, NULL}
}; };
...@@ -8592,21 +8592,21 @@ vshDomainStateToString(int state) ...@@ -8592,21 +8592,21 @@ vshDomainStateToString(int state)
{ {
switch (state) { switch (state) {
case VIR_DOMAIN_RUNNING: case VIR_DOMAIN_RUNNING:
return gettext_noop("running"); return N_("running");
case VIR_DOMAIN_BLOCKED: case VIR_DOMAIN_BLOCKED:
return gettext_noop("idle"); return N_("idle");
case VIR_DOMAIN_PAUSED: case VIR_DOMAIN_PAUSED:
return gettext_noop("paused"); return N_("paused");
case VIR_DOMAIN_SHUTDOWN: case VIR_DOMAIN_SHUTDOWN:
return gettext_noop("in shutdown"); return N_("in shutdown");
case VIR_DOMAIN_SHUTOFF: case VIR_DOMAIN_SHUTOFF:
return gettext_noop("shut off"); return N_("shut off");
case VIR_DOMAIN_CRASHED: case VIR_DOMAIN_CRASHED:
return gettext_noop("crashed"); return N_("crashed");
default: default:
;/*FALLTHROUGH*/ ;/*FALLTHROUGH*/
} }
return gettext_noop("no state"); /* = dom0 state */ return N_("no state"); /* = dom0 state */
} }
static const char * static const char *
...@@ -8614,15 +8614,15 @@ vshDomainVcpuStateToString(int state) ...@@ -8614,15 +8614,15 @@ vshDomainVcpuStateToString(int state)
{ {
switch (state) { switch (state) {
case VIR_VCPU_OFFLINE: case VIR_VCPU_OFFLINE:
return gettext_noop("offline"); return N_("offline");
case VIR_VCPU_BLOCKED: case VIR_VCPU_BLOCKED:
return gettext_noop("idle"); return N_("idle");
case VIR_VCPU_RUNNING: case VIR_VCPU_RUNNING:
return gettext_noop("running"); return N_("running");
default: default:
;/*FALLTHROUGH*/ ;/*FALLTHROUGH*/
} }
return gettext_noop("no state"); return N_("no state");
} }
static int static int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册