diff options
author | Pavel Hrdina <phrdina@redhat.com> | 2015-06-02 14:21:58 +0200 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2015-06-05 16:33:51 -0400 |
commit | 0fbe8e7a1f328ea924495f19b4496c9ab26b8fd9 (patch) | |
tree | ed1eb3fdeed66fd3b5a55dbd03ebd0f01eac6e00 /virtinst/storage.py | |
parent | 03c24ca5cb2db544115f9a0e018830e6a98336ea (diff) | |
download | virt-manager-0fbe8e7a1f328ea924495f19b4496c9ab26b8fd9.tar.gz |
translation: fix wrong usage of _() function
All the strings have to be at first translated and then we can fill the
formated and translated string.
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Diffstat (limited to 'virtinst/storage.py')
-rw-r--r-- | virtinst/storage.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/virtinst/storage.py b/virtinst/storage.py index 3102bf63..9e90db81 100644 --- a/virtinst/storage.py +++ b/virtinst/storage.py @@ -502,26 +502,26 @@ class StoragePool(_StorageObject): try: pool = self.conn.storagePoolDefineXML(xml, 0) except Exception, e: - raise RuntimeError(_("Could not define storage pool: %s" % str(e))) + raise RuntimeError(_("Could not define storage pool: %s") % str(e)) errmsg = None if build: try: pool.build(libvirt.VIR_STORAGE_POOL_BUILD_NEW) except Exception, e: - errmsg = _("Could not build storage pool: %s" % str(e)) + errmsg = _("Could not build storage pool: %s") % str(e) if create and not errmsg: try: pool.create(0) except Exception, e: - errmsg = _("Could not start storage pool: %s" % str(e)) + errmsg = _("Could not start storage pool: %s") % str(e) if autostart and not errmsg: try: pool.setAutostart(True) except Exception, e: - errmsg = _("Could not set pool autostart flag: %s" % str(e)) + errmsg = _("Could not set pool autostart flag: %s") % str(e) if errmsg: # Try and clean up the leftover pool @@ -590,7 +590,7 @@ class StorageVolume(_StorageObject): return self._pool def _set_pool(self, newpool): if newpool.info()[0] != libvirt.VIR_STORAGE_POOL_RUNNING: - raise ValueError(_("pool '%s' must be active." % newpool.name())) + raise ValueError(_("pool '%s' must be active.") % newpool.name()) self._pool = newpool self._pool_xml = StoragePool(self.conn, parsexml=self._pool.XMLDesc(0)) |