summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authorjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-09 00:03:15 +0000
committerjshin@chromium.org <jshin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-09 00:03:15 +0000
commita1dc0bc2ae61d9f23e4edce7f13e0d00f633c2c5 (patch)
treebb6f6e90baaf8ddd736c77b6a9cb702bed3b229a /chrome/browser/resources
parent06479834b913a081780e145d94ab39f0d4b01941 (diff)
downloadchromium_src-a1dc0bc2ae61d9f23e4edce7f13e0d00f633c2c5.zip
chromium_src-a1dc0bc2ae61d9f23e4edce7f13e0d00f633c2c5.tar.gz
chromium_src-a1dc0bc2ae61d9f23e4edce7f13e0d00f633c2c5.tar.bz2
Make about:plugin page get rendered properly in Hebrew and Arabic Chrome. Also make it use the same font as other 'domUI' pages.
While doing so, get rid of some unnecessary string conversions in browser_about_handler.cc BUG=31782 TEST=Run Chrome with --lang=ar / --lang=he on Windows (or LANGUAGE=ar or LANGUAGE=he on Linux) and go to 'about:plugins' page. The page should be properly 'RTLized'. Review URL: http://codereview.chromium.org/523153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/about_plugins.html28
1 files changed, 19 insertions, 9 deletions
diff --git a/chrome/browser/resources/about_plugins.html b/chrome/browser/resources/about_plugins.html
index b362a45..72eb347 100644
--- a/chrome/browser/resources/about_plugins.html
+++ b/chrome/browser/resources/about_plugins.html
@@ -1,4 +1,7 @@
<!DOCTYPE HTML>
+<html id="t" i18n-values="dir:textdirection;">
+<head>
+<meta charset="utf-8">
<!--
A modified version of the about:plugins page found in Mozilla. The license of
@@ -46,14 +49,8 @@ the original file is below.
-
- ***** END LICENSE BLOCK ***** -->
-<html id="t">
-<head>
<title jscontent="title"></title>
<style>
-body {
- font-family: sans-serif;
- font-size: 0.8em;
-}
div#outside {
text-align: justify;
@@ -82,22 +79,35 @@ table {
border-spacing: 0px;
}
+html[dir='rtl'] table {
+ text-align: right;
+}
+
th {
text-align: center;
background-color: Highlight;
color: HighlightText;
}
-th + th,
-td + td {
+html[dir='ltr'] th + th,
+html[dir='ltr'] td + td {
border-left: 1px dotted ThreeDShadow;
}
+html[dir='rtl'] th + th,
+html[dir='rtl'] td + td {
+ border-right: 1px dotted ThreeDShadow;
+}
+
td {
text-align: left;
border-top: 1px dotted ThreeDShadow;
}
+html[dir='rtl'] td {
+ text-align: right;
+}
+
th, td {
padding: 3px;
}
@@ -115,7 +125,7 @@ th.enabled {
}
</style>
</head>
-<body>
+<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<div id="outside">
<script type="application/x-javascript">