Added payment terms categories
[fa-stable.git] / admin / inst_lang.php
index 4b51795ab006dc1f0c503a8b19dd8d7071fc1c47..e1fbd0636270513e6011633853efbdb5d64eb535 100644 (file)
@@ -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 == 'en_GB') ||
-                       $_SESSION['get_text']->check_support($lang, $charset);
+               $support = $_SESSION['get_text']->check_support($lang, $charset);
 
                if (function_exists('gettext') && !$support && !get_post('DisplayAll')) continue;
 
@@ -94,7 +96,7 @@ function display_languages()
                if (function_exists('gettext') && check_value('DisplayAll'))
                        label_cell($support ? _("Yes") :_("No"));
 
-               if (!$available && ($lang != 'en_GB'))  // manually installed language
+               if (!$available && ($lang != 'C'))      // manually installed language
                        button_cell('Edit'.$id, _("Edit"), _('Edit non standard language configuration'), 
                                ICON_EDIT);
                elseif (check_pkg_upgrade($installed, $available)) // outdated or not installed language in repo
@@ -103,7 +105,7 @@ function display_languages()
                else
                        label_cell('');
 
-               if (($id !== null) && ($lang != $currlang) && ($lang != 'en_GB')) {
+               if (($id !== null) && ($lang != $currlang) && ($lang != 'C')) {
                        delete_button_cell('Delete'.$id, _('Delete'));
                        submit_js_confirm('Delete'.$id, 
                                sprintf(_("You are about to remove language \'%s\'.\nDo you want to continue ?"),