Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024

Legacy Cumulus 1 release 1.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 and Cumulus1 UI style Multilingual Websites

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by beteljuice »

Your Dutch lang. problem ...

Error loading language packlanglib/nl.json
Image
......................Imagine, what you will KNOW tomorrow !
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by BCJKiwi »

nav_menu $ns $ew
There are a few things that I don't understand.
the $ns and $ew are included in the new CUtagsT.php template file.
These vars allow for the translation of N S E W.

Did you update ALL the files in the new 2.1.1 release web folder?
There have been changes!

Translations
Gauges
Have you updated all the files in \lib\steelseries\scripts\ ??
The language.min.js file has been updated.
When I turn on the nl lang in ajaxCUmx.js all gauges translate OK.

Remember that the nl laguage has not been translated for most pages - unless you have done it yourself in which case you will need to update your file (and share it!) as there are a number of additions/changes to the all the /langlib/xx.json files.

There is translation for nl for the pages listed in the first post this thread including gauges.
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by beteljuice »

There are a few things that I don't understand.
the $ns and $ew are included in the new CUtagsT.php template file.
That wasn't his query ...

It was $latitude Vs $lat, and $longitude Vs $lon - but of course having the right files helps ;)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
billy
Posts: 255
Joined: Mon 30 Nov 2015 10:54 am
Weather Station: WLL / Davis VP2+
Operating System: RPi bullseye
Location: Gooseberry Hill, Western Australia

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by billy »

billy wrote: Thu 17 Sep 2020 8:44 am I also notice that the drop-down language selection box in the header does not appear when the VP2 Console menu item is selected
A little more investigation reveals this occurs if show_links = 2 (it's OK if set to 1). My html skills are poor so I've had no luck debugging this.
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by BCJKiwi »

Yes
Now know what is causing this but no solution yet.

The core issue is that the Cumulus version of bootstrap does not support dropdown menus within dropdown menus.

The code used to overcome this interferes with the language loader in the Davis Console pages.
Last edited by BCJKiwi on Wed 30 Sep 2020 2:52 am, edited 1 time in total.
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by Gregorean »

BCJKiwi wrote: Fri 18 Sep 2020 11:12 pm

Did you update ALL the files in the new 2.1.1 release web folder?
There have been changes!

Translations
Gauges
Have you updated all the files in \lib\steelseries\scripts\ ??
The language.min.js file has been updated.
When I turn on the nl lang in ajaxCUmx.js all gauges translate OK.
Remember that the nl laguage has not been translated for most pages - unless you have done it yourself in which case you will need to update your file (and share it!) as there are a number of additions/changes to the all the /langlib/xx.json files.
There is translation for nl for the pages listed in the first post this thread including gauges.
I know that. ;)

@BCJKiwi, as I wrote I did clean install so I erased UIMX 1.02 in its entirety, made a backup first and then installed UIMX 2.1.1.
I checked everything again and now I know what was wrong with TodayYesterday at the gauges and in todayyesterday.php.
With the old UIMX 1.02 there had to be 5 files in the web map.

Code: Select all

CUtagsMXT.php
realtimegaugesT.txt
realtimetagsMXT.php
realtime-xMXT.txt
recordsMXT.js
With UIMX 2.1.1 there must be 4 files income

Code: Select all

CUtagsT.php
realtimetagsT.php
realtime-xT.txt
recordsMXT.js
I assumed that I could just overwrite them, so that turned out not to be the case, they did get into the web folder, but the old ones with xxxxMXT.xxx stayed there.
Stupid of me that I overlooked that, the rest was just right, I changed all this and removed realtimegaugesT.txt, also in the Extra Webfiles everything was changed and there after a restart of CumulusMX everything now works again. :clap:

But as I wrote earlier, the interface does not yet want to switch properly to Dutch (current conditions) System forecast is now in English) the only option that does is Anual Data that comes back neatly in Dutch.
The text in the gauges also appears in Dutch.

When I give F12 I see an error:

Code: Select all

