[scripting] Support loading translations for UI loaded configs

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

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

Issues

  • 0
  • 4
  • 0
  • 4
Description From Last Updated
Aurélien Gâteau
Aurélien Gâteau
Aurélien Gâteau
Aurélien Gâteau
Commit Hook
This review has been submitted with commit 0c4aaaf4ade4a24099facd1f69b48f62d9c69ac6 by Martin Gräßlin to branch master.
Martin Flöser
Review request changed

Status: Closed (submitted)

Loading...