[virt-manager PATCH 8/9] i18n: use a single string for error message
Cole Robinson
crobinso at redhat.com
Thu Sep 17 19:41:12 UTC 2020
On 9/17/20 2:44 AM, Pino Toscano wrote:
> Signed-off-by: Pino Toscano <ptoscano at redhat.com>
> ---
> virtManager/virtmanager.py | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/virtManager/virtmanager.py b/virtManager/virtmanager.py
> index ee7d4d89..2c8ccbb8 100755
> --- a/virtManager/virtmanager.py
> +++ b/virtManager/virtmanager.py
> @@ -41,8 +41,9 @@ def _show_startup_error(msg, details):
> exc_info=True)
> from .error import vmmErrorDialog
> err = vmmErrorDialog.get_instance()
> - title = _("Error starting Virtual Machine Manager")
> - err.show_err(title + ": " + msg,
> + errmsg = (_("Error starting Virtual Machine Manager: %(error)s") %
> + {"error": msg})
> + err.show_err(errmsg,
> details=details,
> title=title,
> modal=True,
>
title is undefined after this, so I left in the previous 'title =' line
as well
- Cole
More information about the virt-tools-list
mailing list