Skip to content
Permalink
Browse files

Add exception for Sardinian language name to workaround upstream issue

  • Loading branch information
agiudiceandrea authored and nyalldawson committed Nov 17, 2020
1 parent 0c8952e commit 57040e2989a590562ddd242d66d2c368fae776db
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/options/qgsoptions.cpp
@@ -1019,7 +1019,7 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
for ( const auto &l : language18nList )
{
// QTBUG-57802: eo locale is improperly handled
QString displayName = l.startsWith( QLatin1String( "eo" ) ) ? QLocale::languageToString( QLocale::Esperanto ) : QLocale( l ).nativeLanguageName();
QString displayName = l.startsWith( QLatin1String( "eo" ) ) ? QLocale::languageToString( QLocale::Esperanto ) : l.startsWith( QLatin1String( "sc" ) ) ? QStringLiteral( "sardu" ) : QLocale( l ).nativeLanguageName();
cboTranslation->addItem( QIcon( QString( ":/images/flags/%1.svg" ).arg( l ) ), displayName, l );
}

0 comments on commit 57040e2

Please sign in to comment.
You can’t perform that action at this time.