Skip to content
Permalink
Browse files

Re-use variable for current locale

  • Loading branch information
elpaso committed Jul 3, 2018
1 parent b5481c5 commit c864e1aa78372356290c57b0391959688d2a531d
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgsoptions.cpp
@@ -905,11 +905,11 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
//
// Translation and locale settings
//
QString systemLocale = QLocale().name();
lblSystemLocale->setText( tr( "Detected active locale on your system: %1" ).arg( systemLocale ) );
QString userLocale = mSettings->value( QStringLiteral( "locale/userLocale" ), QString() ).toString();
QString currentLocale = QLocale().name();
lblSystemLocale->setText( tr( "Detected active locale on your system: %1" ).arg( currentLocale ) );
QString userLocale = mSettings->value( QStringLiteral( "locale/userLocale" ), QString( ) ).toString();
bool showGroupSeparator = mSettings->value( QStringLiteral( "locale/showGroupSeparator" ), false ).toBool();
QString globalLocale = mSettings->value( QStringLiteral( "locale/globalLocale" ), QLocale().name() ).toString();
QString globalLocale = mSettings->value( QStringLiteral( "locale/globalLocale" ), currentLocale ).toString();
const QStringList curentI18nList( i18nList() );
for ( const auto &l : curentI18nList )
{

0 comments on commit c864e1a

Please sign in to comment.
You can’t perform that action at this time.