summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2015-09-23 17:31:26 -0400
committerCole Robinson <crobinso@redhat.com>2015-09-23 17:31:26 -0400
commit8b9b05f563c14bd0251373ed8f8c9acd693e55a3 (patch)
tree7ca925d3ee294d35640f2e2a983ae4e52fe0b756
parent7c10d8a27f0f635c185d1b85d6d26120d51c8aa2 (diff)
downloadvirt-manager-8b9b05f563c14bd0251373ed8f8c9acd693e55a3.tar.gz
details: Fix busted UI after translation changes
-rw-r--r--virtManager/details.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/virtManager/details.py b/virtManager/details.py
index ae3c9306..2d411054 100644
--- a/virtManager/details.py
+++ b/virtManager/details.py
@@ -2428,8 +2428,8 @@ class vmmDetails(vmmGObjectUI):
def refresh_stats_page(self):
def _multi_color(text1, text2):
- return ('<span color="#82003B"></span> '
- '<span color="#295C45"></span>' % (text1, text2))
+ return ('<span color="#82003B">%s</span> '
+ '<span color="#295C45">%s</span>' % (text1, text2))
def _dsk_rx_tx_text(rx, tx, unit):
opts = {"received": rx, "transfered": tx, "units": unit}
return _multi_color(_("%(received)d %(units)s read") % opts,
@@ -2450,7 +2450,7 @@ class vmmDetails(vmmGObjectUI):
if self.config.get_stats_enable_memory_poll():
cur_vm_memory = self.vm.stats_memory()
vm_memory = self.vm.maximum_memory()
- mem_txt = _("%(current-memory) of %(total-memory)") % {
+ mem_txt = _("%(current-memory)s of %(total-memory)s") % {
"current-memory": util.pretty_mem(cur_vm_memory),
"total-memory": util.pretty_mem(vm_memory)
}