mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Re-use variable for current locale
This commit is contained in:
parent
fd84f82d29
commit
f0724857c8
@ -905,11 +905,11 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
|
|||||||
//
|
//
|
||||||
// Translation and locale settings
|
// Translation and locale settings
|
||||||
//
|
//
|
||||||
QString systemLocale = QLocale().name();
|
QString currentLocale = QLocale().name();
|
||||||
lblSystemLocale->setText( tr( "Detected active locale on your system: %1" ).arg( systemLocale ) );
|
lblSystemLocale->setText( tr( "Detected active locale on your system: %1" ).arg( currentLocale ) );
|
||||||
QString userLocale = mSettings->value( QStringLiteral( "locale/userLocale" ), QString() ).toString();
|
QString userLocale = mSettings->value( QStringLiteral( "locale/userLocale" ), QString( ) ).toString();
|
||||||
bool showGroupSeparator = mSettings->value( QStringLiteral( "locale/showGroupSeparator" ), false ).toBool();
|
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() );
|
const QStringList curentI18nList( i18nList() );
|
||||||
for ( const auto &l : curentI18nList )
|
for ( const auto &l : curentI18nList )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user