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()] |