X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Finst_lang.php;h=69bd225f59d5588c26b39825d33c61b5d0aea717;hb=cdea200a3f1f1c3ebb65f9afae864bf8cde43c6a;hp=54183e090dae1a694ad2c9eccd5ddafeb860a70c;hpb=cef4b4de401511a4195b7b8ad04b47bec1895b20;p=fa-stable.git diff --git a/admin/inst_lang.php b/admin/inst_lang.php index 54183e09..69bd225f 100644 --- a/admin/inst_lang.php +++ b/admin/inst_lang.php @@ -31,7 +31,6 @@ simple_page_mode(true); function display_languages() { global $table_style, $installed_languages, $dflt_lang; - global $repository, $FA_repo_version; $th = array(_("Language"), _("Name"), _("Encoding"), _("Right To Left"), _("Installed"), _("Available"), _("Default"), "", ""); @@ -73,7 +72,7 @@ function display_languages() else alt_table_row_color($k); - $support = ($lang == 'en_GB') || + $support = ($lang == 'C') || $_SESSION['get_text']->check_support($lang, $charset); if (function_exists('gettext') && !$support && !get_post('DisplayAll')) continue; @@ -95,7 +94,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 @@ -104,7 +103,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 ?"), @@ -205,7 +204,7 @@ function display_language_edit($selected_id) $_POST['code'] = $lang['code']; $_POST['name'] = $lang['name']; $_POST['encoding'] = $lang['encoding']; - if (isset($conn['rtl'])) + if (isset($lang['rtl']) && $lang['rtl'] === true) $_POST['rtl'] = $lang['rtl']; else $_POST['rtl'] = false;