19 from .Ui_InterfacePage import Ui_InterfacePage |
19 from .Ui_InterfacePage import Ui_InterfacePage |
20 |
20 |
21 import Preferences |
21 import Preferences |
22 import Utilities |
22 import Utilities |
23 |
23 |
24 from eric4config import getConfig |
24 from eric5config import getConfig |
25 |
25 |
26 class InterfacePage(ConfigurationPageBase, Ui_InterfacePage): |
26 class InterfacePage(ConfigurationPageBase, Ui_InterfacePage): |
27 """ |
27 """ |
28 Class implementing the Interface configuration page. |
28 Class implementing the Interface configuration page. |
29 """ |
29 """ |
204 Private method to initialize the language combobox of the Interface |
204 Private method to initialize the language combobox of the Interface |
205 configuration page. |
205 configuration page. |
206 """ |
206 """ |
207 self.languageComboBox.clear() |
207 self.languageComboBox.clear() |
208 |
208 |
209 fnlist = glob.glob("eric4_*.qm") + \ |
209 fnlist = glob.glob("eric5_*.qm") + \ |
210 glob.glob(os.path.join(getConfig('ericTranslationsDir'), "eric4_*.qm")) + \ |
210 glob.glob(os.path.join(getConfig('ericTranslationsDir'), "eric5_*.qm")) + \ |
211 glob.glob(os.path.join(Utilities.getConfigDir(), "eric4_*.qm")) |
211 glob.glob(os.path.join(Utilities.getConfigDir(), "eric5_*.qm")) |
212 locales = {} |
212 locales = {} |
213 for fn in fnlist: |
213 for fn in fnlist: |
214 locale = os.path.basename(fn)[6:-3] |
214 locale = os.path.basename(fn)[6:-3] |
215 if locale not in locales: |
215 if locale not in locales: |
216 translator = QTranslator() |
216 translator = QTranslator() |