Re: CumulusMX and Cumulus1 UI style Multilingual Websites
Posted: Fri 04 Sep 2020 10:38 am
The problem is in the script ajaxCUmx.js - this calls changeLang() after the buttons have been removed during the SS code initialisation.
changeLang() calls SetLang() in gauges.js, that queries the buttons values to see which updated language strings to use. As the buttons no longer exist they default to false which is the indoor values.
In order to change the language after an SS initialisation that involves removing the indoor values the SS code would have to be changed to test the presence of the buttons.
I have updated the SS code to 2.7.5 to cope with this situation.
changeLang() calls SetLang() in gauges.js, that queries the buttons values to see which updated language strings to use. As the buttons no longer exist they default to false which is the indoor values.
In order to change the language after an SS initialisation that involves removing the indoor values the SS code would have to be changed to test the presence of the buttons.
I have updated the SS code to 2.7.5 to cope with this situation.