[virt-manager PATCH 3/3] i18n: translate UI string

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

 



A visible UI string must be translatable.

Signed-off-by: Pino Toscano <ptoscano@xxxxxxxxxx>
---
 virtManager/details/snapshots.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/virtManager/details/snapshots.py b/virtManager/details/snapshots.py
index 35435d1d..59a2bf01 100644
--- a/virtManager/details/snapshots.py
+++ b/virtManager/details/snapshots.py
@@ -520,7 +520,8 @@ class vmmSnapshotPage(vmmGObjectUI):
 
         title = ""
         if name:
-            title = "<b>Snapshot '%s':</b>" % xmlutil.xml_escape(name)
+            title = (_("<b>Snapshot '%(name)s':</b>") %
+                     {"name": xmlutil.xml_escape(name)})
 
         uiutil.set_grid_row_visible(
             self.widget("snapshot-is-current"), is_current)
-- 
2.26.2




[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