CU-HWS
CU-HWS copied to clipboard
Language switching and translations
The current CU version does not switch DarkSky language automatically.
Some blocks have non-translated text.
This issue is opened to provide tracking as the fixes are worked up.
Ok, this is more an enhancement project than a 'bug'... changing classification.
The #28 merge provided automatic language switching for DarkSky forecasts (and conditions display for DS) when the menu language flags are clicked. Note: the first load of the main page after that may have no DS forecast visible.. reloading the page suffices to get the forecast. This is due to the way the template handles language switching so a jsondata/wuupdate.php is not immediately requested when the language is first selected. Maybe I can fix this.. maybe not. Leaving this enhancement thread open as further language-enabled updates will follow for other parts of the template set.
I've opened a new branch to begin work on this major effort.
lang.pt.php.zip I have a portuguese translation. How can I include it in the code? Thanks in Advance.
Jorge Mota
Thanks Jorge, I've downloaded your contribution and will merge with the distribution. Best regards, Ken
Jorge, I've merged the update (with the associated changes) into the master distribution. Thanks for doing the translation for Portuguese. Best regards, Ken