Changed: Load interface translations at launch

--HG--
branch : develop
This commit is contained in:
kervala 2015-12-06 16:55:37 +01:00
parent 5707757198
commit c4b933d1bd

View file

@ -31,6 +31,14 @@ int main( sint32 argc, char **argv )
splash.show(); 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" ); CSystem::GetInstance().config.load( "client.cfg" );
CClientConfigDialog d; CClientConfigDialog d;