eric7/Preferences/ConfigurationPages/InterfacePage.py

branch
eric7
changeset 8314
e3642a6a1e71
parent 8312
800c432b34c8
child 8318
962bce857696
equal deleted inserted replaced
8313:dac33c7fce07 8314:e3642a6a1e71
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 eric6config import getConfig 24 from eric7config import getConfig
25 25
26 26
27 class InterfacePage(ConfigurationPageBase, Ui_InterfacePage): 27 class InterfacePage(ConfigurationPageBase, Ui_InterfacePage):
28 """ 28 """
29 Class implementing the Interface configuration page. 29 Class implementing the Interface configuration page.
215 Private method to initialize the language combo box. 215 Private method to initialize the language combo box.
216 """ 216 """
217 self.languageComboBox.clear() 217 self.languageComboBox.clear()
218 218
219 fnlist = ( 219 fnlist = (
220 glob.glob("eric6_*.qm") + 220 glob.glob("eric7_*.qm") +
221 glob.glob(os.path.join( 221 glob.glob(os.path.join(
222 getConfig('ericTranslationsDir'), "eric6_*.qm")) + 222 getConfig('ericTranslationsDir'), "eric7_*.qm")) +
223 glob.glob(os.path.join(Utilities.getConfigDir(), "eric6_*.qm")) 223 glob.glob(os.path.join(Utilities.getConfigDir(), "eric7_*.qm"))
224 ) 224 )
225 locales = {} 225 locales = {}
226 for fn in fnlist: 226 for fn in fnlist:
227 locale = os.path.basename(fn)[6:-3] 227 locale = os.path.basename(fn)[6:-3]
228 if locale not in locales: 228 if locale not in locales:

eric ide

mercurial