https://bugs.kde.org/show_bug.cgi?id=491305

--- Comment #22 from jcrma...@gmail.com ---
(In reply to hanyoung from comment #21)
> Ah, so the problem is Kubuntu installer set the system-wide locale settings,
> but Plasma can only change user locale. When you install the system with
> Portuguese, the LC_* are set in /etc/locale.conf. But when you set language
> in Plasma, we override LANG and LANGUAGE in ~/.config/plasma-localerc. But
> we DO NOT change LC_* by default. Because LC_* should inherit LANG if not
> explicitly set.
> 
> We didn't expect system-wide setting to explicitly set LC_* vars, because
> ideally they should be unset and inherit from LANG. I think an easy way to
> fix this problem would be to check LC_* vars when user is setting LANG in
> Plasma Language & Lang KCM.
> If the LC_* is explicitly set, and the setting is not coming from Plasma, we
> also override LC_* in ~/.config/plasma-localerc.

If it helps, the contents of ~/.config/plasma-localerc in the 3 stages are the
following.

1. After installation, ~/.config/plasma-localerc has this content
[Formats]
LANG=en_US.UTF-8

2. After correcting all the options (except the system language that always
remain American English) in System Settings\Regional Settings\Region & Language
to Portuguese, ~/.config/plasma-localerc has this content
[Formats]
LANG=en_US.UTF-8
LC_ADDRESS=pt_PT.UTF-8
LC_MEASUREMENT=pt_PT.UTF-8
LC_MONETARY=pt_PT.UTF-8
LC_NAME=pt_PT.UTF-8
LC_NUMERIC=pt_PT.UTF-8
LC_PAPER=pt_PT.UTF-8
LC_TELEPHONE=pt_PT.UTF-8
LC_TIME=pt_PT.UTF-8

Please note that LC_IDENTIFICATION and LC_CTYPE are not present. Shouldn't they
be?

3. After pressing the Defaults button and rebooting, ~/.config/plasma-localerc
has this content
[Formats]
LANG=en_US.UTF-8


If I understood correctly your 2nd paragraph, that would solve only the GUI
part of the 2nd part of the issue. It would still remain unsynced between the
GUI and the shell. Am I wrong?

And what would be a possible correction for the 1st part?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to