Announcement

Collapse
No announcement yet.

Strange locale problem

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Strange locale problem

    My system is set to British English in KDE settings but my keyboard is US English and my timezone is Japan.

    If I type:

    locale

    in a terminal I get:

    Code:
    LANG=en_GB.UTF-8
    LANGUAGE=en_GB
    LC_CTYPE="en_GB.UTF-8"
    LC_NUMERIC=ja_JP.UTF-8
    LC_TIME=en_GB.UTF-8
    LC_COLLATE="en_GB.UTF-8"
    LC_MONETARY=ja_JP.UTF-8
    LC_MESSAGES="en_GB.UTF-8"
    LC_PAPER=ja_JP.UTF-8
    LC_NAME=ja_JP.UTF-8
    LC_ADDRESS=ja_JP.UTF-8
    LC_TELEPHONE=ja_JP.UTF-8
    LC_MEASUREMENT=ja_JP.UTF-8
    LC_IDENTIFICATION=ja_JP.UTF-8
    LC_ALL=[/FONT]
    etc/default/locale shows:

    Code:
    LANG=en_GB.UTF-8
    LC_ADDRESS=en_GB.UTF-8
    LC_IDENTIFICATION=en_GB.UTF-8
    LC_MEASUREMENT=en_GB.UTF-8
    LC_MONETARY=en_GB.UTF-8
    LC_NAME=en_GB.UTF-8
    LC_NUMERIC=en_GB.UTF-8
    LC_PAPER=en_GB.UTF-8
    LC_TELEPHONE=en_GB.UTF-8
    LC_TIME=en_GB.UTF-8​
    I used the dpkg reconfigure locales command until I'm green in the face but nothing seems to change when I type locale....



    Click image for larger version

Name:	Screenshot_20230221_131728.jpg
Views:	144
Size:	92.2 KB
ID:	668600
    Last edited by Beerislife; Feb 20, 2023, 10:18 PM.
    Constant change is here to stay!

    #2
    Found the problem in

    ~/.pam_environment​

    Edit: Wrong!
    Last edited by Beerislife; Feb 20, 2023, 11:20 PM.
    Constant change is here to stay!

    Comment


      #3
      So you did not find the cause?

      Do you have a file /etc/locale.conf or $HOME/.config/locale.conf? Those can be used by systemd, afaik.

      You could also check $HOME/.config/plasma-localerc (but your Plasma locale settings seem to be fine as you posted…).

      Did you check that the cause is not user-specific by logging in with another account?
      Last edited by Schwarzer Kater; Feb 21, 2023, 06:10 AM. Reason: typos
      Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
      Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

      get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
      install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

      Comment


        #4
        /etc/locale.conf

        Code:
        LANG=en_GB.UTF-8
        LC_ADDRESS=en_GB.UTF-8
        LC_IDENTIFICATION=en_GB.UTF-8
        LC_MEASUREMENT=en_GB.UTF-8
        LC_MONETARY=en_GB.UTF-8
        LC_NAME=en_GB.UTF-8
        LC_NUMERIC=en_GB.UTF-8
        LC_PAPER=en_GB.UTF-8
        LC_TELEPHONE=en_GB.UTF-8
        LC_TIME=en_GB.UTF-8​
        $HOME/.config/locale.conf doesn't exist.

        $HOME/.config/plasma-localerc

        Code:
        [Formats]
        LANG=en_GB.UTF-8​
        I'll try a new user when I wake up later...
        Constant change is here to stay!

        Comment


          #5
          I also found this file:

          plasma-locale-settings.sh

          Containing:

          Code:
          # Generated script, do not edit
          # Exports language-format specific env vars from startkde.
          # This script has been generated from kcmshell5 formats.
          # It will automatically be overwritten from there.
          export LANG=en_GB.UTF-8
          export LC_NUMERIC=en_GB.UTF-8
          export LC_TIME=en_GB.UTF-8
          export LC_MONETARY=ja_JP.UTF-8
          export LC_MEASUREMENT=en_GB.UTF-8
          export LC_COLLATE=en_GB.UTF-8
          export LANGUAGE=en_GB
          Constant change is here to stay!

          Comment


            #6
            Hm. I could not find "plasma-locale-settings.sh" on my computer - neither in KDE neon (Plasma 5.27), nor in openSUSE Tumbleweed KDE (Plasma 5.27) or Arch KDE (Plasma 5.27.1). Interesting…
            Where did you find it on yours?

            But "at least" there is export … - if this is not the format you want or get, this is something worth looking into, I would say:
            Did you do anything special/extra to get Japanese language support for KDE Plasma? (Sorry if this is a dumb question, I have never had to use other languages than German and English.)
            Last edited by Schwarzer Kater; Feb 22, 2023, 07:47 AM.
            Debian KDE & LXQt • Kubuntu & Lubuntu • openSUSE KDE • Windows • macOS X
            Desktop: Lenovo ThinkCentre M75s • Laptop: Apple MacBook Pro 13" • and others

            get rid of Snap script (20.04 +)reinstall Snap for release-upgrade script (20.04 +)
            install traditional Firefox script (22.04 +)​ • install traditional Thunderbird script (24.04)

            Comment

            Working...
            X