I have been using Domoticz for quite a few years, but I am new here to the forum.
In my dzvents script I get the output of the requested full monthname in English, while I expected it in Dutch.
Before making the translation myself, I look for the cause of this. I hope someone can help me.
The documentation states: "mmmm -- full monthname(e.g September) language depends on locale."
The language settings in Domoticz and in OS are Dutch.
The command used to get the daynumber and full monthname of tomorrow gives me "15 March" instead of "15 Maart"
Code: Select all
domoticz.time.dateToDate(domoticz.time.rawDate, 'yyyy-mm-dd', 'dd mmmm', 86400 )
Environment:
I am running Domoticz under Ubuntu 22.04 (with the language setting Dutch) as a virtual machine on Synology DS718+.
See the locale setting I get in the Ubuntu terminal:
Code: Select all
Terminalprompt$ locale
LANG=nl_NL.UTF-8
LANGUAGE=
LC_CTYPE="nl_NL.UTF-8"
LC_NUMERIC="nl_NL.UTF-8"
LC_TIME="nl_NL.UTF-8"
LC_COLLATE="nl_NL.UTF-8"
LC_MONETARY="nl_NL.UTF-8"
LC_MESSAGES="nl_NL.UTF-8"
LC_PAPER="nl_NL.UTF-8"
LC_NAME="nl_NL.UTF-8"
LC_ADDRESS="nl_NL.UTF-8"
LC_TELEPHONE="nl_NL.UTF-8"
LC_MEASUREMENT="nl_NL.UTF-8"
LC_IDENTIFICATION="nl_NL.UTF-8"
LC_ALL=
Code: Select all
Terminalprompt$ date +%B
maart