eric6/Preferences/ConfigurationPages/InterfacePage.py

changeset 7263
c1af2e327675
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r c4b5f3393d63 -r c1af2e327675 eric6/Preferences/ConfigurationPages/InterfacePage.py
--- a/eric6/Preferences/ConfigurationPages/InterfacePage.py	Tue Sep 24 18:45:33 2019 +0200
+++ b/eric6/Preferences/ConfigurationPages/InterfacePage.py	Tue Sep 24 18:46:24 2019 +0200
@@ -140,8 +140,7 @@
         # save the language settings
         uiLanguageIndex = self.languageComboBox.currentIndex()
         if uiLanguageIndex:
-            uiLanguage = \
-                self.languageComboBox.itemData(uiLanguageIndex)
+            uiLanguage = self.languageComboBox.itemData(uiLanguageIndex)
         else:
             uiLanguage = None
         Preferences.setUILanguage(uiLanguage)
@@ -217,20 +216,24 @@
         """
         self.languageComboBox.clear()
         
-        fnlist = glob.glob("eric6_*.qm") + \
+        fnlist = (
+            glob.glob("eric6_*.qm") +
             glob.glob(os.path.join(
-                getConfig('ericTranslationsDir'), "eric6_*.qm")) + \
+                getConfig('ericTranslationsDir'), "eric6_*.qm")) +
             glob.glob(os.path.join(Utilities.getConfigDir(), "eric6_*.qm"))
+        )
         locales = {}
         for fn in fnlist:
             locale = os.path.basename(fn)[6:-3]
             if locale not in locales:
                 translator = QTranslator()
                 translator.load(fn)
-                locales[locale] = translator.translate(
-                    "InterfacePage", "English",
-                    "Translate this with your language") + \
+                locales[locale] = (
+                    translator.translate(
+                        "InterfacePage", "English",
+                        "Translate this with your language") +
                     " ({0})".format(locale)
+                )
         localeList = sorted(list(locales.keys()))
         try:
             uiLanguage = Preferences.getUILanguage()

eric ide

mercurial