Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-use variable for current locale
  • Loading branch information
elpaso committed Jul 3, 2018
1 parent b5481c5 commit c864e1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsoptions.cpp
Expand Up @@ -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 )
{
Expand Down

0 comments on commit c864e1a

Please sign in to comment.