Translation in Python Plugins

Python and python framework

Moderator: leecollings

Post Reply
User avatar
joba1
Posts: 19
Joined: Saturday 03 March 2018 16:39
Target OS: Linux
Domoticz version: V2024.7
Location: DE
Contact:

Translation in Python Plugins

Post 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.
Xorfor

Re: Translation in Python Plugins

Post 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.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest