Skip to content

Commit 582eee0

Browse files
committed
Adjust "use translations"
1 parent 4c6ab68 commit 582eee0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/main.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)