language kcm doesn't write env setup script
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kde-runtime (Ubuntu) |
Fix Released
|
High
|
Harald Sitter | ||
Trusty |
Fix Released
|
High
|
Harald Sitter | ||
Utopic |
Fix Released
|
High
|
Harald Sitter |
Bug Description
[Impact]
Language configuration will not write the necessary envrionment setup files to make non kde applications localized unless it is switched into debug mode. This was fixed by moving the related write function call out of the noop kdebug statement to make sure that it is executed regardless of whether the kdebug is turned noop.
[Test Case]
* delete .kde/env/
* run kdebugdialog
* deselect everything
* run kcmshell4 language
* change a language setting
* apply changes
* make sure .kde/env/
[Regression Potential]
none
[Other Info]
n/a
--
The current Kubuntu method of installing support for new languages and changing which language gets highest preference is broken because it only affects KDE applications. The system language (as set by the LANG and LANGUAGE environment variables) isn't changed, and the language support for added languages is incomplete - for example missing localisation packages for Firefox, Libreoffice and spell checkers, among others.
This is a side-effect of the deprecation of the language-
The missing functionality should be integrated into the KDE System Settings Locale control module, as mentioned in this comment https:/
To reproduce:
1. Freshly installed Kubuntu 14.04 system. KDE System Settings-
2. Add language (in my example German). Wait while Locale module installs the necessary packages.
3. Move language (German) to top of the priority list, above the default American English
4. Logout of KDE, log back in
Expected Results:
All necessary language files for both KDE applications (e.g. Dolphin) and non-KDE applications (e.g. Firefox, Libreoffice) is installed. All programs which have German translations available display in German. Environment variables are set so that command line programs also run in German (where translations available), eg:
tim@localhost:~$ ls notthere
ls: Zugriff auf notthere nicht möglich: Datei oder Verzeichnis nicht gefunden
In short - the same effect you'd get by using gnome-language-
Actual Results:
Only the language of KDE applications is changed. Firefox, LIbreoffice, command line programs, bash environment vars, and all other programs remain in English. In other words you have a half-half system as far as language support is concerned.
Workaround:
sudo apt-get install gnome-language-
gnome-language-
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: kde-workspace 4:4.11.8-0ubuntu6
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
CurrentDesktop: KDE
Date: Wed May 7 15:01:57 2014
InstallationDate: Installed on 2014-04-29 (7 days ago)
InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
PackageArchitec
SourcePackage: kde-workspace
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
summary: |
- KDE Locale module support for changing language is incomplete + language kcm doesn't write env setup script |
Changed in kde-runtime (Ubuntu Trusty): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in kde-runtime (Ubuntu Utopic): | |
status: | Triaged → In Progress |
Changed in kde-runtime (Ubuntu Trusty): | |
assignee: | nobody → Harald Sitter (apachelogger) |
Changed in kde-runtime (Ubuntu Trusty): | |
status: | Triaged → Fix Committed |
status: | Fix Committed → Won't Fix |
status: | Won't Fix → In Progress |
Changed in kde-runtime (Ubuntu Utopic): | |
status: | In Progress → Fix Committed |
tags: |
added: verification-done removed: verification-needed |
BTW the ProcEnviron.txt attached to this bug report is from after I applied the workaround (i.e. used gnome-language- selector) so that's why some of the env vars have been changed