mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-03 12:55:45 +00:00
Mark a string for translation.
* src/virsh.c: Add a "%s" and wrap with _(...).
This commit is contained in:
parent
70400346d2
commit
e99570fc77
@ -1,5 +1,8 @@
|
|||||||
Mon Feb 2 15:56:45 CET 2008 Jim Meyering <meyering@redhat.com>
|
Mon Feb 2 15:56:45 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
|
Mark a string for translation.
|
||||||
|
* src/virsh.c: Add a "%s" and wrap with _(...).
|
||||||
|
|
||||||
Enable the sc_unmarked_diagnostics test and correct all violations
|
Enable the sc_unmarked_diagnostics test and correct all violations
|
||||||
involving the "error" function.
|
involving the "error" function.
|
||||||
* Makefile.cfg (local-checks-to-skip): Remove from skip list.
|
* Makefile.cfg (local-checks-to-skip): Remove from skip list.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* virsh.c: a Xen shell used to exercise the libvirt API
|
* virsh.c: a Xen shell used to exercise the libvirt API
|
||||||
*
|
*
|
||||||
* Copyright (C) 2005, 2007 Red Hat, Inc.
|
* Copyright (C) 2005, 2007-2008 Red Hat, Inc.
|
||||||
*
|
*
|
||||||
* See COPYING.LIB for the License of this software
|
* See COPYING.LIB for the License of this software
|
||||||
*
|
*
|
||||||
@ -4770,7 +4770,7 @@ vshReadline (vshControl *ctl, const char *prompt)
|
|||||||
#endif /* !USE_READLINE */
|
#endif /* !USE_READLINE */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Deinitliaze virsh
|
* Deinitialize virsh
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
vshDeinit(vshControl * ctl)
|
vshDeinit(vshControl * ctl)
|
||||||
@ -4780,8 +4780,8 @@ vshDeinit(vshControl * ctl)
|
|||||||
if (ctl->conn) {
|
if (ctl->conn) {
|
||||||
if (virConnectClose(ctl->conn) != 0) {
|
if (virConnectClose(ctl->conn) != 0) {
|
||||||
ctl->conn = NULL; /* prevent recursive call from vshError() */
|
ctl->conn = NULL; /* prevent recursive call from vshError() */
|
||||||
vshError(ctl, TRUE,
|
vshError(ctl, TRUE, "%s",
|
||||||
"failed to disconnect from the hypervisor");
|
_("failed to disconnect from the hypervisor"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
virResetLastError();
|
virResetLastError();
|
||||||
|
Loading…
Reference in New Issue
Block a user