Modifyed __init__.py in order to enum Chinese

This commit is contained in:
Xiaokang Wang 2014-01-07 19:02:41 +08:00
parent 952ce2cb3c
commit 2a80c85634

View File

@ -3320,7 +3320,7 @@ class settingsDialog(QtGui.QDialog):
shared.safeConfigGetBoolean('bitmessagesettings', 'useidenticons')) shared.safeConfigGetBoolean('bitmessagesettings', 'useidenticons'))
global languages global languages
languages = ['system','en','eo','fr','de','es','ru','no','en_pirate','other'] languages = ['system','en','eo','fr','de','es','ru','no','en_pirate','zh_cn','other']
user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale')) user_countrycode = str(shared.config.get('bitmessagesettings', 'userlocale'))
if user_countrycode in languages: if user_countrycode in languages:
curr_index = languages.index(user_countrycode) curr_index = languages.index(user_countrycode)