Improve KLanguageButton::insertLanguage when no name is passed

Authored by aacid on Feb 19 2018, 8:36 PM.

Description

Improve KLanguageButton::insertLanguage when no name is passed

Summary:
Move the reading of kf5_entry.desktop from KLanguageButton::loadAllLanguages
to KLanguageButton::insertLanguage that way all the users can benefit
from it

Use QLocale::languageToString if QLocale::nativeLanguageName is empty,
this comes from KSwitchLanguageDialogPrivate::fillApplicationLanguages

Reviewers: apol

Reviewed By: apol

Subscribers: apol, Frameworks

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D10444

Details

Committed
aacidFeb 19 2018, 8:36 PM
Reviewer
apol
Differential Revision
D10444: Improve KLanguageButton::insertLanguage when no name is passed
Parents
R265:5bd125e26d0b: Add icons for KStandardActions Deselect and Replace
Branches
Unknown
Tags
Unknown