Revision 0c4aaaf...
Go back to digest for 8th June 2014Features in User Interface
Martin Gräßlin committed changes in [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.
REVIEW: 118585
File Changes
Modified 5 files
- scripting/CMakeLists.txt
- scripting/genericscriptedconfig.cpp
- scripting/genericscriptedconfig.h
- effects/login/package/metadata.desktop
- effects/translucency/package/metadata.desktop
5 files changed in total