Page 1 of 1

CumulusMX - Names of date etc

Posted: Thu 10 Mar 2016 9:44 am
by Vossenberg
Dear Weather Enthusiasts!

I have successfully converted from Cumulus 1.9 on a Windows Server to a RaspberryPI.
With some help from the great people on the forum logically since in *nix I am a beginner.

Now I have a question regarding the website date tags used.
I saw that the full page was in English, but by date tags in Dutch.
So I found out how to continue using the same locale on the Raspberry and change the language of the OS messages as well as the time messages to English. Unfortunately this does not change the website data.

What can I do to translate the date tags back to English?

Thank you in advance for any tip or recommendation!

Pascal

Re: CumulusMX - Names of date etc

Posted: Thu 10 Mar 2016 10:15 am
by steve
The month names are provided by Mono, based on the locale that Cumulus is running under. So if you run with a Dutch locale, you will get Dutch month names. The only way that I am aware of to change this is to create a 'custom' locale, but I think someone tried that and wasn't too successful.

Re: CumulusMX - Names of date etc

Posted: Thu 10 Mar 2016 11:15 am
by Vossenberg
I have changed the locale on the Raspberry to use the Dutch locale.
When I try the command locale LC_TIME it shows all names of dates in English.

I have changed the locale configuration to the following:

/etc/default/locale
LANG=nl_NL.UTF-8
LC_MESSAGE=en_GB.UTF-8
LC_TIME=en_GB.UTF-8

Where does Mono get the dates from?

Re: CumulusMX - Names of date etc

Posted: Thu 10 Mar 2016 11:49 am
by steve
I believe it has the names built in, and it uses the locale to determine which set of names to use - in your case nl_NL.UTF-8

Re: CumulusMX - Names of date etc

Posted: Thu 10 Mar 2016 12:34 pm
by Vossenberg
Thanks for your quick reply!

I tried the -lang-en_GB tag as well. Then it translates the days, however it complains about the startdate tag in Cumulus.ini.
Unfortunately I have got no clue in which format I have to enter that in the Cumulus.ini.

At the moment it shows:
StartDate=woensdag 27 December 2012

Do I need to "translate" this or use: 27-12-2012 or even 27/12/2012

Re: CumulusMX - Names of date etc

Posted: Thu 10 Mar 2016 12:56 pm
by steve
27/12/2012 should work.

Re: CumulusMX - Names of date etc

Posted: Thu 10 Mar 2016 1:08 pm
by Vossenberg
Thanks for the response, it works perfectly. Only now using the . decimal instead of , (Which is part of the UK locale)
But everything in English looks much better.

Configuration of languages and localisation/locales is always something complicated unfortunately.