Guimarães - One planet city
With the ambition of becoming a one-planet city, Guimarães needed a way to measure how many planets-worth of resources the city and its residents are consuming. This would allow for monitoring progress towards the shared vision. In collaboration with the Global Footprint Network and the University of Aveiro, the city introduced two types of ecological footprint interfaces: A research-based municipal ecological footprint (2018) and an individual ecological footprint calculator (2021).
$translatableResources = [3, 4, 5, 6];
if (in_array($ResourceType, $translatableResources)) {
$langUser = strtoupper($browserLang);
if (!isset($arrPostLang[$langUser]['Target'])) {
$langUser = 'EN';
}
// on regarde si la langue source est differente de la langue de l'utilisateur ou si on a pas detecte la langue
if (!isset($media['srcLang']) || $media['srcLang'] != $langUser) {
//si la langue de l'utilisateur (browserLang) est disponible dans le tableau
if (isset($arrPostLang[$langUser]['Target'])) {
$translate = $arrPostLang[$langUser]['Target'];
?>
}
}
}
?>