Bug 259129 - "Switch Application Language" doesn't work completely
Summary: "Switch Application Language" doesn't work completely
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdecore (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
: 161488 264289 280518 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-07 15:36 UTC by Tristan Miller
Modified: 2018-05-25 10:17 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing the results of changing the System Settings language from English to Russian (95.04 KB, image/png)
2010-12-07 15:36 UTC, Tristan Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Miller 2010-12-07 15:36:49 UTC
Created attachment 54258 [details]
Screenshot showing the results of changing the System Settings language from English to Russian

Version:           unspecified (using KDE 4.5.4) 
OS:                Linux

All KDE applications have a Help->Swith Application Language command which can be used to switch that application's user interface to a different language; the change is to take effect after the program is restarted.  However, when the program is restarted, only some text labels in the user interface appear in the new language; the rest appear in the default language.

Reproducible: Always

Steps to Reproduce:
1. Launch any application.  I've been able to reproduce the problem with Kopete and System Settings.
2. Help->Switch Application Language
3. Select a language other than KDE's default language from the Primary language drop-down list.  For example, my default language is American English, so I select Russian from the list.
4. OK
5. A message appears indicating that the change will take effect after the application is restarted.  Click OK.
6. Close the application.
7. Restart the application.

Actual Results:  
8. Some text labels in the application's user interface are in Russian, but some remain in English.  (It may be necessary to open some dialogs to find them.)  See the attached screenshot.

Expected Results:  
8. All text labels in the user interface should be in Russian.

I have also been able to reproduce the problem going the other direction -- that is, for a user where the default KDE language is Russian, all the text labels in System Settings and Kopete are initially in Russian.  If I then try to switch the application language to American English and restart, then some of the labels change to English, but the rest stay in Russian.
Comment 1 Christoph Feck 2011-01-05 19:20:04 UTC
I just tried "KDE_LANG=de systemsettings" on a system which has US English as default locale (today's trunk). The application toolbar appears in German, but all module icons still have English labels.

As for Kopete, it is a bit suspicious that its menu item is just called "Configure..." instead of "Configure Kopete...". It might have some messed KGlobal configuration, so I suggest to report a separate bug for Kopete.
Comment 2 Ben Cooksley 2011-01-05 19:22:18 UTC
This is a bug in KService, which blindly reads from the Sycoca.
Comment 3 Christoph Feck 2011-01-25 21:36:51 UTC
*** Bug 264289 has been marked as a duplicate of this bug. ***
Comment 4 Tristan Miller 2011-02-07 15:19:45 UTC
The "Configure..." label in Kopete's Settings menu has already been reported as Bug 125199.
Comment 5 Christoph Feck 2011-08-21 14:39:43 UTC
*** Bug 280518 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2011-12-20 01:30:16 UTC
*** Bug 161488 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Feck 2011-12-20 01:32:29 UTC
Bug 161488 comment #4 suggests this is a WONTFIX.
Comment 8 Tristan Miller 2011-12-20 09:04:30 UTC
If the "switch application language" command cannot be made to change all user interface labels, then the command should be removed, or at least the user should be warned that some labels will remain in the system default language.  Personally I would favour the latter, since even having some of the labels in the correct language is often good enough.

By the way, I can reproduce this problem with KTorrent as well.  After switching the language, most labels are in the new language, except for those in the Plugins list.
Comment 9 Guido Schmidt 2014-07-02 21:17:00 UTC
Bug is still valid on platform 4.13.2.

For those who work on fixing bugs and have sometimes difficulties understanding what bug reporters are referring to: The switch working correctly would help to find the correct English wordings for bug reports.

(System default language here is German. After setting the switch to English for System Settings the module names are still in German. Switching the Help Center to English makes it show only the contents in the "Contents" tab on the left in English while the actual help text on the right stays German. I guess this is due to missing English help files but an ideal world the language switcher would be smart enough to do what humans expect from it and offer to load the missing help files.)
Comment 10 Albert Astals Cid 2015-09-23 21:06:06 UTC
Fixed for applications using KDE Frameworks >= 5.15