MainUI language (and OH3)

My language is set to 'Nederlands/België" (Dutch/Belgium). And some things in OH3 settings are translated, some not. No issue, I use it for some months, without noticing it before. :blush:

I just noticed because I’m migrating my HABpanel to mainUI. And the date wasn’t translated? I’ve got a friday instead of vrijdag for an astro item.

DateTime Sunset_Time "Zonsondergang  [%1$tH:%1$tM]"	<sunset>	 channel="astro:sun:local:set#start" }

Is there a way to translate the words on the mainUI to the choosen language?
Or is there something else wrong with my installation/settings?

Please set the system language to something like nl_NL.utf8

sudo dpkg-reconfigure locales

enable the correct locales, ok, select the correct locales, ok.

locale

should state this:

LANG=nl_NL.UTF-8
LANGUAGE=nl_NL.UTF-8
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=nl_NL.UTF-8

If all but LANG ist set to another locale, go to /etc/default/locale an set at least

LANG=nl_NL.UTF-8
LANGUAGE=nl_NL.UTF-8
LC_ALL=nl_NL.UTF-8
LC_CTYPE=nl_NL.UTF-8

reboot.

Now, if locale still states wrong locales, maybe the locales for your user is set wrong. Then take a look at .bashrc and .profile for the user (please be aware that openHAB is executed by user openhab)

I already did a reconfigure, but it didn’t work. :blush:
So I did your steps once more, and noticed I skipped the reboot before, so now…

Works great! Thank you very much!!!