diff options
author | kali <kali@leap.se> | 2013-01-09 04:20:15 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2013-01-09 04:20:15 +0900 |
commit | 93d5a8cd1ec55c725d5931d86989ea11ac2db844 (patch) | |
tree | 892e0e3b22c932de8fdf84efd1ce6fce822476cf /src/leap/gui | |
parent | dc1466ea1384ea6263f3711b10f38365e0d727bc (diff) |
fix provider label translation
Diffstat (limited to 'src/leap/gui')
-rw-r--r-- | src/leap/gui/firstrun/providerinfo.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/leap/gui/firstrun/providerinfo.py b/src/leap/gui/firstrun/providerinfo.py index 248267ff..357378df 100644 --- a/src/leap/gui/firstrun/providerinfo.py +++ b/src/leap/gui/firstrun/providerinfo.py @@ -6,6 +6,7 @@ import logging from PyQt4 import QtGui from leap.gui.constants import APP_LOGO +from leap.util.translations import translate logger = logging.getLogger(__name__) @@ -81,7 +82,10 @@ class ProviderInfoPage(QtGui.QWizardPage): "<b>%s</b> https://%s" % (display_name, domain_name)) desc = pconfig.get('description') - description_text = desc[lang] if desc else '' + + #description_text = desc[lang] if desc else '' + description_text = translate(desc) if desc else '' + self.description.setText( "<i>%s</i>" % description_text) |