CU-HWS icon indicating copy to clipboard operation
CU-HWS copied to clipboard

Language switching and translations

Open ktrue opened this issue 6 years ago • 6 comments

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.

ktrue avatar Jan 11 '19 17:01 ktrue

Ok, this is more an enhancement project than a 'bug'... changing classification.

ktrue avatar Jan 28 '19 00:01 ktrue

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.

ktrue avatar Jan 31 '19 23:01 ktrue

I've opened a new branch to begin work on this major effort.

ktrue avatar Mar 21 '19 18:03 ktrue

lang.pt.php.zip I have a portuguese translation. How can I include it in the code? Thanks in Advance.

Jorge Mota

jomimota avatar Feb 23 '20 21:02 jomimota

Thanks Jorge, I've downloaded your contribution and will merge with the distribution. Best regards, Ken

ktrue avatar Feb 24 '20 01:02 ktrue

Jorge, I've merged the update (with the associated changes) into the master distribution. Thanks for doing the translation for Portuguese. Best regards, Ken

ktrue avatar Feb 24 '20 02:02 ktrue