Skip to content
Permalink
Browse files
Fix lang code in feed parser
Fixes #43232
  • Loading branch information
elpaso authored and nyalldawson committed May 21, 2021
1 parent 27160c9 commit b5d875cd819e7f7b40bfc9844b8bd7f02f03e992
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/network/qgsnewsfeedparser.cpp
@@ -50,7 +50,7 @@ QgsNewsFeedParser::QgsNewsFeedParser( const QUrl &feedUrl, const QString &authcf
feedLanguage = QgsApplication::settingsLocaleUserLocale.value( QString(), true, QStringLiteral( "en" ) );
}
if ( !feedLanguage.isEmpty() && feedLanguage != QLatin1String( "C" ) )
query.addQueryItem( QStringLiteral( "lang" ), feedLanguage );
query.addQueryItem( QStringLiteral( "lang" ), feedLanguage.mid( 0, 2 ) );

if ( settingsFeedLatitude.exists( mSettingsKey ) && settingsFeedLongitude.exists( mSettingsKey ) )
{

0 comments on commit b5d875c

Please sign in to comment.