error (jquery-lang.js:215)
c (jquery-latest.min.js:2)
fireWith (jquery-latest.min.js:2)
l (jquery-latest.min.js:2)
(anonymous) (jquery-latest.min.js:2)
load (async)
send (jquery-latest.min.js:2)
ajax (jquery-latest.min.js:2)
Lang.loadPack (jquery-lang.js:179)
Lang.change (jquery-lang.js:506)
(anonymous) (jquery-lang.js:136)
e (jquery-latest.min.js:2)
t (jquery-latest.min.js:2)
setTimeout (async)
(anonymous) (jquery-latest.min.js:2)
c (jquery-latest.min.js:2)
add (jquery-latest.min.js:2)
(anonymous) (jquery-latest.min.js:2)
Deferred (jquery-latest.min.js:2)
then (jquery-latest.min.js:2)
k.fn.ready (jquery-latest.min.js:2)
k.fn.init (jquery-latest.min.js:2)
k (jquery-latest.min.js:2)
Lang.init (jquery-lang.js:129)
x.onreadystatechange (ajaxCUmx.js:1604)
XMLHttpRequest.send (async)
ajaxLoader (ajaxCUmx.js:1619)
(anonymous) (VM1084:1)
I would not know where to look for that now, so I would like some help with that. :(
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by beteljuice »

There are syntax errors in lines #577 #578 of nl.json (extra " in the last phrases)
Image
......................Imagine, what you will KNOW tomorrow !
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by BCJKiwi »

The realtimegaugesT.txt file is required in the MX web folder but is already supplied by the MX distribution so is not included in the UI template file set (but is for the C1 version).
So, DO NOT delete the MX /web/realtimegaugesT.txt file!

As stated before and as detailed in the first post this thread:-
There is no dutch translation for most of the site.
All the following languages have fully functional translations in Current Conditions, Betel Dayfile reader, and SS Gauges.
At this time, five languages are translated for the main pages
Dutch is NOT translated for the main pages. ;) ;)

If you turn on nl in ajaxCUmx.js then you will still get English everywhere except for current conditions, BetelDayfile reader and SSGauges which have their own independent translation systems.

So presumably your native language is Dutch so you could create the translations for the nl.json page.

There are instructions in the /langlib/README.txt file
Note that there is a separate set of instructions for the MX charts in the /js/README_charts.txt file.

If Gauges are not translating properly (feels like and Humidex and possible something else ?), please advise the correct translations and I will update the lang file for the Gauges.
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by BCJKiwi »

A fix for
links_multidropdn.html
and the effect it has on the
language selection / Davis console pages.

Applies to both MX and C1

.zip files in first post this thread updated.

For those who already use links_multidropdn.html and have made changes, then you may prefer to apply the following edit to the existing file.

Replace the top part of links_multidropdn.html with this:-

Code: Select all

<!-- silveracorn.nz MXUI website - links_multidropdn.html - Version MX_2.1.1 - 20-Sep-2020
// MX version 3086 -->
<script> /* required for dropdown within dropdown */
$(document).ready(function(){
  $('a.dropdown-toggle').click(function(dd){
	 $(this).closest('li').toggleClass('open');
	 dd.stopPropagation();
	 dd.preventDefault();
  });
});
</script>
		<li class="dropdown">
Thanks beteljuice :clap: :clap:
G6GUH
Posts: 87
Joined: Sat 23 Mar 2013 9:29 am
Weather Station: Davis VP2 Pro
Operating System: Windows 10
Location: Church Stretton, Shropshire

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by G6GUH »

Just done a complete new install and everything is fine except the Latitude and Longitude are not displayed. Time Zone is correct and Northern hemisphere is set up correctley. I think I hace missed setting it somewhere but cannot find where, it set up in cumulus.ini....Help !!! please

Pete
User avatar
PaulMy
Posts: 3826
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by PaulMy »

These are in CumulusMX Settings - Station setting - Location and after entering the Lat Lon make sure you Save.
Cumulus.ini will then be updated.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm
Image
G6GUH
Posts: 87
Joined: Sat 23 Mar 2013 9:29 am
Weather Station: Davis VP2 Pro
Operating System: Windows 10
Location: Church Stretton, Shropshire

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by G6GUH »

Thanks Paul, it is set up ok in settings, but does not show on the webpage. Reverting back to my backup of this morning taken before any changes all works ok, so Ithink I must have missed something in setting up the later up version today. Time for a coffee and have another look! I will get there in the end.

Pete
Dennisdg
Posts: 220
Joined: Tue 07 Feb 2012 9:42 am
Weather Station: Davis Vantage PRO2
Operating System: Windows 11 Pro 64 Bit
Location: Camberley

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by Dennisdg »

Pete

Silly question from me.

Have you cleared your browsers cache (browser history)?

