(monthly)record.htm - at, on, to
Posted: Thu 09 May 2024 2:16 pm
by Dador
The monthlyrecord and record files contain tags that generate the English at, on, to. I admit that these are probably the only phrases that cannot (or only I cannot) translate into my own language.
Would it be possible to add, for example, the possibility of translating them to strings.ini?
Re: (monthly)record.htm - at, on, to
Posted: Thu 09 May 2024 7:36 pm
by SamiS
Are we talking about the website or the local dashboard?
Regarding the website, I think it would mean quite a lot of modifications to make it possible to sync those from strings.ini to website. On the other hand it is quite easy to edit the text in the website html files before uploading them to your webserver. So in my opinion it might not be worth the effort. But let’s wait what Mark says, it could be a trivial change for him.
In the local dashboard it probably would be easier to implement.
Re: (monthly)record.htm - at, on, to
Posted: Thu 09 May 2024 7:43 pm
by Dador
These words are generated by cumulus directly in the web tag. This cannot be changed in the html code, as in other pages (today, yesterday, etc.).
It seems that the simplest solution would be the ability to translate in string.ini. At least I think so.
Re: (monthly)record.htm - at, on, to
Posted: Thu 09 May 2024 9:46 pm
by SamiS
Ah, sorry, I was referring to thismonth.htm and thisyear.htm that can be translated. But indeed record.htm and monthlyrecord.htm do have a different structure, so they need to be handled differently.
Re: (monthly)record.htm - at, on, to
Posted: Fri 10 May 2024 11:01 am
by mcrossley
Let's be clear, you CAN change the words on the web site (via websitedataT.json), but you CANNOT change them on the dashboard.
Added to the ToDo list to allow localisation of the default text.
Re: (monthly)record.htm - at, on, to
Posted: Fri 10 May 2024 6:54 pm
by Dador
I changed the tags in the websitedata.json file according to the above instructions.
Interestingly, only the <#ByMonthWindRunHT> tag does not work. When I enter timestamps there, the entire file crashes. MXdiags reports nothing.
So I have one "English" tag left.
Re: (monthly)record.htm - at, on, to
Posted: Fri 10 May 2024 7:30 pm
by Weerhaas
Good evening.
For me it works.
"highgust":["18,8","18,3","15,2","13,9","10,7","---","---","---","---","---","---","---"],
"highgustT":["20:52 / 23 januari 2024","15:39 / 06 februari 2024","11:00 / 15 maart 2024","18:25 / 03 april 2024","19:55 / 03 mei 2024","----","----","----","----","----","----","----"],
"highwind":["6,9","5,5","4,9","5,0","3,3","---","---","---","---","---","---","---"],
"highwindT":["00:04 / 03 januari 2024","21:16 / 22 februari 2024","13:11 / 15 maart 2024","18:36 / 03 april 2024","18:29 / 03 mei 2024","----","----","----","----","----","----","----"],
"highwindrun":["282,9","293,7","191,2","178,8","109,0","---","---","---","---","---","---","---"],
"highwindrunT":["op 22 januari 2024","op 06 februari 2024","op 15 maart 2024","op 09 april 2024","op 03 mei 2024","----","----","----","----","----","----","----"],
"highpress":["1035,1","1031,2","1025,6","1030,2","1028,6","---","---","---","---","---","---","---"],
"highpressT":["11:59 / 11 januari 2024","20:11 / 01 februari 2024","01:23 / 07 maart 2024","23:03 / 11 april 2024","23:57 / 08 mei 2024","----","----","----","----","----","----","----"],
"lowpress":["977,1","970,4","980,4","991,2","997,5","---","---","---","---","---","---","---"],
"lowpressT":["20:32 / 02 januari 2024","18:27 / 22 februari 2024","07:00 / 28 maart 2024","03:13 / 01 april 2024","16:22 / 02 mei 2024","----","----","----","----","----","----","----"]
Re: (monthly)record.htm - at, on, to
Posted: Fri 10 May 2024 8:24 pm
by Dador
Yes, it worked.
I copied the code from your file and it worked. I've tried various combinations before and only this tag didn't work.
I don't really understand why this was the case
Anyway, thanks again for the tip

Re: (monthly)record.htm - at, on, to
Posted: Sat 11 May 2024 6:38 am
by Weerhaas
Only a few words you have to change in your own language.
Words like "op" , and "tot".
And of course don't replace websiteT.json ,when there is a new update.