File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -932,13 +932,6 @@ int main ( int argc, char** argv )
932932 CClientSettings Settings ( &Client, strIniFileName );
933933 Settings.Load ( CommandLineOptions );
934934
935- // load translation
936- if ( bUseGUI && bUseTranslation )
937- {
938- CLocale::LoadTranslation ( Settings.strLanguage , pApp );
939- CInstPictures::UpdateTableOnLanguageChange ();
940- }
941-
942935# ifndef NO_JSON_RPC
943936 if ( pRpcServer )
944937 {
@@ -949,6 +942,13 @@ int main ( int argc, char** argv )
949942# ifndef HEADLESS
950943 if ( bUseGUI )
951944 {
945+ // load translation
946+ if ( bUseTranslation )
947+ {
948+ CLocale::LoadTranslation ( Settings.strLanguage , pApp );
949+ CInstPictures::UpdateTableOnLanguageChange ();
950+ }
951+
952952 // GUI object
953953 CClientDlg ClientDlg ( &Client,
954954 &Settings,
@@ -1015,7 +1015,7 @@ int main ( int argc, char** argv )
10151015 Settings.Load ( CommandLineOptions );
10161016
10171017 // load translation
1018- if ( bUseGUI && bUseTranslation )
1018+ if ( bUseTranslation )
10191019 {
10201020 CLocale::LoadTranslation ( Settings.strLanguage , pApp );
10211021 }
You can’t perform that action at this time.
0 commit comments