Skip to content

Commit

Permalink
Fix lang code in feed parser
Browse files Browse the repository at this point in the history
Fixes #43232
  • Loading branch information
elpaso authored and nyalldawson committed May 21, 2021
1 parent 27160c9 commit b5d875c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/network/qgsnewsfeedparser.cpp
Expand Up @@ -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 ) )
{
Expand Down

0 comments on commit b5d875c

Please sign in to comment.