sudo grep -rn 'setlocale\.sh' /usr/lib/kde4/*
 Binary file /usr/lib/kde4/kcm_locale.so matches

dpkg-query -S /usr/lib/kde4/kcm_locale.so
 kde-runtime: /usr/lib/kde4/kcm_locale.so

apt-get source kde-runtime
cd kde-runtime-*

grep -rn 'setlocale\.sh' *
 debian/patches/kubuntu_langpack_install.diff:344:+    // Write LANG and 
LANGUAGE to ~/.kde/env/setlocale.sh 
 debian/patches/kubuntu_langpack_install.diff:347:+    const QString envFile = 
envPath % QLatin1String("/setlocale.sh");
 kcontrol/locale/kcmlocale.cpp:679:    // Write LANG and LANGUAGE to 
~/.kde/env/setlocale.sh
 kcontrol/locale/kcmlocale.cpp:682:    const QString envFile = envPath % 
QLatin1String("/setlocale.sh");

grep -C4 setlocale\.sh debian/patches/kubuntu_langpack_install.diff 
     load();
     KGlobalSettings::self()->emitChange(KGlobalSettings::SettingsChanged, 
KGlobalSettings::SETTINGS_LOCALE);
+
+    // 
-------------------------------------------------------------------------
+    // Write LANG and LANGUAGE to ~/.kde/env/setlocale.sh
+
+    const QString envPath = KGlobal::dirs()->localkdedir() % 
QLatin1String("/env");
+    const QString envFile = envPath % QLatin1String("/setlocale.sh");
+
+    // In terms of the locale KDE's language value can express more than the
+    // language (e.g. country in en_GB and region in ca@valencia).
+    // The country values always override whatever is specified in KDE.

grep -C3 langpack.*LANG debian/changelog

kde-runtime (4:4.10.2-0ubuntu3) raring-proposed; urgency=low

  * Make kubuntu_langpack_install.diff also set LANG and LANGUAGE.
    This is done via a kde environment script (sourced by startkde).
    kdesudo invoked applications as well as polkit actions and non-KDE
    applications require properly set LANG/LANGUAGE, otherwise they'll use

-- 
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to kde-workspace in Ubuntu.
https://bugs.launchpad.net/bugs/1204182

Title:
  Locale wrongly defaults to en_US.UTF8

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

-- 
kubuntu-bugs mailing list
kubuntu-b...@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kubuntu-bugs

Reply via email to