Toolbox/Startup.py

changeset 6891
93f82da09f22
parent 6775
a84449ccb414
equal deleted inserted replaced
6890:26c1042f2eec 6891:93f82da09f22
171 QTextCodec.setCodecForTr(QTextCodec.codecForName("utf-8")) 171 QTextCodec.setCodecForTr(QTextCodec.codecForName("utf-8"))
172 172
173 translations = ("qt", "eric6") + translationFiles 173 translations = ("qt", "eric6") + translationFiles
174 loc = Preferences.getUILanguage() 174 loc = Preferences.getUILanguage()
175 if loc is None: 175 if loc is None:
176 return 176 return ""
177 177
178 if loc == "System": 178 if loc == "System":
179 loc = QLocale.system().name() 179 loc = QLocale.system().name()
180 if loc != "C": 180 if loc != "C":
181 dirs = [getConfig('ericTranslationsDir'), Globals.getConfigDir()] 181 dirs = [getConfig('ericTranslationsDir'), Globals.getConfigDir()]

eric ide

mercurial