From 555a51147a945ac0d463e18339f3688f497915f6 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 7 Aug 2007 10:38:36 +0000 Subject: [PATCH] Added Englisch language name if language is shown in in its own language git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6985 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/functions.inc b/include/functions.inc index 9b3e05498..1b1e03b01 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -2534,7 +2534,7 @@ function get_languages($languages_in_own_language = FALSE,$strip_region_tag = FA "fr_FR" => "French", "it_IT" => "Italian", "es_ES" => "Spanish", - "en_EN" => "English", + "en_US" => "English", "nl_NL" => "Dutch", "pl_PL" => "Polish", "sv_SE" => "Swedish", @@ -2547,11 +2547,10 @@ function get_languages($languages_in_own_language = FALSE,$strip_region_tag = FA foreach($tmp as $key => $name){ $lang = $key.".UTF-8"; setlocale(LC_ALL, $lang); - if($strip_region_tag){ - $ret[preg_replace("/^([^_]*).*$/","\\1",$key)] = _($name); + $ret[preg_replace("/^([^_]*).*$/","\\1",$key)] = _($name)." (".$name.")"; }else{ - $ret[$key] = _($name); + $ret[$key] = _($name)."  (".$name.")"; } } setlocale(LC_ALL, $old_lang); -- 2.30.2