MDL-21693 hiding legacy languages with _utf8 in our UI
authorPetr Skoda <skodak@moodle.org>
Sun, 11 Apr 2010 14:37:12 +0000 (14:37 +0000)
committerPetr Skoda <skodak@moodle.org>
Sun, 11 Apr 2010 14:37:12 +0000 (14:37 +0000)
lib/moodlelib.php

index 894b0b5..a533f00 100644 (file)
@@ -5964,6 +5964,9 @@ class amos_string_manager implements string_manager {
                 if (strstr($lang, '_local') !== false) {
                     continue;
                 }
+                if (strstr($lang, '_utf8') !== false) {
+                    continue;
+                }
                 if ($lang !== 'en' and !file_exists("$this->otherroot/$lang/langconfig.php")) {
                     // some broken or missing lang - can not swith to it anyway
                     continue;
@@ -5988,6 +5991,9 @@ class amos_string_manager implements string_manager {
                 if (strstr($lang, '_local') !== false) {
                     continue;
                 }
+                if (strstr($lang, '_utf8') !== false) {
+                    continue;
+                }
                 $string = $this->load_component_strings('langconfig', $lang);
                 if (!empty($string['thislanguage'])) {
                     $languages[$lang] = $string['thislanguage'].' ('. $lang .')';