Commit 12496b05 authored by Tijmen de Mes's avatar Tijmen de Mes

Added/changes some translatable strings

parent af5d30ab
...@@ -39,7 +39,7 @@ class LanguageError(Exception): pass ...@@ -39,7 +39,7 @@ class LanguageError(Exception): pass
class Language(object): class Language(object):
filename_regex = re.compile(r'(\w+)_(\w+).*\.(\w+$)') filename_regex = re.compile(r'(\w+)_(\w+).*\.(\w+$)')
mapping = {"default": "System default", mapping = {"default": "Automatic (Default)",
"en": "English", "en": "English",
"nl": "Nederlands", "nl": "Nederlands",
"ro": "Română"} "ro": "Română"}
...@@ -473,7 +473,7 @@ class PreferencesWindow(base_class, ui_class, metaclass=QSingleton): ...@@ -473,7 +473,7 @@ class PreferencesWindow(base_class, ui_class, metaclass=QSingleton):
# Languages # Languages
self.language_button.clear() self.language_button.clear()
languages_path = Resources.get('i18n') languages_path = Resources.get('i18n')
self.language_button.addItem(translate('preferences_window', 'System Default'), Language('default')) self.language_button.addItem(translate('preferences_window', 'Automatic (Default)'), Language('default'))
self.language_button.addItem('English', Language('en')) self.language_button.addItem('English', Language('en'))
for language_file in os.listdir(languages_path): for language_file in os.listdir(languages_path):
try: try:
......
...@@ -44,10 +44,10 @@ class ZRTPWidget(base_class, ui_class): ...@@ -44,10 +44,10 @@ class ZRTPWidget(base_class, ui_class):
def _set_peer_verified(self, verified): def _set_peer_verified(self, verified):
self.__dict__['peer_verified'] = verified self.__dict__['peer_verified'] = verified
if verified: if verified:
self.validate_button.setText('Invalidate') self.validate_button.setText(translate('zrtp_widget', 'Invalidate'))
self.status_value.setText(translate('zrtp_widget', '<span style="color: hsv(100, 85%, 100%);">Verified</span>')) self.status_value.setText(translate('zrtp_widget', '<span style="color: hsv(100, 85%, 100%);">Verified</span>'))
else: else:
self.validate_button.setText('Validate') self.validate_button.setText(translate('zrtp_widget', 'Validate'))
self.status_value.setText(translate('zrtp_widget', '<span style="color: hsv(20, 85%, 100%);">Not verified</span>')) self.status_value.setText(translate('zrtp_widget', '<span style="color: hsv(20, 85%, 100%);">Not verified</span>'))
self.validate_button.setChecked(verified) self.validate_button.setChecked(verified)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment