private static function displayMenuLang(Module_PoolTool $module) { switch (GWF_Language::getCurrentISO()) { case 'de': $country = GWF_Country::getByTLD('gb'); $to = 'en'; break; case 'en': default: $country = GWF_Country::getByTLD('de'); $to = 'de'; break; } $href = sprintf('http://%s.%s%s', $to, GWF_DOMAIN, htmlspecialchars($_SERVER['REQUEST_URI'])); return sprintf('<a href="%s">%s</a>', $href, $country->displayFlag()); }