From 5ee643bbbbbc7a505ad1a906c3e4acd3e7377d98 Mon Sep 17 00:00:00 2001 From: Nettika Date: Tue, 22 Apr 2025 00:02:58 -0700 Subject: [PATCH] Remove non-English language support --- browse_foreigners.php | 5 +- index.php | 5 +- libraries/auth/cookie.auth.lib.php | 7 - libraries/config.default.php | 6 +- libraries/header_meta_style.inc.php | 2 +- libraries/header_printview.inc.php | 2 +- main.php | 8 - navigation.php | 5 +- pmd_general.php | 2 +- po/.gitignore | 3 - po/af.po | 9962 -------------------- po/ar.po | 9791 ------------------- po/az.po | 10201 -------------------- po/be.po | 10676 --------------------- po/be@latin.po | 10582 --------------------- po/bg.po | 9499 ------------------- po/bn.po | 9958 -------------------- po/br.po | 9628 ------------------- po/bs.po | 10193 -------------------- po/ca.po | 10081 -------------------- po/cs.po | 10082 -------------------- po/cy.po | 9744 ------------------- po/da.po | 9994 -------------------- po/de.po | 10124 -------------------- po/el.po | 10165 -------------------- po/en_GB.po | 9957 -------------------- po/es.po | 10192 -------------------- po/et.po | 10294 -------------------- po/eu.po | 10044 -------------------- po/fa.po | 9841 ------------------- po/fi.po | 10403 -------------------- po/fr.po | 10113 -------------------- po/gl.po | 10745 --------------------- po/he.po | 10083 -------------------- po/hi.po | 9497 ------------------- po/hr.po | 10371 -------------------- po/hu.po | 10151 -------------------- po/id.po | 9607 ------------------- po/it.po | 10122 -------------------- po/ja.po | 10191 -------------------- po/ka.po | 10559 --------------------- po/ko.po | 9730 ------------------- po/lt.po | 9811 ------------------- po/lv.po | 10252 -------------------- po/mk.po | 10302 -------------------- po/ml.po | 9288 ------------------ po/mn.po | 10248 -------------------- po/ms.po | 9996 -------------------- po/nb.po | 10145 -------------------- po/nl.po | 10117 -------------------- po/phpmyadmin.pot | 9290 ------------------ po/pl.po | 10109 -------------------- po/pt.po | 9804 ------------------- po/pt_BR.po | 10024 -------------------- po/ro.po | 10289 -------------------- po/ru.po | 10103 -------------------- po/si.po | 9617 ------------------- po/sk.po | 9989 -------------------- po/sl.po | 10006 -------------------- po/sq.po | 10056 -------------------- po/sr.po | 10161 -------------------- po/sr@latin.po | 10165 -------------------- po/sv.po | 9981 -------------------- po/ta.po | 9366 ------------------ po/te.po | 9489 ------------------- po/th.po | 9969 -------------------- po/tr.po | 10029 -------------------- po/tt.po | 10106 -------------------- po/ug.po | 9567 ------------------- po/uk.po | 9671 ------------------- po/ur.po | 9518 ------------------- po/uz.po | 10902 --------------------- po/uz@latin.po | 10967 ---------------------- po/zh_CN.po | 9431 ------------------- po/zh_TW.po | 9587 ------------------- setup/frames/index.inc.php | 20 - setup/styles.css | 8 - themes/original/css/theme_right.css.php | 4 - 78 files changed, 10 insertions(+), 651002 deletions(-) delete mode 100644 po/.gitignore delete mode 100644 po/af.po delete mode 100644 po/ar.po delete mode 100644 po/az.po delete mode 100644 po/be.po delete mode 100644 po/be@latin.po delete mode 100644 po/bg.po delete mode 100644 po/bn.po delete mode 100644 po/br.po delete mode 100644 po/bs.po delete mode 100644 po/ca.po delete mode 100644 po/cs.po delete mode 100644 po/cy.po delete mode 100644 po/da.po delete mode 100644 po/de.po delete mode 100644 po/el.po delete mode 100644 po/en_GB.po delete mode 100644 po/es.po delete mode 100644 po/et.po delete mode 100644 po/eu.po delete mode 100644 po/fa.po delete mode 100644 po/fi.po delete mode 100644 po/fr.po delete mode 100644 po/gl.po delete mode 100644 po/he.po delete mode 100644 po/hi.po delete mode 100644 po/hr.po delete mode 100644 po/hu.po delete mode 100644 po/id.po delete mode 100644 po/it.po delete mode 100644 po/ja.po delete mode 100644 po/ka.po delete mode 100644 po/ko.po delete mode 100644 po/lt.po delete mode 100644 po/lv.po delete mode 100644 po/mk.po delete mode 100644 po/ml.po delete mode 100644 po/mn.po delete mode 100644 po/ms.po delete mode 100644 po/nb.po delete mode 100644 po/nl.po delete mode 100644 po/phpmyadmin.pot delete mode 100644 po/pl.po delete mode 100644 po/pt.po delete mode 100644 po/pt_BR.po delete mode 100644 po/ro.po delete mode 100644 po/ru.po delete mode 100644 po/si.po delete mode 100644 po/sk.po delete mode 100644 po/sl.po delete mode 100644 po/sq.po delete mode 100644 po/sr.po delete mode 100644 po/sr@latin.po delete mode 100644 po/sv.po delete mode 100644 po/ta.po delete mode 100644 po/te.po delete mode 100644 po/th.po delete mode 100644 po/tr.po delete mode 100644 po/tt.po delete mode 100644 po/ug.po delete mode 100644 po/uk.po delete mode 100644 po/ur.po delete mode 100644 po/uz.po delete mode 100644 po/uz@latin.po delete mode 100644 po/zh_CN.po delete mode 100644 po/zh_TW.po diff --git a/browse_foreigners.php b/browse_foreigners.php index 5e55f81d8..0b389da3b 100644 --- a/browse_foreigners.php +++ b/browse_foreigners.php @@ -73,10 +73,7 @@ if (is_array($foreignData['disp_row'])) { } ?> - + phpMyAdmin diff --git a/index.php b/index.php index b4a12029c..840ccf57c 100644 --- a/index.php +++ b/index.php @@ -92,10 +92,7 @@ $lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][1]; include ('./libraries/header_http.inc.php'); ?> - + diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index 93b567a56..0738e0344 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -213,13 +213,6 @@ if (top != self) { PMA_Message::rawError($conn_error)->display(); } - // Displays the languages form - if (empty($GLOBALS['cfg']['Lang'])) { - require_once './libraries/display_select_lang.lib.php'; - // use fieldset, don't show doc link - PMA_select_language(true, false); - } - ?>
diff --git a/libraries/config.default.php b/libraries/config.default.php index d7a4373f4..354818e06 100644 --- a/libraries/config.default.php +++ b/libraries/config.default.php @@ -2061,8 +2061,10 @@ $cfg['DefaultConnectionCollation'] = 'utf8_general_ci'; /** * Force: always use this language - * $cfg['Lang'] = 'en'; - * + */ +$cfg['Lang'] = 'en'; + +/** * Regular expression to limit listed languages, e.g. '^(cs|en)' for Czech and * English only * diff --git a/libraries/header_meta_style.inc.php b/libraries/header_meta_style.inc.php index a5878fc03..117eac19a 100644 --- a/libraries/header_meta_style.inc.php +++ b/libraries/header_meta_style.inc.php @@ -32,7 +32,7 @@ if ($GLOBALS['text_dir'] == 'ltr') { ?> - + diff --git a/libraries/header_printview.inc.php b/libraries/header_printview.inc.php index 055d5f58d..f566ee52d 100644 --- a/libraries/header_printview.inc.php +++ b/libraries/header_printview.inc.php @@ -39,7 +39,7 @@ if ($text_dir == 'ltr') { } ?> - + diff --git a/main.php b/main.php index 0b0de1a26..98b27baef 100644 --- a/main.php +++ b/main.php @@ -119,14 +119,6 @@ echo '
'; echo '

' . __('Appearance Settings') . '

'; echo '