forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/2.6'
Conflicts: share/share.qbs src/plugins/cpptools/cppchecksymbols.cpp src/plugins/texteditor/behaviorsettingswidget.cpp Change-Id: Ia34060984f9c036b2f28a6411d796d41f55a3e37
This commit is contained in:
@@ -359,7 +359,11 @@ int main(int argc, char **argv)
|
||||
const QString &creatorTrPath = QCoreApplication::applicationDirPath()
|
||||
+ QLatin1String(SHARE_PATH "/translations");
|
||||
foreach (QString locale, uiLanguages) {
|
||||
#if (QT_VERSION >= 0x050000)
|
||||
locale = QLocale(locale).name();
|
||||
#else
|
||||
locale.replace(QLatin1Char('-'), QLatin1Char('_')); // work around QTBUG-25973
|
||||
#endif
|
||||
if (translator.load(QLatin1String("qtcreator_") + locale, creatorTrPath)) {
|
||||
const QString &qtTrPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
|
||||
const QString &qtTrFile = QLatin1String("qt_") + locale;
|
||||
|
||||
Reference in New Issue
Block a user