Commit b0622f7ad2568edcd244fcb9a6382dec198df552
1 parent
18fadbf1
Exists in
master
and in
68 other branches
FIX: Inverted flags in language selection
Showing
2 changed files
with
7 additions
and
7 deletions
Show diff stats
invesalius/gui/language_dialog.py
... | ... | @@ -96,17 +96,17 @@ class LanguageDialog(wx.Dialog): |
96 | 96 | bmp_english_flag = wx.Bitmap(os.path.join(const.ICON_DIR, "en_GB.bmp"), wx.BITMAP_TYPE_BMP) |
97 | 97 | bmp_spanish_flag = wx.Bitmap(os.path.join(const.ICON_DIR, "es.bmp"), wx.BITMAP_TYPE_BMP) |
98 | 98 | |
99 | - bitmapCmb.Append(self.locales[0], bmp_brazilian_flag,"pt_BR") | |
100 | - bitmapCmb.Append(self.locales[1], bmp_english_flag,"en_GB") | |
99 | + bitmapCmb.Append(self.locales[0], bmp_english_flag,"en_GB") | |
100 | + bitmapCmb.Append(self.locales[1], bmp_brazilian_flag,"pt_BR") | |
101 | 101 | bitmapCmb.Append(self.locales[2], bmp_spanish_flag,"es") |
102 | 102 | |
103 | - | |
103 | + | |
104 | 104 | if (self.os_locale[0:2] == 'pt'): |
105 | - bitmapCmb.SetSelection(0) | |
105 | + bitmapCmb.SetSelection(1) | |
106 | 106 | elif (self.os_locale[0:2] == 'es'): |
107 | 107 | bitmapCmb.SetSelection(2) |
108 | 108 | else: |
109 | - bitmapCmb.SetSelection(1) | |
109 | + bitmapCmb.SetSelection(0) | |
110 | 110 | |
111 | 111 | def GetSelectedLanguage(self): |
112 | 112 | """Return String with Selected Language""" | ... | ... |
invesalius/i18n.py
... | ... | @@ -30,8 +30,8 @@ import constants as const |
30 | 30 | |
31 | 31 | def GetLocales(): |
32 | 32 | """Return a dictionary which defines supported languages""" |
33 | - locale_descriptions = {'es': u'Español', | |
34 | - 'en': u'English', | |
33 | + locale_descriptions = {'en': u'English', | |
34 | + 'es': u'Español', | |
35 | 35 | 'pt_BR': u'Português (Brasil)'} |
36 | 36 | return locale_descriptions |
37 | 37 | ... | ... |