$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'];
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;
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
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 ?"),