[virt-tools-list] [virt-manager PATCH 1/2] translation: mark some strings to be translated
Pavel Hrdina
phrdina at redhat.com
Tue Jul 26 07:50:46 UTC 2016
Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
virtManager/create.py | 4 ++--
virtManager/storagelist.py | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/virtManager/create.py b/virtManager/create.py
index 737c1fa..7d53110 100644
--- a/virtManager/create.py
+++ b/virtManager/create.py
@@ -76,11 +76,11 @@ def _pretty_arch(_a):
def _pretty_storage(size):
- return "%.1f GiB" % float(size)
+ return _("%.1f GiB") % float(size)
def _pretty_memory(mem):
- return "%d MiB" % (mem / 1024.0)
+ return _("%d MiB") % (mem / 1024.0)
###########################################################
diff --git a/virtManager/storagelist.py b/virtManager/storagelist.py
index 6397158..c6f78aa 100644
--- a/virtManager/storagelist.py
+++ b/virtManager/storagelist.py
@@ -336,7 +336,7 @@ class vmmStorageList(vmmGObjectUI):
self.widget("pool-name-entry").set_text(pool.get_name())
self.widget("pool-name-entry").set_editable(not active)
self.widget("pool-sizes").set_markup(
- """%s Free / <i>%s In Use</i>""" %
+ _("%s Free / <i>%s In Use</i>") %
(pool.get_pretty_available(), pool.get_pretty_allocation()))
self.widget("pool-location").set_text(
pool.get_target_path())
--
2.9.2
More information about the virt-tools-list
mailing list