From: Janusz Dobrowolski Date: Sun, 22 Aug 2010 19:24:13 +0000 (+0000) Subject: Excluded default C locale frm listing X-Git-Tag: v2.4.2~19^2~671 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=073e179a03c69527d1a27ec5320de709fcd9fcff;p=fa-stable.git Excluded default C locale frm listing --- 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;