We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 72553a6 commit 3d6aa9cCopy full SHA for 3d6aa9c
src/core/qgsapplication.cpp
@@ -825,7 +825,14 @@ QString QgsApplication::locale()
825
bool overrideLocale = settings.value( QStringLiteral( "locale/overrideFlag" ), false ).toBool();
826
if ( overrideLocale )
827
{
828
- return settings.value( QStringLiteral( "locale/userLocale" ), QString() ).toString();
+ QString locale = settings.value( QStringLiteral( "locale/userLocale" ), QString() ).toString();
829
+ // don't differentiate en_US and en_GB
830
+ if ( locale.startsWith( QStringLiteral( "en" ), Qt::CaseInsensitive ) )
831
+ {
832
+ return locale.left( 2 );
833
+ }
834
+
835
+ return locale;
836
}
837
else
838
0 commit comments