summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/configure.cpp2
-rw-r--r--rbutil/rbutilqt/main.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 6bb947b64a..246b9a0fda 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -630,7 +630,7 @@ void Config::updateLanguage()
RbUtilQt::translators.append(translator);
RbUtilQt::translators.append(qttrans);
- QLocale::setDefault(language);
+ QLocale::setDefault(QLocale(language));
}
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index 93fb0f4b31..203bdd1e20 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -80,7 +80,7 @@ int main( int argc, char ** argv ) {
QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
qttrans.load("qt_" + applang, ":/lang");
- QLocale::setDefault(applang);
+ QLocale::setDefault(QLocale(applang));
}
delete user;
app.installTranslator(&translator);