mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-26 16:56:19 +00:00
Changed: Load interface translations at launch
This commit is contained in:
parent
c440e9586a
commit
a6e046b260
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue