Hi all.
i’m trying to add translations to a kwin script. I did the following:
- create a locale dir and subdirs inside contents/ :
contents/locale/$lang/LC_MESSAGES/$myscriptname.mo - Added the X-KWin-Config-TranslationDomain key to metadata.json:
“X-KWin-Config-TranslationDomain”:“myscriptname” - Inside contents/locale/$lang/LC_MESSAGES I’ve created a bunch of *mo files with all the combinations that I’ve been capable:
myscriptname.mo
kwin_scripts_myscriptname.mo
kwin_scripts_myscriptnameConfig.mo
plasma_applet_myscriptname.mo
… and so on.
I know plasma_applet_ should not be the case but just for try…
I’ve been looking for examples but there aren’t, at least I couldn’t find any, and it seems the scripts translation mechanism is not documented at all.
I’ve also tried using a metadata.desktop instead of metadata.json but nothing seems to work.
Any hint?
thanks.