Skip to content

Commit

Permalink
Adjust "use translations"
Browse files Browse the repository at this point in the history
  • Loading branch information
pljones committed Oct 22, 2023
1 parent 4c6ab68 commit 582eee0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand All @@ -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,
Expand Down Expand Up @@ -1015,7 +1015,7 @@ int main ( int argc, char** argv )
Settings.Load ( CommandLineOptions );

// load translation
if ( bUseGUI && bUseTranslation )
if ( bUseTranslation )
{
CLocale::LoadTranslation ( Settings.strLanguage, pApp );
}
Expand Down

0 comments on commit 582eee0

Please sign in to comment.