Bug 347956 - Duplicated/missing Portuguese language on system settings
Summary: Duplicated/missing Portuguese language on system settings
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_language (show other bugs)
Version: 5.3.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: John Layt
URL: https://www.dropbox.com/s/ns4nlb04ng4...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-19 15:14 UTC by Emílio Simões
Modified: 2018-05-17 10:32 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Available languages (23.92 KB, image/png)
2015-11-02 09:50 UTC, Emílio Simões
Details
Preferred languages (27.73 KB, image/png)
2015-11-02 09:51 UTC, Emílio Simões
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emílio Simões 2015-05-19 15:14:25 UTC
System settings regional settings has a duplicated pt-BR language option and has no option to select pt-PT.
In the available languages it appears "português do Brasil" twice, it should be "português do Brasil" and "português de Portugal"

Also, any of the options always applies pt-BR as the UI language.

Reproducible: Always

Steps to Reproduce:
1. Go to System Settings -> Regional Settings -> Language
2. Chose any of the options
3. Press 'Apply'
4. Restart session, language is always pt-BR for any of the options

Actual Results:  
There are two pt-BR options
Both of them apply the pt-BR language for the UI messages

Expected Results:  
It should be an option for pt-PT
The pt_PT option should apply the pt-PT translations for the UI messages
Comment 1 Burkhard Lück 2015-05-20 04:55:05 UTC
Confirmed with Plasma 5.3 / Kubuntu 15.04 fresh install in a VM
Comment 2 jmaspons 2015-08-18 17:33:20 UTC
I found a similar problem with catalan and catalan from Valencia. The options string is «catalan» in both cases but each one point to the correct language (ca vs. ca@valencia) and you can see different translations. 

Are you shure that both options gives the same result for portuguese? If this is the case this bug is a duplicated of bug #345761
Comment 3 Emílio Simões 2015-08-18 17:43:55 UTC
I can't find any visible change in any of the core KDE applications, all the messages remain the same.
As far as I can perceive both options apply the same translation.
Comment 4 Albert Astals Cid 2015-08-23 11:42:06 UTC
Git commit adb75ec59296ff17ef9d07a7cae0614235c592a6 by Albert Astals Cid.
Committed on 23/08/2015 at 11:41.
Pushed by aacid into branch 'Plasma/5.4'.

Fix issues in translation control module

Fixes two problems:
 * Variants not being shown up, i.e. ca ca@valencia showing up both as "català"
 * pt showing up as "português do Brasil"

For the first one i've went the easy route of adding the languageCode if there's an @ in it
For pt i had to hardcode it since i found no other way to make Qt understand that for "pt" we mean portuguese from portugal

REVIEW: 124885
Related: bug 345761

M  +15   -1    kcms/translations/kcmtranslations.cpp

http://commits.kde.org/plasma-desktop/adb75ec59296ff17ef9d07a7cae0614235c592a6
Comment 5 Emílio Simões 2015-11-02 09:50:04 UTC
I'm reopening this issue because it's not fixed.

In the available languages indeed both languages appear (pt-PT and pt-BR) but when we move the European Portuguese to the preferred languages panel it still appear as Brazilian Portuguese.

I'm attaching 2 new screenshots that reproduce the issue:

https://www.dropbox.com/s/nirevtn4miljpw5/1-available-languages.png?dl=0
https://www.dropbox.com/s/o2qzl56zy2pj3lc/2-preferred-languages.png?dl=0
Comment 6 Emílio Simões 2015-11-02 09:50:48 UTC
Created attachment 95252 [details]
Available languages
Comment 7 Emílio Simões 2015-11-02 09:51:12 UTC
Created attachment 95253 [details]
Preferred languages
Comment 8 Eike Hein 2018-05-17 10:32:23 UTC
This is fixed in the rewritten Language KCM in 5.13.