Remove non-English language support

This commit is contained in:
2025-04-22 00:02:58 -07:00
parent 96a499d4ec
commit 5ee643bbbb
78 changed files with 10 additions and 651002 deletions

View File

@@ -73,10 +73,7 @@ if (is_array($foreignData['disp_row'])) {
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php echo $available_languages[$lang][1]; ?>"
lang="<?php echo $available_languages[$lang][1]; ?>"
dir="<?php echo $text_dir; ?>">
<html lang="en" dir="<?php echo $text_dir; ?>">
<head>
<title>phpMyAdmin</title>

View File

@@ -92,10 +92,7 @@ $lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][1];
include ('./libraries/header_http.inc.php');
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php echo $lang_iso_code; ?>"
lang="<?php echo $lang_iso_code; ?>"
dir="<?php echo $GLOBALS['text_dir']; ?>">
<html lang="en" dir="<?php echo $GLOBALS['text_dir']; ?>">
<head>
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />

View File

@@ -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);
}
?>
<br />
<!-- Login form -->

View File

@@ -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
*

View File

@@ -32,7 +32,7 @@ if ($GLOBALS['text_dir'] == 'ltr') {
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][1]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][1]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>">
<html lang="en" dir="<?php echo $GLOBALS['text_dir']; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
<link rel="icon" href="./favicon.ico" type="image/x-icon" />

View File

@@ -39,7 +39,7 @@ if ($text_dir == 'ltr') {
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $available_languages[$lang][1]; ?>" lang="<?php echo $available_languages[$lang][1]; ?>" dir="<?php echo $text_dir; ?>">
<html lang="en" dir="<?php echo $text_dir; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset; ?>" />

View File

@@ -119,14 +119,6 @@ echo '<div class="group">';
echo '<h2>' . __('Appearance Settings') . '</h2>';
echo ' <ul>';
// Displays language selection combo
if (empty($cfg['Lang'])) {
echo '<li id="li_select_lang">';
require_once './libraries/display_select_lang.lib.php';
PMA_select_language();
echo '</li>';
}
// ThemeManager if available
if ($GLOBALS['cfg']['ThemeManager']) {

View File

@@ -111,10 +111,7 @@ require_once './libraries/header_http.inc.php';
/* echo '<?xml version="1.0" encoding="' . $GLOBALS['charset'] . '"?>'; */
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="<?php echo $available_languages[$lang][1]; ?>"
lang="<?php echo $available_languages[$lang][1]; ?>"
dir="<?php echo $GLOBALS['text_dir']; ?>">
<html lang="en" dir="<?php echo $GLOBALS['text_dir']; ?>">
<head>
<link rel="icon" href="./favicon.ico" type="image/x-icon" />

View File

@@ -19,7 +19,7 @@ $hidden = "hidden";
?>
<!DOCTYPE html>
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][1]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][1]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>">
<html lang="en" dir="<?php echo $GLOBALS['text_dir']; ?>">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $charset ?>" />
<link rel="icon" href="pmd/images/favicon.ico" type="image/x-icon" />

3
po/.gitignore vendored
View File

@@ -1,3 +0,0 @@
# pootle cache
.translation_index
*.pending

9962
po/af.po

File diff suppressed because it is too large Load Diff

9791
po/ar.po

File diff suppressed because it is too large Load Diff

10201
po/az.po

File diff suppressed because it is too large Load Diff

10676
po/be.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

9499
po/bg.po

File diff suppressed because it is too large Load Diff

9958
po/bn.po

File diff suppressed because it is too large Load Diff

9628
po/br.po

File diff suppressed because it is too large Load Diff

10193
po/bs.po

File diff suppressed because it is too large Load Diff

10081
po/ca.po

File diff suppressed because it is too large Load Diff

10082
po/cs.po

File diff suppressed because it is too large Load Diff

9744
po/cy.po

File diff suppressed because it is too large Load Diff

9994
po/da.po

File diff suppressed because it is too large Load Diff

10124
po/de.po

File diff suppressed because it is too large Load Diff

10165
po/el.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

10192
po/es.po

File diff suppressed because it is too large Load Diff

10294
po/et.po

File diff suppressed because it is too large Load Diff

10044
po/eu.po

