From: stronk7 Date: Tue, 11 Apr 2006 07:55:26 +0000 (+0000) Subject: Strip the "_utf8" suffix in one more place. Thanks Mina! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8e6184dc8ef1a06e6a899b23cbff356631f3d2df;p=moodle.git Strip the "_utf8" suffix in one more place. Thanks Mina! (http://moodle.org/bugs/bug.php?op=show&bugid=4924) --- diff --git a/admin/langimport.php b/admin/langimport.php index 0cec761d58..078067dfbd 100755 --- a/admin/langimport.php +++ b/admin/langimport.php @@ -317,8 +317,13 @@ foreach ($availablelangs as $alang) { if (trim($alang[0]) != "en_utf8") { if ($remote){ + if (substr($alang[0], -5) == '_utf8') { //Remove the _utf8 suffix from the lang to show + $shortlang = substr($alang[0], 0, -5); + } else { + $shortlang = $alang[0]; + } if (!is_installed_lang($alang[0], $alang[1])){ //if not already installed - echo ''; + echo ''; } } else { //print list in local format, and instruction to install echo ''.$alang[2].''.get_string('download','admin').'';