[Kimchi-devel] [PATCH v4 6/6] CDROM Management: externalized error messages

Aline Manera alinefm at linux.vnet.ibm.com
Fri Feb 14 00:25:49 UTC 2014


Join this patch when you use it at first time



On 02/13/2014 04:47 PM, Daniel Barboza wrote:
> From: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
>
> Externalized exception/error strings related to the CDROM
> Management backend.
>
> Signed-off-by: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
> ---
>   src/kimchi/i18n.py | 11 +++++++++++
>   1 file changed, 11 insertions(+)
>
> diff --git a/src/kimchi/i18n.py b/src/kimchi/i18n.py
> index 03d1052..6264e97 100644
> --- a/src/kimchi/i18n.py
> +++ b/src/kimchi/i18n.py
> @@ -181,4 +181,15 @@ messages = {
>       "KCHUTILS0001E": _("Invalid URI %(uri)s"),
>       "KCHUTILS0002E": _("Timeout while running command '%(cmd)s' after %(seconds)s seconds"),
>       "KCHUTILS0003E": _("Unable to choose a virutal machine name"),
> +    "KCHCDROM0001E": _("Invalid cd-rom device name"),
> +    "KCHCDROM0002E": _("Invalid storage type. Types supported: 'cdrom'"),
> +    "KCHCDROM0003E": _("CDROM path must be a valid filesystem, http or ftp path"),
> +    "KCHCDROM0004E": _("Device name %(dev_name)s already exists in vm %(vm_name)s"),
> +    "KCHCDROM0005E": _("Path specified for the device is not valid"),
> +    "KCHCDROM0006E": _("Can't specify a directory for a cd-rom device path"),
> +    "KCHCDROM0007E": _("The storage device %(dev_name)s does not exist in the guest %(vm_name)s"),
> +    "KCHCDROM0008E": _("Must specify a device name"),
> +    "KCHCDROM0009E": _("Error while updating storage device: %(error)s"),
> +    "KCHCDROM0010E": _("Error while removing storage device: %(error)s"),
> +    "KCHCDROM0011E": _("Error while creating new storage device: %(error)s"),
>   }




More information about the Kimchi-devel mailing list