apol added inline comments.

INLINE COMMENTS

> klanguagebutton.cpp:148
>      if (name.isEmpty()) {
> -        text = languageCode;
> -        QLocale locale(languageCode);
> -        if (locale != QLocale::c()) {
> -            text = locale.nativeLanguageName();
> -        } else {
> -            showCodes = false;
> +        const QString entryFile = 
> QStandardPaths::locate(QStandardPaths::GenericDataLocation, 
> QStringLiteral("locale") + QLatin1Char('/') + languageCode + 
> QStringLiteral("/kf5_entry.desktop"));
> +        if (QFile::exists(entryFile)) {

Why `QStringLiteral("locale") + QLatin1Char('/')`?

REPOSITORY
  R265 KConfigWidgets

REVISION DETAIL
  https://phabricator.kde.org/D10444

To: aacid
Cc: apol, #frameworks, michaelh

Reply via email to