diff options
author | Ken Moore <moorekou@gmail.com> | 2016-02-05 11:47:30 -0500 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-02-05 11:47:30 -0500 |
commit | f2afb1e0689a5a5077e28c3c65dc71df19cf7fbe (patch) | |
tree | c4ce6206a13e7a84dcb965241ad6ac77f3698867 /lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp | |
parent | Cleanup lumina-config a bit: (diff) | |
download | lumina-f2afb1e0689a5a5077e28c3c65dc71df19cf7fbe.tar.gz lumina-f2afb1e0689a5a5077e28c3c65dc71df19cf7fbe.tar.bz2 lumina-f2afb1e0689a5a5077e28c3c65dc71df19cf7fbe.zip |
A few small fixes to lumina-desktop:
1) When loading the "pt" locale code - pass it to QLocale as "pt_PT" so the native language translation some out properly (European portuguese, not brazilian)
2) Add a new button for the audio controls in the start menu for muting/unmuting the audio.
Diffstat (limited to 'lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp')
-rw-r--r-- | lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp b/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp index 534b1b41..1d699ea9 100644 --- a/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp +++ b/lumina-desktop/panel-plugins/systemdashboard/SysMenuQuick.cpp @@ -78,7 +78,7 @@ void LSysMenuQuick::UpdateMenu(){ ui->combo_locale->clear(); QLocale curr; for(int i=0; i<locales.length(); i++){ - QLocale loc(locales[i]); + QLocale loc( (locales[i]=="pt") ? "pt_PT" : locales[i] ); ui->combo_locale->addItem(loc.nativeLanguageName()+" ("+locales[i]+")", locales[i]); //Make the display text prettier later if(locales[i] == curr.name() || locales[i] == curr.name().section("_",0,0) ){ //Current Locale |