Announcement

Collapse
No announcement yet.

Wrong language being used in KDE

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

    Wrong language being used in KDE

    Recently made a fresh install of Kubuntu 13.04. I now have a problem with the wrong language being displayed in the desktop and some of my software. I always install English as my primary system language, with Spanish and German as secondaries for other user accounts (or just to have translations available). I have English as the main language in the language selector menu. The problem is that certain parts of the desktop and some software are displayed in my other secondary languages. Examples:

    - the multimedia menu in system settings (specifically the phonon section) displays in spanish
    - some software like unetbootin and acetoneiso and alsamixer display is spanish

    Only way to "fix" this is by removing all other languages except English, but that's not really a solution for me.
    Processor: AMD FX-8320 Eight-Core @ 4.00GHz (8 Cores,) Motherboard: ASUS M5A97 R2.0, Memory: 32768MB
    Disk: 2000GB ST2000DM001-9YN1 + 1000GB ST31000340AS, Network: Realtek RTL8111/8168/8411
    Graphics: ASUS AMD Radeon HD 7850, Audio: C-Media CMI8788, Monitor: S220HQL

    #2
    (With the 13.04/KDE 4.10)

    Earlier: http://www.kubuntuforums.net/showthr...ot-Locale-quot

    A bug report of the setlocale.sh: https://bugs.kde.org/show_bug.cgi?id=319748
    ...Does Ubuntu use a distro specific patch?...

    I have no idea. :-(

    So far I am using an ugly workaround. I changed the content of .env/kde/setlocale.sh manually, and then made that file and its parent directory be read only.

    This file and its parent directory are not present in Fedora 17 or Ubuntu 12.10.
    The Kubuntu patch is probably: kde-runtime / kubuntu_langpack_install.diff
    Code:
    ...
    +    // -------------------------------------------------------------------------
    +    // 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.
    +    // This is because zh_CN and zh_TW and zh_US would not yield the same
    +    // results as the signs are different.
    +    // Region values on the other hand are not supported (only ca@valencia has
    +    // one anwyay).
    +    const QString language = m_kcmLocale->language();
    ...

    A workaround - for the mixed languages

    The ~/.kde/env/setlocale.sh seems to be the problem - Some applications are using the language information from there and using the mixed languages.

    Mixed US/Fi:



    This seems to work at here:

    Make an empty ~/.kde/env/setlocale.sh
    Set the owner of the setlocale.sh as the root - so the user can't change it.

    => The KDE language set is working fine (at here) - no need to the ~/.kde/env/setlocale.sh


    Launchpad - Locale wrongly defaults to en_US.UTF8 : https://bugs.launchpad.net/ubuntu/+s...e/+bug/1204182
    Last edited by Rog131; Jul 26, 2013, 11:09 AM.
    Before you edit, BACKUP !

    Why there are dead links ?
    1. Thread: Please explain how to access old kubuntu forum posts
    2. Thread: Lost Information

    Comment


      #3
      Some languages are more dominant...

      With the Kubuntu 13.04


      KDE System settings > Locale > Language. Preferred Languages: German/American English... Apply

      The language is German.

      Changing to American English ... The Dolphin is using mixed German/English




      Moving the German from the Preferred Languages ... The Dolphin is using mixed German/English

      Purging the German language files:
      sudo apt-get purge calligra-l10n-de firefox-locale-de kde-l10n-de language-pack-de language-pack-de
      ... The Dolphin is using mixed German/English

      Rebooting ... The Dolphin is using mixed German/English

      Removing the ~/.kde/share/apps/kfileplaces/bookmarks.xml when the Dolphin is not running ... The Dolphin is using English
      Have you tried ?

      - How to Ask a Question on the Internet and Get It Answered
      - How To Ask Questions The Smart Way

      Comment


        #4
        Country value patch dropped

        Kubuntu Developer Discussion: https://lists.ubuntu.com/mailman/listinfo/kubuntu-devel
        --> country value patch dropped: https://lists.ubuntu.com/archives/ku...ly/007148.html
        Have you tried ?

        - How to Ask a Question on the Internet and Get It Answered
        - How To Ask Questions The Smart Way

        Comment

        Working...
        X