223 Private method to initialize the language combobox of the Interface |
223 Private method to initialize the language combobox of the Interface |
224 configuration page. |
224 configuration page. |
225 """ |
225 """ |
226 self.languageComboBox.clear() |
226 self.languageComboBox.clear() |
227 |
227 |
228 fnlist = glob.glob("eric5_*.qm") + \ |
228 fnlist = glob.glob("eric6_*.qm") + \ |
229 glob.glob(os.path.join( |
229 glob.glob(os.path.join( |
230 getConfig('ericTranslationsDir'), "eric5_*.qm")) + \ |
230 getConfig('ericTranslationsDir'), "eric6_*.qm")) + \ |
231 glob.glob(os.path.join(Utilities.getConfigDir(), "eric5_*.qm")) |
231 glob.glob(os.path.join(Utilities.getConfigDir(), "eric6_*.qm")) |
232 locales = {} |
232 locales = {} |
233 for fn in fnlist: |
233 for fn in fnlist: |
234 locale = os.path.basename(fn)[6:-3] |
234 locale = os.path.basename(fn)[6:-3] |
235 if locale not in locales: |
235 if locale not in locales: |
236 translator = QTranslator() |
236 translator = QTranslator() |