From c4b933d1bde8fe4d1ae6760399671f143f89db2a 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 --HG-- branch : develop --- 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;