Remove non-English language support
This commit is contained in:
@@ -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>
|
||||
|
@@ -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" />
|
||||
|
@@ -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 -->
|
||||
|
@@ -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
|
||||
*
|
||||
|
@@ -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" />
|
||||
|
@@ -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; ?>" />
|
||||
|
8
main.php
8
main.php
@@ -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']) {
|
||||
|
@@ -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" />
|
||||
|
@@ -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
3
po/.gitignore
vendored
@@ -1,3 +0,0 @@
|
||||
# pootle cache
|
||||
.translation_index
|
||||
*.pending
|
10582
po/be@latin.po
10582
po/be@latin.po
File diff suppressed because it is too large
Load Diff
9957
po/en_GB.po
9957
po/en_GB.po
File diff suppressed because it is too large
Load Diff
9290
po/phpmyadmin.pot
9290
po/phpmyadmin.pot
File diff suppressed because it is too large
Load Diff
10024
po/pt_BR.po
10024
po/pt_BR.po
File diff suppressed because it is too large
Load Diff
10165
po/sr@latin.po
10165
po/sr@latin.po
File diff suppressed because it is too large
Load Diff
10967
po/uz@latin.po
10967
po/uz@latin.po
File diff suppressed because it is too large
Load Diff
9431
po/zh_CN.po
9431
po/zh_CN.po
File diff suppressed because it is too large
Load Diff
9587
po/zh_TW.po
9587
po/zh_TW.po
File diff suppressed because it is too large
Load Diff
@@ -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
|
||||
|
@@ -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 {
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user