Bug 350328

Summary: Wrong LANG is set when region in format's is set.
Product: [Applications] systemsettings Reporter: Artur O. <commander.alchemy>
Component: kcm_languageAssignee: John Layt <jlayt>
Status: RESOLVED NOT A BUG    
Severity: normal CC: sebas, yofel
Priority: NOR    
Version First Reported In: 5.3.2   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Artur O. 2015-07-17 19:03:15 UTC
If preferred translation language is set on "American English", and then formats is set to Swedish KDE will write locale LANG to sv_SE.UTF-8 (language set in formats) instead the value actually set in translations.

Reproducible: Always

Steps to Reproduce:
1. Set one language a in Translations.
2. Set another language b in Formats.
3. Notice locale setting LANG from b instead of a.

Actual Results:  
Locale LANG is set by the language selected in b.

Expected Results:  
Locale LANG set by language selected in a (Translations).
Comment 1 Philip Muškovac 2015-10-20 09:43:57 UTC
Confirmed.

Additionally, LC_MESSAGES is unset which should also be set to the preferred locale.
Comment 2 Sebastian Kügler 2016-05-26 09:08:35 UTC
I think you're confusing LANG and LANGUAGE. The former is the fallback for all formats (LC_ variables), the latter describes the languages used for translations.

See also "man 7 locale".