Commit ef55aedc authored by Rei's avatar Rei Committed by Thorbjørn Lindeijer
Browse files

Fix can not find translate qm file like qtcreator_zh_CN.qm

Merge-request: 137
Reviewed-by: default avatarThorbjørn Lindeijer <>
parent d205ccc8
......@@ -107,7 +107,7 @@ void GeneralSettings::fillLanguageBox() const
Q_FOREACH(const QString &languageFile, languageFiles)
int start = languageFile.lastIndexOf(QLatin1Char('_'))+1;
int start = languageFile.indexOf(QLatin1Char('_'))+1;
int end = languageFile.lastIndexOf(QLatin1Char('.'));
const QString locale = languageFile.mid(start, end-start);
// no need to show a language that creator will not load anyway
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment