diff --git a/src/main.cpp b/src/main.cpp index cc0f3fbb94..e920c8dd3b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -932,13 +932,6 @@ int main ( int argc, char** argv ) CClientSettings Settings ( &Client, strIniFileName ); Settings.Load ( CommandLineOptions ); - // load translation - if ( bUseGUI && bUseTranslation ) - { - CLocale::LoadTranslation ( Settings.strLanguage, pApp ); - CInstPictures::UpdateTableOnLanguageChange(); - } - # ifndef NO_JSON_RPC if ( pRpcServer ) { @@ -949,6 +942,13 @@ int main ( int argc, char** argv ) # ifndef HEADLESS if ( bUseGUI ) { + // load translation + if ( bUseTranslation ) + { + CLocale::LoadTranslation ( Settings.strLanguage, pApp ); + CInstPictures::UpdateTableOnLanguageChange(); + } + // GUI object CClientDlg ClientDlg ( &Client, &Settings, @@ -1014,7 +1014,7 @@ int main ( int argc, char** argv ) Settings.Load ( CommandLineOptions ); // load translation - if ( bUseGUI && bUseTranslation ) + if ( bUseTranslation ) { CLocale::LoadTranslation ( Settings.strLanguage, pApp ); }