Page 1 of 1

Translation in Python Plugins

Posted: Wednesday 21 August 2019 19:00
by joba1
Hi,

I need to translate some user visible stuff (mainly sensor types like "Temperature",...) in my python plugin and could not find a hint in the wiki on how to do this. (https://www.domoticz.com/wiki/Developin ... hon_plugin)

Any ideas? :idea: Most of that is probably already used and translated in domoticz, so making use of that would be optimal.

Re: Translation in Python Plugins

Posted: Wednesday 21 August 2019 19:12
by Xorfor
You can take a look at: https://github.com/Xorfor/Domoticz-API/wiki/Translation

This method is not documented, but I use it for my Python Domoticz-API. This part of my API is not very good tested, but as you can see in the test script, it is working. At least you get some ideas to implement this in your plugin.