Dennis G4GLP
Dennis

https://g4glp.co.uk

Davis Vantage PRO2
Win 11 Pro 64 bit
Gregorean
Posts: 82
Joined: Tue 12 May 2020 11:41 am
Weather Station: Davis Vantage Pro 2
Operating System: Raspberry Pi 4B
Location: Amersfoort, The Netherlands
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by Gregorean »

BCJKiwi wrote: Fri 18 Sep 2020 11:12 pm Did you update ALL the files in the new 2.1.1 release web folder?
There have been changes!
Translations
Gauges
Have you updated all the files in \lib\steelseries\scripts\ ??
The language.min.js file has been updated.
When I turn on the nl lang in ajaxCUmx.js all gauges translate OK.

Remember that the nl laguage has not been translated for most pages - unless you have done it yourself in which case you will need to update your file (and share it!) as there are a number of additions/changes to the all the /langlib/xx.json files.

There is translation for nl for the pages listed in the first post this thread including gauges.
Hello Brian BCJKiwi, I've done some homework on the nl.json translation, I've finished it now and will do it in the attachment.
At first my partial translation into Dutch had no effect, I always got an error, fortunately @beteljuice was kind enough to send me a repaired nl.json per PM and there was an error in line #807.
Now everything works fine and most of it is now in Dutch, yet there are still some items that can/need to be translated.
Now / Current Data / Wind / Beaufort Description / everything remains in English, even if I switch to another language as English, even though I have translated all Beaufort descriptions into Dutch.

Code: Select all

                "Wind":"Wind",
		"Latest":"Aktueel",
		"Average Speed":"Gemiddelde Snelheid",
		"Peak Gust":"Piek Vlaag",
		"Bearing":"Richting",
		"Average Bearing":"Gemiddelde Richting",
		"Beaufort Number":"Beaufort Nummer",
		"Beaufort Description":"Beaufort Beschrijving",
"_comment":"Calm already included in index.php",
		"Light air":"Zwak",
		"Light breeze":"Zwak", 
		"Gentle breeze":"Matig",
		"Moderate breeze":"Matig",
		"Fresh breeze":"Vrij krachtig",
		"Strong breeze":"Krachtig", 
		"Near gale":"Hard",
		"Gale":"Stormachtig",
		"Strong gale":"Storm",
		"Storm":"Zware Storm",
		"Violent storm":"Zeer Zware Storm",
		"Hurricane":"Orkaan",
The above comment ''Calm already included in index.php'' has not yet been translated into Dutch,
that must be:

Code: Select all

"Calm":"Windstil"
As I mentioned earlier, ''Calm'' is not being translated into other languages either it will remain in English. :oops:
Then you asked for the translation at ''Gauges/ Other Temps'', which must be in Dutch for

Code: Select all

 
"Feels like":"Voelt als"

And I would just leave Humidex as it is because there is no short description for it in Dutch, just like the word ''Help'' which is also an international term. ;)
"Wiki" writes:
The humidex (short for humidity index) is an index number used by Canadian meteorologists to describe how hot the weather feels to the average person, by combining the effect of heat and humidity. The term humidex was first coined in 1965. The humidex is a nominally dimensionless quantity (though generally recognized by the public as equivalent to the degree Celsius) based on the dew point.
Then in the case of ''Charts'', where I cannot translate the text in and under the maps, I don't know where the translation should be, I like to hear where it should be and then I will translate it as well. :)
The same with ''Extremes'', the mouse over text at the top is half English half Dutch. :(
Then I noticed a few things while translating, nowhere did I see lines referring to NNE or NE or E or SE or SSE, in the UK and NZ and other countries the wind sometimes comes from the East, or is it only in The Netherlands where the cold usually comes from. :lol:

But those are just details, I have a lot of respect for all the work you have done on this, it must have been quite a puzzle before everything worked out well, for me that wouldn't be anything I would have lost.
My compliments again, and good that you want to share all this with us. :clap:
I look forward to your response.

Greetings Sjaak.
You do not have the required permissions to view the files attached to this post.
Weather Station: Amersfoort-Nieuwland, The Netherlands.
http://element14.synology.me
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: CumulusMX and Cumulus1 UI style Multilingual Websites V 2.1.1

Post by BCJKiwi »

@ Gregorean
Thanks
Have updated the gauges \lib\steelseries\scripts\language.min.js

Please see PM
Post Reply