File diff suppressed because it is too large Load Diff

9841
po/fa.po

File diff suppressed because it is too large Load Diff

10403
po/fi.po

File diff suppressed because it is too large Load Diff

10113
po/fr.po

File diff suppressed because it is too large Load Diff

10745
po/gl.po

File diff suppressed because it is too large Load Diff

10083
po/he.po

File diff suppressed because it is too large Load Diff

9497
po/hi.po

File diff suppressed because it is too large Load Diff

10371
po/hr.po

File diff suppressed because it is too large Load Diff

10151
po/hu.po

File diff suppressed because it is too large Load Diff

9607
po/id.po

File diff suppressed because it is too large Load Diff

10122
po/it.po

File diff suppressed because it is too large Load Diff

10191
po/ja.po

File diff suppressed because it is too large Load Diff

10559
po/ka.po

File diff suppressed because it is too large Load Diff

9730
po/ko.po

File diff suppressed because it is too large Load Diff

9811
po/lt.po

File diff suppressed because it is too large Load Diff

10252
po/lv.po

File diff suppressed because it is too large Load Diff

10302
po/mk.po

File diff suppressed because it is too large Load Diff

9288
po/ml.po

File diff suppressed because it is too large Load Diff

10248
po/mn.po

File diff suppressed because it is too large Load Diff

9996
po/ms.po

File diff suppressed because it is too large Load Diff

10145
po/nb.po

File diff suppressed because it is too large Load Diff

10117
po/nl.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

10109
po/pl.po

File diff suppressed because it is too large Load Diff

9804
po/pt.po

File diff suppressed because it is too large Load Diff

10024
po/pt_BR.po

File diff suppressed because it is too large Load Diff

10289
po/ro.po

File diff suppressed because it is too large Load Diff

10103
po/ru.po

File diff suppressed because it is too large Load Diff

9617
po/si.po

File diff suppressed because it is too large Load Diff

9989
po/sk.po

File diff suppressed because it is too large Load Diff

10006
po/sl.po

File diff suppressed because it is too large Load Diff

10056
po/sq.po

File diff suppressed because it is too large Load Diff

10161
po/sr.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

9981
po/sv.po

File diff suppressed because it is too large Load Diff

9366
po/ta.po

File diff suppressed because it is too large Load Diff

9489
po/te.po

File diff suppressed because it is too large Load Diff

9969
po/th.po

File diff suppressed because it is too large Load Diff

10029
po/tr.po

File diff suppressed because it is too large Load Diff

10106
po/tt.po

File diff suppressed because it is too large Load Diff

9567
po/ug.po

File diff suppressed because it is too large Load Diff

9671
po/uk.po

File diff suppressed because it is too large Load Diff

9518
po/ur.po

File diff suppressed because it is too large Load Diff

10902
po/uz.po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -58,26 +58,6 @@ if (!$is_https) {
}
?>
<form id="select_lang" method="post" action="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']) ?>">
<?php echo PMA_generate_common_hidden_inputs() ?>
<bdo xml:lang="en" dir="ltr"><label for="lang">
<?php echo __('Language') . (__('Language') != 'Language' ? ' - Language' : '') ?>
</label></bdo><br />
<select id="lang" name="lang" onchange="this.form.submit();" xml:lang="en" dir="ltr">
<?php
// create language list
$lang_list = array();
foreach ($all_languages as $each_lang_key => $each_lang) {
$lang_name = PMA_langName($each_lang);
//Is current one active?
$selected = ($GLOBALS['lang'] == $each_lang_key) ? ' selected="selected"' : '';
echo '<option value="' . $each_lang_key . '"' . $selected . '>' . $lang_name
. '</option>' . "\n";
}
?>
</select>
</form>
<h2><?php echo __('Overview') ?></h2>
<?php

View File

@@ -21,14 +21,6 @@ h1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
/* language selection box */
#select_lang {
position: absolute;
right: 1em;
top: 1em;
}
/* menu */
#menu {

View File

@@ -1101,10 +1101,6 @@ li#li_create_database {
list-style-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>b_newdb.png);
}
li#li_select_lang {
list-style-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_lang.png);
}
li#li_select_mysql_collation {
list-style-image: url(<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>s_asci.png);
}