Replaced xml:lang attributes by lang for HTML5
This commit is contained in:
parent
1b23bfa33d
commit
653f086815
@ -2,8 +2,7 @@
|
||||
<!--
|
||||
vim: expandtab ts=4 sw=4 sts=4 tw=78
|
||||
-->
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
|
||||
version="-//W3C//DTD XHTML 1.1//EN" dir="ltr">
|
||||
<html lang="en-US" dir="ltr">
|
||||
<head>
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
|
||||
@ -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="<?php echo $available_languages[$lang][1]; ?>" dir="<?php echo $text_dir; ?>">
|
||||
|
||||
<head>
|
||||
<title>phpMyAdmin</title>
|
||||
|
||||
@ -101,7 +101,7 @@ $replaces = array(
|
||||
header('Content-type: text/html; charset=utf-8');
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
|
||||
<html lang="en" dir="ltr">
|
||||
<head>
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
|
||||
@ -228,7 +228,7 @@ foreach ($tables as $table) {
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td<?php echo $type_nowrap; ?> xml:lang="en" dir="ltr"><?php echo $type; ?></td>
|
||||
<td<?php echo $type_nowrap; ?> lang="en" dir="ltr"><?php echo $type; ?></td>
|
||||
<?php /* <td<?php echo $type_nowrap; ?>><?php echo $attribute; ?></td>*/ ?>
|
||||
<td><?php echo (($row['Null'] == 'NO') ? __('No') : __('Yes')); ?></td>
|
||||
<td nowrap="nowrap"><?php if (isset($row['Default'])) { echo $row['Default']; } ?></td>
|
||||
|
||||
@ -37,7 +37,7 @@ function show_page($contents)
|
||||
echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
|
||||
<html lang="en" dir="ltr">
|
||||
<head>
|
||||
<link rel="icon" href="../favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
|
||||
|
||||
@ -38,7 +38,7 @@ if (isset($_POST['user'])) {
|
||||
echo '<?xml version="1.0" encoding="utf-8"?>' . "\n";
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
|
||||
<html lang="en" dir="ltr">
|
||||
<head>
|
||||
<link rel="icon" href="../favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
|
||||
|
||||
@ -317,7 +317,7 @@ require_once './libraries/List.class.php';
|
||||
$selected = $this->getDefault();
|
||||
}
|
||||
|
||||
$return = '<ul id="databaseList" xml:lang="en" dir="ltr">' . "\n";
|
||||
$return = '<ul id="databaseList" lang="en" dir="ltr">' . "\n";
|
||||
foreach ($this->getGroupedDetails($offset, $count) as $group => $dbs) {
|
||||
if (count($dbs) > 1) {
|
||||
$return .= '<li class="group"><span>' . htmlspecialchars($group) . '</span><ul>' . "\n";
|
||||
@ -373,7 +373,7 @@ require_once './libraries/List.class.php';
|
||||
$selected = $this->getDefault();
|
||||
}
|
||||
|
||||
$return = '<select name="db" id="lightm_db" xml:lang="en" dir="ltr"'
|
||||
$return = '<select name="db" id="lightm_db" lang="en" dir="ltr"'
|
||||
. ' onchange="if (this.value != \'\') window.parent.openDb(this.value);">' . "\n"
|
||||
. '<option value="" dir="' . $GLOBALS['text_dir'] . '">'
|
||||
. '(' . __('Databases') . ') ...</option>' . "\n";
|
||||
|
||||
@ -295,7 +295,7 @@ class PMA_Theme_Manager
|
||||
$theme_preview_href = '<a href="' . $theme_preview_path . '" target="themes" class="themeselect">';
|
||||
$select_box .= $theme_preview_href . __('Theme') . '</a>:' . "\n";
|
||||
|
||||
$select_box .= '<select name="set_theme" xml:lang="en" dir="ltr" class="autosubmit">';
|
||||
$select_box .= '<select name="set_theme" lang="en" dir="ltr" class="autosubmit">';
|
||||
foreach ($this->themes as $each_theme_id => $each_theme) {
|
||||
$select_box .= '<option value="' . $each_theme_id . '"';
|
||||
if ($this->active_theme === $each_theme_id) {
|
||||
|
||||
@ -172,7 +172,7 @@ if (top != self) {
|
||||
<?php
|
||||
echo sprintf(
|
||||
__('Welcome to %s'),
|
||||
'<bdo dir="ltr" xml:lang="en">' . $page_title . '</bdo>'
|
||||
'<bdo dir="ltr" lang="en">' . $page_title . '</bdo>'
|
||||
);
|
||||
?>
|
||||
</h1>
|
||||
|
||||
@ -50,13 +50,13 @@ function PMA_select_language($use_fieldset = false, $show_doc = true)
|
||||
$language_title .= PMA_showDocu('faq7_2');
|
||||
}
|
||||
if ($use_fieldset) {
|
||||
echo '<fieldset><legend xml:lang="en" dir="ltr">' . $language_title . '</legend>';
|
||||
echo '<fieldset><legend lang="en" dir="ltr">' . $language_title . '</legend>';
|
||||
} else {
|
||||
echo '<bdo xml:lang="en" dir="ltr">' . $language_title . ':</bdo>';
|
||||
echo '<bdo lang="en" dir="ltr">' . $language_title . ':</bdo>';
|
||||
}
|
||||
?>
|
||||
|
||||
<select name="lang" class="autosubmit" xml:lang="en" dir="ltr">
|
||||
<select name="lang" class="autosubmit" lang="en" dir="ltr">
|
||||
<?php
|
||||
|
||||
uasort($GLOBALS['available_languages'], 'PMA_language_cmp');
|
||||
|
||||
@ -13,7 +13,7 @@ if (! defined('PHPMYADMIN')) {
|
||||
header('Content-Type: text/html; charset=utf-8');
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $lang; ?>" dir="<?php echo $dir; ?>">
|
||||
<html lang="<?php echo $lang; ?>" dir="<?php echo $dir; ?>">
|
||||
<head>
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
|
||||
@ -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="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][1]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<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="<?php echo $available_languages[$lang][1]; ?>" dir="<?php echo $text_dir; ?>">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
|
||||
@ -104,7 +104,7 @@ function PMA_generateCharsetDropdownBox($type = PMA_CSDROPDOWN_COLLATION,
|
||||
}
|
||||
}
|
||||
|
||||
$return_str = '<select xml:lang="en" dir="ltr" name="'
|
||||
$return_str = '<select lang="en" dir="ltr" name="'
|
||||
. htmlspecialchars($name) . '"'
|
||||
. (empty($id) ? '' : ' id="' . htmlspecialchars($id) . '"')
|
||||
. ($submitOnChange ? ' class="autosubmit"' : '') . '>' . "\n";
|
||||
|
||||
2
main.php
2
main.php
@ -182,7 +182,7 @@ if ($server > 0 && $GLOBALS['cfg']['ShowServerInfo']) {
|
||||
|
||||
echo ' <li id="li_select_mysql_charset">';
|
||||
echo ' ' . __('Server charset') . ': '
|
||||
. ' <span xml:lang="en" dir="ltr">'
|
||||
. ' <span lang="en" dir="ltr">'
|
||||
. ' ' . $mysql_charsets_descriptions[$mysql_charset_map['utf-8']] . "\n"
|
||||
. ' (' . $mysql_charset_map['utf-8'] . ')' . "\n"
|
||||
. ' </span>' . "\n"
|
||||
|
||||
@ -89,10 +89,7 @@ require_once 'libraries/header_http.inc.php';
|
||||
/* echo '<?xml version="1.0" encoding="utf-8"?>'; */
|
||||
?>
|
||||
<!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="<?php echo $available_languages[$lang][1]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>">
|
||||
|
||||
<head>
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||
|
||||
@ -16,11 +16,11 @@
|
||||
*/
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" dir="ltr">
|
||||
|
||||
<head>
|
||||
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
<meta charset="iso-8859-1" />
|
||||
<title>phpMyAdmin - Parser bug report decoder</title>
|
||||
<style type="text/css">
|
||||
|
||||
@ -68,10 +68,10 @@ 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">
|
||||
<bdo lang="en" dir="ltr"><label for="lang">
|
||||
<?php echo __('Language') . (__('Language') != 'Language' ? ' - Language' : '') ?>
|
||||
</label></bdo><br />
|
||||
<select id="lang" name="lang" class="autosubmit" xml:lang="en" dir="ltr">
|
||||
<select id="lang" name="lang" class="autosubmit" lang="en" dir="ltr">
|
||||
<?php
|
||||
// create language list
|
||||
$lang_list = array();
|
||||
|
||||
@ -343,7 +343,7 @@ foreach ($fields as $row) {
|
||||
<?php echo $rownum; ?>
|
||||
</td>
|
||||
<th nowrap="nowrap"><label for="checkbox_row_<?php echo $rownum; ?>"><?php echo $displayed_field_name; ?></label></th>
|
||||
<td<?php echo $type_nowrap; ?>><bdo dir="ltr" xml:lang="en"><?php echo $type; echo $type_mime; ?></bdo></td>
|
||||
<td<?php echo $type_nowrap; ?>><bdo dir="ltr" lang="en"><?php echo $type; echo $type_mime; ?></bdo></td>
|
||||
<td><?php echo (empty($field_charset) ? '' : '<dfn title="' . PMA_getCollationDescr($field_charset) . '">' . $field_charset . '</dfn>'); ?></td>
|
||||
<td nowrap="nowrap" class="column_attribute"><?php echo $attribute; ?></td>
|
||||
<td><?php echo (($row['Null'] == 'YES') ? __('Yes') : __('No')); ?></td>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user