From b0ccf6ddd047d9856743ea0746adb873d4602530 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 6 Dec 2015 16:55:37 +0100 Subject: [PATCH] Changed: Load interface translations at launch --- code/ryzom/tools/client/client_config_qt/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/ryzom/tools/client/client_config_qt/main.cpp b/code/ryzom/tools/client/client_config_qt/main.cpp index bc04d797a..2ee5e11bc 100644 --- a/code/ryzom/tools/client/client_config_qt/main.cpp +++ b/code/ryzom/tools/client/client_config_qt/main.cpp @@ -31,6 +31,14 @@ int main( sint32 argc, char **argv ) splash.show(); + QString locale = QLocale::system().name().left(2); + + QTranslator localTranslator; + if (localTranslator.load(QString(":/translations/ryzom_configuration_%1.qm").arg(locale))) + { + app.installTranslator(&localTranslator); + } + CSystem::GetInstance().config.load( "client.cfg" ); CClientConfigDialog d;