From 073e179a03c69527d1a27ec5320de709fcd9fcff Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 22 Aug 2010 19:24:13 +0000 Subject: [PATCH] Excluded default C locale frm listing --- admin/inst_lang.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/inst_lang.php b/admin/inst_lang.php index 69bd225f..e1fbd063 100644 --- a/admin/inst_lang.php +++ b/admin/inst_lang.php @@ -59,6 +59,9 @@ function display_languages() $langs = get_languages_list(); foreach ($langs as $pkg_name => $lng) { + if ($lng == 'C') // skip default locale (aka no translation) + continue; + $lang = $lng['code']; $lang_name = $lng['name']; $charset = $lng['encoding']; @@ -72,8 +75,7 @@ function display_languages() else alt_table_row_color($k); - $support = ($lang == 'C') || - $_SESSION['get_text']->check_support($lang, $charset); + $support = $_SESSION['get_text']->check_support($lang, $charset); if (function_exists('gettext') && !$support && !get_post('DisplayAll')) continue; -- 2.30.2