[scripting] Support loading translations for UI loaded configs

Review Request #118585 - Created June 6, 2014 and submitted - Latest diff uploaded

Information
Martin Flöser
kwin
master
Reviewers
kwin
[scripting] Support loading translations for UI loaded configs

Scripts and scripted effects can provide a ui file which gets loaded at
runtime. Obviously such a ui file is not translated. This introduces
quite a hack to load the translated strings.

In the metadata.desktop file the scripted component can provide a key
X-KWin-Config-TranslationDomain. The genericscriptedconfig tries to
locate the metadata.desktop file and reads this entry. If it is present
we extract all string properties of the loaded UI and pass them through
ki18nd.

[kcmkwin/deco] Support loading translations for UI loaded configs

Qml based Aurorae themes can provided a ui file which gets loaded at
runtime. Obviously such a ui file is not translated. This introduces
quite a hack to load the translated strings.

First of all a new property is added to the service file for
specifying the translation domain to be used for the config UI. If
such a translation domain is set we extract all string properties of
the loaded UI and pass them through ki18nd.
* Plastik has translated config interface
* Breeze (not adjusted) doesn't have translated interface
* Login effect config has translated interface
* Translucency effect config has translated interface
Loading...