← Back to team overview

ubuntustudio-bugs team mailing list archive

[Bug 1322968] Re: Changing country leads to invalid locale

 

When try to change language in /home/.kde  will be created a env folder
wich have a file setlocale.env with incorect information about language.

Orasis

Do this:

sudo nano /home/your_username/.kde/env/setlocale.sh

Correct all from file the same
For example if you want el_GR setlocale.sh need to be this, and save it

export LANG=el_GR.UTF-8
export LANGUAGE=el_GR
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

Then run in Terminal (Konsole)
sudo sh /home/your_username/.kde/env/setlocale.sh

Now if you type "locale" in Terminal will be no error

Also if you need to have all menu aplications translated you ned to do
this

sudo nano /etc/default/locale

Paste and save

LANG="el_GR.UTF-8"
LC_NUMERIC="el_GR.UTF-8"
LC_TIME="el_GR.UTF-8"
LC_MONETARY="el_GR.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"

Reboot your PC.  After restart a popup notification will be displayed
with this message Incomplete language .....press on it and install
missing files.

That is

-- 
You received this bug notification because you are a member of Ubuntu
Studio Bugs, which is subscribed to kde-runtime in Ubuntu.
Matching subscriptions: Ubuntu Studio Bugs
https://bugs.launchpad.net/bugs/1322968

Title:
  Changing country leads to invalid locale

Status in “kde-runtime” package in Ubuntu:
  Confirmed

Bug description:
  New installation of Kubuntu 14.04 and upgraded via kubuntu-ppa.
  Initially, country is set to "United States". The locale settings are
  the following:

  ~/.kde/env$ cat setlocale.sh 
  export LANG=en_US.UTF-8 
  export LANGUAGE=en:el:en 
  export LC_NUMERIC=en_US.UTF-8 
  export LC_TIME=en_US.UTF-8 
  export LC_MONETARY=en_US.UTF-8 
  export LC_PAPER=en_US.UTF-8 
  export LC_IDENTIFICATION=en_US.UTF-8 
  export LC_NAME=en_US.UTF-8 
  export LC_ADDRESS=en_US.UTF-8 
  export LC_TELEPHONE=en_US.UTF-8 
  export LC_MEASUREMENT=en_US.UTF-8 

  Then, I change Country to Greece, via System Settings. Locale changes
  as follows:

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

  As far as I know, en_GR.UTF-8 is not a valid entry. A severe loss of
  functionality is that accents cannot be set properly to greek vowels.
  Changing manually setlocale.sh to:

  export LANG=el_GR.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 

  solves the issue.

  
  My version:

  Qt: 4.8.6
  KDE Development Platform: 4.13.1
  KDE Daemon: 4.13.1

  No LSB modules are available.
  Distributor ID: Ubuntu
  Description:    Ubuntu 14.04 LTS
  Release:        14.04
  Codename:       trusty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/kde-runtime/+bug/1322968/+subscriptions