Comments (8)
Hi,
the german messages are hardcoded in the sourcefiles since it is my native language. I asked how a plugin can determine the language main domoticz uses, but did not get an answer. So for now, all I could do are ugly worksrounds. One of them is ask you to change the handful of words in your copy and send a pull request so others can find it.
from tasmoticz.
Cool... NP! I can live with that for now... If I have some more time on my hands again, I will see what I can do for English (and detecting language?).
from tasmoticz.
Is there a way around to do all coding in english please? I have ALOT tasmota devices upcoming, i do not like to rename everything.
This plugin is working perfectly anyway, great job.
Thanks!!
from tasmoticz.
Sorry, I don’t understand.
Can you give an example of what you do, what you get and what you‘d like to get instead?
from tasmoticz.
Sure,
All names of tasmota devices with this plugin are in German, i want to have it in english please 🙂
from tasmoticz.
from tasmoticz.
The English would be "Voltage", "Current", "Total", "Yesterday", "Today", "Power" and "Apparent Power" (The unit of the latter should also be VA rather than Watt, but that is a different discussion altogether)
from tasmoticz.
So it is basically the same answer as before: when I wrote the plugin I have not found a way to reliably detect the language a user wants and then how this usually is done in python. So for now there is no good mechanism for this :(
Currently I can only recommend you change the names (and units) before the devices are created:
https://github.com/joba-1/Tasmoticz/blob/master/tasmota.py#L224
Probably I should revisit that, now that the plugin seems to have more than one user. Do you have an idea how to detect a users browser/domoticz language from within a domoticz plugin and how to do proper internationalization in python?
from tasmoticz.
Related Issues (20)
- errors on new version of tasmota HOT 10
- Cant switch on/off a offline device HOT 2
- Athom device incorrectly handled HOT 1
- Better handling of humidity sensors HOT 7
- Domoticz Switch State not updated after switching HOT 8
- Error: Tazmoticz: AttributeError: type object 'Collection' has no attribute 'Mapping' with Python 3.10.4 HOT 5
- Deletion of some devices when used with a damaged Domoticz installation HOT 8
- Support for Tasmota 12.1 and Tasmota Discovery / hatasmota HOT 5
- Error message every 12hrs but everything works HOT 7
- Pb Maj Domoticz 2022.2/2023.1 HOT 14
- More than 255 devices error -> filtering ? HOT 10
- Create device for LWT messages. HOT 4
- Incorrect electricity data being sent to Domoticz. HOT 2
- I am asking for two separate blocks in domoticz HOT 23
- Another malfunction related to the energy indicator. HOT 3
- Tasmota 13.0.0 and PZEM 004 HOT 2
- Athom Tasmota RGB(WW) LED Strip Controller HOT 2
- Can I make a DevkitV1 esp32 working with tasmoticz HOT 4
- typeDb contains keys in different languages HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tasmoticz.