Really use translated word for 'Disabled', about emoticones

Updated version to 0.10.1.2 for optparser because all non-english users have 'Disabled' instead of '' for
their emot
This commit is contained in:
Jean-Marie Traissard 2006-06-10 18:18:46 +00:00
parent 4e1e46a8ac
commit cfceab7d44
3 changed files with 10 additions and 2 deletions

View File

@ -134,7 +134,7 @@ class Config:
'send_on_ctrl_enter': [opt_bool, False, _('Send message on Ctrl+Enter and with Enter make new line (Mirabilis ICQ Client default behaviour).')],
'show_roster_on_startup': [opt_bool, True],
'key_up_lines': [opt_int, 25, _('How many lines to store for Ctrl+KeyUP.')],
'version': [ opt_str, '0.10.0.1' ], # which version created the config
'version': [ opt_str, '0.10.1.2' ], # which version created the config
'search_engine': [opt_str, 'http://www.google.com/search?&q=%s&sourceid=gajim'],
'dictionary_url': [opt_str, 'WIKTIONARY', _("Either custom url with %s in it where %s is the word/phrase or 'WIKTIONARY' which means use wiktionary.")],
'always_english_wikipedia': [opt_bool, False],

View File

@ -144,6 +144,9 @@ class OptionsParser:
self.update_config_09_to_010()
if old < [0, 10, 1, 1] and new >= [0, 10, 1, 1]:
self.update_config_to_01011()
if old < [0, 10, 1, 2] and new >= [0, 10, 1, 2]:
self.update_config_to_01012()
gajim.config.set('version', new_version)
def update_config_x_to_09(self):
@ -263,3 +266,8 @@ class OptionsParser:
if self.old_values['print_status_in_muc'] in (True, False):
gajim.config.set('print_status_in_muc', 'in_and_out')
gajim.config.set('version', '0.10.1.1')
def update_config_to_01012(self):
if self.old_values['emoticons_theme'] == 'Disabled':
gajim.config.set('emoticons_theme', '')
gajim.config.set('version', '0.10.1.2')

View File

@ -124,7 +124,7 @@ class PreferencesWindow:
for dir in emoticons_list:
if dir != '.svn':
l.append(dir)
l.append('Disabled')
l.append(_('Disabled'))
for i in xrange(len(l)):
model.append([l[i]])
if gajim.config.get('emoticons_theme') == l[i]: