Announcement

Collapse
No announcement yet.

Locale issue on 14.04 x64

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

    Locale issue on 14.04 x64

    Hello, I made various tests, fresh installs and the same thing happens.
    On installation I change nothing other than the region to "Greece" for the clock. Everything else is left to "US English", keyboard layouts etc.
    The installation finishes in about a minute or 2 and the system is excellent and does not crash -- nowhere.

    After updating it I go to System settings > Locale and there I set the country to "Greece" and leave the "Languages" untouched to "American English" and reboot.
    And the issue comes up.

    I found out there was an issue after installing "Meld" and trying to open it. it would not.
    At that point If I open terminal this is what I get:

    $ locale
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    LANG=en_GR.UTF-8
    LANGUAGE=en
    LC_CTYPE="en_GR.UTF-8"
    LC_NUMERIC=en_GR.UTF-8
    LC_TIME=en_GR.UTF-8
    LC_COLLATE="en_GR.UTF-8"
    LC_MONETARY=en_GR.UTF-8
    LC_MESSAGES="en_GR.UTF-8"
    LC_PAPER=en_GR.UTF-8
    LC_NAME=en_GR.UTF-8
    LC_ADDRESS=en_GR.UTF-8
    LC_TELEPHONE=en_GR.UTF-8
    LC_MEASUREMENT=en_GR.UTF-8
    LC_IDENTIFICATION=en_GR.UTF-8
    LC_ALL=

    Notice above, the en_GR does not exist in fact. There is el_GR or en_GB but not en_GR. At least I don't know, please inform me if en_GR indeed exists. Thank you.
    Now if I add "Greek" to the languages and reboot the systm becomes Enligh/Greek -- a mix of English and Greek (most Greek), although Greek is not 1st in the list.
    If I change the country to system country or no country I get no errors.
    After trying various things from cli I though of removing "Greek" and add "British Enlish" and move that to the top so it looksl ike this:

    British English
    American English

    Only then, after reboot, I get:

    $ locale
    LANG=en_GB.UTF-8
    LANGUAGE=en
    LC_CTYPE="en_GB.UTF-8"
    LC_NUMERIC=en_GB.UTF-8
    LC_TIME=en_GB.UTF-8
    LC_COLLATE="en_GB.UTF-8"
    LC_MONETARY=en_GB.UTF-8
    LC_MESSAGES="en_GB.UTF-8"
    LC_PAPER=en_GB.UTF-8
    LC_NAME=en_GB.UTF-8
    LC_ADDRESS=en_GB.UTF-8
    LC_TELEPHONE=en_GB.UTF-8
    LC_MEASUREMENT=en_GB.UTF-8
    LC_IDENTIFICATION=en_GB.UTF-8
    LC_ALL=

    This means that Kubuntu 14.04 so far does not "like" American English" to be 1st in the list of languages when the Country is set to "Greece" or some other (I haven't tested).
    Note that on 12.04 on my laptop nothing like the above happens.

    Although the problem has been partially solved by adding "British English" 1st, If I connect to my server with ssh from this machine, I get locale issue there because no "British English" is installed on the server.
    Today I saw an update package on "locale" and I thought it would be fixed, but no.

    Thanks

    #2
    Hi.

    I have faced more or less the same issue; I want my regional settings (numeric, time, etc) configured to Greek and language to English. Setting Country to Greece, I got the aforementioned by you invalid locale. The most serious issue was that I was not able to put accents to greek vowels anymore.

    Changing ./kde/env/setlocale.sh to:

    export LANG=en_US.UTF-8
    export LANGUAGE=en:el:en
    export LC_NUMERIC=el_GR.UTF-8
    export LC_TIME=el_GR.UTF-8
    export LC_MONETARY=el_GR.UTF-8
    export LC_PAPER=el_GR.UTF-8
    export LC_IDENTIFICATION=el_GR.UTF-8
    export LC_NAME=el_GR.UTF-8
    export LC_ADDRESS=el_GR.UTF-8
    export LC_TELEPHONE=el_GR.UTF-8
    export LC_MEASUREMENT=el_GR.UTF-8

    I got the desired settings.

    I have opened bug: https://bugs.kde.org/show_bug.cgi?id=335301 for developers to investigate.

    Comment


      #3
      Thanks for this Hoder, at least now I know it is not just a problem here with me.
      In my case though whaever I tried from cli would go back to how the system wanted on reboots, I don't know why.
      Do you suggest to put American enlighs back to be 1st lang and edit setlocale.sh to how you show ?
      I will try that. Thank you man. Cheers from the north.

      Comment


        #4
        My configuration is the following:

        In System Settings > Locale: Country -> Greece , Language -> English American.

        Then, manually set locale to the aforementioned.

        That's the way I mananed to get greek regional settings, encoding, etc and English as system's language.

        I have no idea if this is the suggested way or any better approach exists

        Comment


          #5
          I just made this change too and rebooted.
          It kept the change in setlocale.sh which seems like a static file, generated or edited wrongly by the script that runs when changing locale settings through gui.

          Although things should be fine, Cairo dock shows the shortcuts with Greek language names, for example the firefox or thunderbird icons instead of being named in English they are translated.
          Maybe this is something to do with Cairo itself, but I only set things same as you:

          Country: Greece
          Language: American English

          Any ideas ?

          p.s
          This explains also why any changes I was making would not work after reboot, if I am right, the setlocale.sh is being read on system boot.
          Last edited by orasis; May 25, 2014, 06:48 AM.

          Comment


            #6
            I just noticed that more apps run completely translated in Greek !! :-(

            Comment


              #7
              Well, what seems reasonable to you and me, seems invalid to the developers.

              You may look at the "kind" response I got here:

              https://bugs.launchpad.net/ubuntu/+s...e/+bug/1322968

              Comment


                #8
                I changed
                export LANGUAGE=en:el:en
                to
                export LANGUAGE=en:en:en

                in 12.04 this is not set to any language it is just like this:
                LANGUAGE=

                Do you know what these en:el:en are for ?
                And why is that guy there saying "status: New → Won't Fix" ?

                Comment


                  #9
                  This is the locale I have in a kubuntu 13.10 workstation, following the Country > Greece, Language > English recipe:

                  LANG=en_US.UTF-8
                  LANGUAGE=en_US:en
                  LC_CTYPE="en_US.UTF-8"
                  LC_NUMERIC=el_GR.UTF-8
                  LC_TIME=el_GR.UTF-8
                  LC_COLLATE="en_US.UTF-8"
                  LC_MONETARY=el_GR.UTF-8
                  LC_MESSAGES="en_US.UTF-8"
                  LC_PAPER=el_GR.UTF-8
                  LC_NAME=el_GR.UTF-8
                  LC_ADDRESS=el_GR.UTF-8
                  LC_TELEPHONE=el_GR.UTF-8
                  LC_MEASUREMENT=el_GR.UTF-8
                  LC_IDENTIFICATION=el_GR.UTF-8
                  LC_ALL=

                  Thus, setting LANGUAGE=en_US:en you may get the desired result.

                  Regarding the bug report, since you are on the same side, you may try reporting that this bug also affects you

                  Comment


                    #10
                    I just did

                    Comment

                    Working...
                    X