[virt-manager PATCH 1/2] translation: mark some strings to be translated

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 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

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux