summaryrefslogtreecommitdiffstats
path: root/vnc.py
diff options
context:
space:
mode:
Diffstat (limited to 'vnc.py')
-rw-r--r--vnc.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/vnc.py b/vnc.py
index db119d096..0a6a04933 100644
--- a/vnc.py
+++ b/vnc.py
@@ -134,9 +134,15 @@ class VncServer:
# figure out product info
if self.name is not None:
- self.desktop = _("%s %s installation on host %s") % (product.productName, product.productVersion, self.name)
+ self.desktop = _("%(productName)s %(productVersion)s installation "
+ "on host %(name)s") \
+ % {'productName': product.productName,
+ 'productVersion': product.productVersion,
+ 'name': self.name}
else:
- self.desktop = _("%s %s installation") % (product.productName, product.productVersion)
+ self.desktop = _("%(productName)s %(productVersion)s installation")\
+ % {'productName': product.productName,
+ 'productVersion': product.productVersion}
def setVNCParam(self, param, value):
"""Set a parameter in the Xvnc server.