Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.28.5 (build 3282) - 23 February 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

CumulusMX - Names of date etc

General news concerning announcements of new releases, forum outages etc.
Post Reply
Vossenberg
Posts: 72
Joined: Sun 30 Dec 2012 8:23 am
Weather Station: Davis Vantage Pro2
Operating System: Raspbian Bullseye
Location: Hoef en Haag, Netherlands

CumulusMX - Names of date etc

Post 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
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: CumulusMX - Names of date etc

Post 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.
Steve
Vossenberg
Posts: 72
Joined: Sun 30 Dec 2012 8:23 am
Weather Station: Davis Vantage Pro2
Operating System: Raspbian Bullseye
Location: Hoef en Haag, Netherlands

Re: CumulusMX - Names of date etc

Post 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?
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: CumulusMX - Names of date etc

Post 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
Steve
Vossenberg
Posts: 72
Joined: Sun 30 Dec 2012 8:23 am
Weather Station: Davis Vantage Pro2
Operating System: Raspbian Bullseye
Location: Hoef en Haag, Netherlands

Re: CumulusMX - Names of date etc

Post 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
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: CumulusMX - Names of date etc

Post by steve »

27/12/2012 should work.
Steve
Vossenberg
Posts: 72
Joined: Sun 30 Dec 2012 8:23 am
Weather Station: Davis Vantage Pro2
Operating System: Raspbian Bullseye
Location: Hoef en Haag, Netherlands

Re: CumulusMX - Names of date etc

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