Preferences/ConfigurationPages/InterfacePage.py

changeset 3670
f0cb7579c0b4
parent 3656
441956d8fce5
child 4021
195a471c327b
equal deleted inserted replaced
3669:ac84ac3c0f05 3670:f0cb7579c0b4
23 23
24 import Preferences 24 import Preferences
25 import Utilities 25 import Utilities
26 import UI.PixmapCache 26 import UI.PixmapCache
27 27
28 from eric5config import getConfig 28 from eric6config import getConfig
29 29
30 30
31 class InterfacePage(ConfigurationPageBase, Ui_InterfacePage): 31 class InterfacePage(ConfigurationPageBase, Ui_InterfacePage):
32 """ 32 """
33 Class implementing the Interface configuration page. 33 Class implementing the Interface configuration page.
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()

eric ide

mercurial