Bug 288730 - "Change application language" to "Defaults" does not apply default language settings
Summary: "Change application language" to "Defaults" does not apply default language s...
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Unmaintained
Component: kdeui (show other bugs)
Version: 4.7
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-11 15:07 UTC by Alvise
Modified: 2013-07-06 00:51 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.11
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alvise 2011-12-11 15:07:32 UTC
Version:           4.7 (using KDE 4.7.3) 
OS:                Linux

Most KDE application offer a way to switch the language of just a single
application via Help->Switch Application Language. This will make this
particular application ignore system-wide language settings and follow only
these override settings for language strings.

The "switch application language" windows offers also a button enabling to come back to language "Defaults". With the term defaults, we should expect that KDE turns back to the system-wide settings (that are defined in system settings -> Common appearance and behaviour -> Locale -> Country region & language -> Languages.
Instead, the application settings are reset to "American English" independently from the system-wide settings

Reproducible: Always

Steps to Reproduce:
1. Change the language for one application (eg Dolphin) via Help-> Change application language. Validate
2. Switch back the application language to system wide defaults by clicking on Help-> Change application language -> Defaults


Actual Results:  
Come back to Help-> Change application language : the only language set will be "American English"

Expected Results:  
There should be the same languages as defined in system settings -> ... -> locale -> languages
Comment 1 Alvise 2012-04-03 21:29:57 UTC
This bug appears also with 4.8.1
Comment 2 Christoph Feck 2013-07-06 00:51:07 UTC
Author: David Faure <faure@kde.org>
Date:   Fri Jun 7 12:47:47 2013 +0200

    KConfig: properly implement revertToDefault().
    
    Now it really removes the entry from the local file, instead of copying
    the value from the global file ("defaults" file, in internal terminology).
    This implements a long-standing TODO, which is now removed from the TODO file.
    
    And it doesn't mark the KConfig as dirty if there's no local entry,
    which makes closing kmail composer windows a LOT faster.
    
    REVIEW: 103168

http://commits.kde.org/kdelibs/0e934088c5647fe3d56f76fdb28d05c0fdf0f7a4