I installed the latest common.php and still the same results. When you select Spanish the dropdown selection stays on English and not everything gets translated. Only the forecasts get translated. The header and current conditions do not get translated.
You can test it here:
https://ajijicweather.com/wxindexI tried some coding and got it to work with these additions in common.php. The coding might not be perfect, but it does work.
# New language cookie code
$cookie_name = 'AjijicLang';
if(isset($_COOKIE[$cookie_name])) {
$SITE[lang] = $_COOKIE[$cookie_name];
}
# End New Cookie
--------------------------------------
# Set the language cookie to restore the language setting next session
$cookie_name = 'AjijicLang';
$cookie_value = $lang;
setcookie($cookie_name, $cookie_value, time() + (86400 * 180), '/'); // 180 days expire
# end set language cookie
I attached my common.php as a txt file. Just do a search for cookie in the code. The common.php that I modified is currently not installed on the website. Your latest one is.