Summary: | Since the upgrade to KDE 4.5.x the locale are all messed up | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Stéphane Magnenat <stephane> |
Component: | kcm_language | Assignee: | John Layt <jlayt> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | cfeck, hein, heri+kde, jlayt |
Priority: | NOR | ||
Version: | 0.2 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
locales settings, showing some mess
french, english, and german in a single screenshot... good for my language educations.... Locales screenshot under 4.6.5, showing a somewhat different bug |
Created attachment 51373 [details]
french, english, and german in a single screenshot... good for my language educations....
What is the status of this bug? Does it still happen with a recent KDE version, such as 4.6.5 or 4.7.x? Please add a comment. Created attachment 64979 [details]
Locales screenshot under 4.6.5, showing a somewhat different bug
Under 4.6.5 I have a somewhat different bug (see attached screenshot), in the sense that languages are ok but some date placeholders seem not to be replaced. Typing locale on the command line shows: LANG=en_GB.utf8 LANGUAGE=en_GB LC_CTYPE="en_GB.utf8" LC_NUMERIC="en_GB.utf8" LC_TIME="en_GB.utf8" LC_COLLATE="en_GB.utf8" LC_MONETARY="en_GB.utf8" LC_MESSAGES="en_GB.utf8" LC_PAPER="en_GB.utf8" LC_NAME="en_GB.utf8" LC_ADDRESS="en_GB.utf8" LC_TELEPHONE="en_GB.utf8" LC_MEASUREMENT="en_GB.utf8" LC_IDENTIFICATION="en_GB.utf8" LC_ALL= In attachment for KDE 4.6.5, "Country" is set to Switzerland Interesting "Date" in that screen shot :) Adding John, who knows better if this is a bug in the system settings KCM, or in the underlying KDate/KLocale libraries. Can you please attach the contents of your kdeglobals file [Locale] section? This is usually in ~/.kde4/share/config or ~/.kde/share/config . I suspect I know what's happening and we should see that funky date format in the file. The content of the section is: [Locale] Country=ch DateFormat=WOCHENTAG TT MONAT JJJJ DateFormatShort=TT.%m.JJJJ Language=en_GB:en_US:fr:de Ah, exactly what I thought. First a bit of background. KDE uses the POSIX datetime format codes such as %m for month number, %b for short month name and %B for long month name. This isn't very user friendly though so in the KCM we convert those codes into keywords in the users language like MM, SHORTMONTH and MONTH. When the users settings are saved then we convert these keywords back to the codes and any other text is saved as-is. What appears to have happened here is that the language was initially German so the date formats were displayed with German keywords. The language was then switched to English, but the displayed date formats were not switched to English at the same time, so upon saving the German keywords were not converted to date codes but saved as-is. The quick and easy solution here is to simply delete the DateFormat and DateFormatShort lines in the config file and save it, then go into the KCM and everything will be fine. You'll probably need to log out and in again for the change to take effect across the entire plasma workspace. I'll need to fix the code to update the formats whenever the language is changed, so re-assigning to me. The Language settings were rewritten for 5.13. Please reopen if this continues to be a problem. |
Created attachment 51372 [details] locales settings, showing some mess Version: unspecified (using KDE 4.5.0) OS: Linux Since the upgrade to KDE 4.5.x the locale are all messed up. I have most of the texts in French, some in English, some in German! I have these three locales installed Reproducible: Always Steps to Reproduce: This happens on two different computers with KDE 4.5.x. OS: Linux (x86_64) release 2.6.32-24-generic Compiler: cc