Re: Unable to override locale within Python

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Thursday, January 13, 2022 5:09:10 PM CET Mattia Verga wrote:
> By comparing the `printenv` output in linux terminal and in konsole I
> see that both have `LANG=it_IT.UTF-8` (which is correct), but konsole
> adds `LANGUAGE=it:en_US` which seems a strange value.

LANGUAGE is a variable that can specify a list of prefered languages, with `:` as the separator. See the documentation here in the manual of gettext:

> I now have to find out what KDE setting is injecting the LANGUAGE
> variable... there's nothing in bashrc or bash_profile, so it may be some
> KDE setting.

In KDE System Settings, section "Regional Settings/Language", you probably have specified that you prefer "italiano" and then "American English". That is wky konsole sets that variable.

> Unset the LANGUAGE variable make the script run fine.

As documented, LANGUAGE has a precedence over LANG or LC_* variables. See also:

By unsetting it, you let the code fallback to the other variables.

kde mailing list -- kde@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kde-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct:
List Guidelines:
List Archives:
Do not reply to spam on the list, report it:

[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux