mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-12 05:54:53 -05:00
i18n: fix string puzzles in error messages
Do not split the error messages and the error details, but rather use a single string with proper placeholders. This avoids string puzzles. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
committed by
Cole Robinson
parent
ed836c7138
commit
71f034d6b6
@@ -736,7 +736,7 @@ class vmmConsolePages(vmmGObjectUI):
|
||||
except Exception as e:
|
||||
log.exception("Error connection to graphical console")
|
||||
self._activate_unavailable_page(
|
||||
_("Error connecting to graphical console") + ":\n%s" % e)
|
||||
_("Error connecting to graphical console:\n%s") % e)
|
||||
|
||||
def _set_credentials(self, src_ignore=None):
|
||||
passwd = self.widget("console-auth-password")
|
||||
|
||||
@@ -461,8 +461,10 @@ class VNCViewer(Viewer):
|
||||
self._sockfd = sock
|
||||
except Exception as e:
|
||||
raise RuntimeError(
|
||||
(_("Error opening socket path '%s'") % self._ginfo.gsocket) +
|
||||
(": %s" % e))
|
||||
_("Error opening socket path '%(path)s': %(error)s") % {
|
||||
"path": self._ginfo.gsocket,
|
||||
"error": e,
|
||||
})
|
||||
|
||||
fd = self._sockfd.fileno()
|
||||
if fd < 0:
|
||||
|
||||
Reference in New Issue
Block a user