From bee5d224febbeba11356aa848006a4f5f9e24b30 Mon Sep 17 00:00:00 2001
From: Isabell Long <issyl0@FreeBSD.org>
Date: Sun, 30 Sep 2012 13:27:05 +0000
Subject: [PATCH] Remove the ability to change the font size on the website. 
 There are now much better ways of doing this in modern web browsers. 
 Furthermore, it never worked as well as it should have done, as too much of
 the website is built around fixed layouts.

It was felt it was best to remove the size switcher from all languages at
once, so that the infrastructure (styleswitcher.js etc.) could be removed
at the same time.

Discussed at:	Cambridge DevSummit, August 2012
Discussed on:	www@
Approved by:	gabor (mentor)
---
 de_DE.ISO8859-1/share/sgml/header.l10n.ent    |  23 ----
 el_GR.ISO8859-7/share/sgml/header.l10n.ent    |  13 ---
 en_US.ISO8859-1/htdocs/cgi/cgi-style.pl       |  10 --
 en_US.ISO8859-1/htdocs/layout/js/Makefile     |   3 +-
 .../htdocs/layout/js/styleswitcher.js         | 107 ------------------
 es_ES.ISO8859-1/share/sgml/header.l10n.ent    |  13 ---
 fr_FR.ISO8859-1/share/sgml/header.l10n.ent    |  13 ---
 hu_HU.ISO8859-2/share/sgml/header.l10n.ent    |  13 ---
 it_IT.ISO8859-15/share/sgml/header.l10n.ent   |  23 ----
 ja_JP.eucJP/share/sgml/header.l10n.ent        |   5 -
 nl_NL.ISO8859-1/share/sgml/header.l10n.ent    |   5 -
 ru_RU.KOI8-R/share/sgml/header.l10n.ent       |   5 -
 share/sgml/header.ent                         |  14 ---
 share/sgml/xhtml.xsl                          |  11 +-
 zh_CN.GB2312/share/sgml/header.l10n.ent       |   5 -
 zh_TW.Big5/share/sgml/header.l10n.ent         |   5 -
 16 files changed, 2 insertions(+), 266 deletions(-)
 delete mode 100644 en_US.ISO8859-1/htdocs/layout/js/styleswitcher.js

diff --git a/de_DE.ISO8859-1/share/sgml/header.l10n.ent b/de_DE.ISO8859-1/share/sgml/header.l10n.ent
index 16b250b76e..86bb072bbd 100644
--- a/de_DE.ISO8859-1/share/sgml/header.l10n.ent
+++ b/de_DE.ISO8859-1/share/sgml/header.l10n.ent
@@ -16,11 +16,6 @@
 <!-- Standard headers and footers -->
 
 <!ENTITY header2.word.search 'Suche'>
-<!ENTITY header2.word.textsize 'Schriftgr��e'>
-<!ENTITY header2.word.normaltextsize 'Normale Schrift'>
-<!ENTITY header2.word.largetextsize 'Gro�e Schrift'>
-<!ENTITY header2.word.normal 'Normal'>
-<!ENTITY header2.word.large 'Gro�'>
 <!ENTITY header2.word.donate 'Spenden'>
 <!ENTITY header2.word.contact 'Kontakt'>
 
@@ -115,24 +110,6 @@
 
       <div id="SEARCHNAV">
         <ul id="SEARCHNAVLIST">
-
-<!--
-FUER UEBERSETZER - ACHTUNG:
-
-Die zwei Attribute "Normal Text" und "Large Text" in den naechsten
-Zeilen NICHT uebersetzen!  Es handelt sich dabei nicht um Text, sondern um
-JavaScript-Parameter.  Eine Uebersetzung dieser Parameter fuehrt zu
-Problemen bei der Darstellung der Webseiten.
--->
-
-          <li>&header2.word.textsize;: <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&apos;Normal Text&apos;); return false;"
-              title="&header2.word.normaltextsize;">&header2.word.normal;</a>
-              /
-              <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&apos;Large Text&apos;); return false;"
-              title="&header2.word.largetextsize;">&header2.word.large;</a></li>
-
           <li><a href="&enbase;/donations/" title="&header2.word.donate;">&header2.word.donate;</a></li>
 
           <li class="last-child"><a href="&base;/mailto.html" title="&header2.word.contact;">&header2.word.contact;</a></li>
diff --git a/el_GR.ISO8859-7/share/sgml/header.l10n.ent b/el_GR.ISO8859-7/share/sgml/header.l10n.ent
index d41f2f7fe1..9268787095 100644
--- a/el_GR.ISO8859-7/share/sgml/header.l10n.ent
+++ b/el_GR.ISO8859-7/share/sgml/header.l10n.ent
@@ -22,11 +22,6 @@
 <!-- Standard headers and footers -->
 
 <!ENTITY header2.word.search '���������'>
-<!ENTITY header2.word.textsize '������� ��������'>
-<!ENTITY header2.word.normaltextsize '�������� ������� ��������'>
-<!ENTITY header2.word.largetextsize '���������� ������� ��������'>
-<!ENTITY header2.word.normal '��������'>
-<!ENTITY header2.word.large '������'>
 <!ENTITY header2.word.donate '������'>
 <!ENTITY header2.word.contact '�����������'>
 
@@ -67,14 +62,6 @@
 
       <div id="SEARCHNAV">
         <ul id="SEARCHNAVLIST">
-          <li>&header2.word.textsize;: <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&#39;Normal Text&#39;); return false;"
-              title="&header2.word.normaltextsize;">&header2.word.normal;</a>
-              /
-              <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&#39;Large Text&#39;); return false;"
-              title="&header2.word.largetextsize;">&header2.word.large;</a></li>
-
           <li><a href="&base;/donations/" title="&header2.word.donate;">&header2.word.donate;</a></li>
 
           <li class="last-child"><a href="&base;/mailto.html" title="&header2.word.contact;">&header2.word.contact;</a></li>
diff --git a/en_US.ISO8859-1/htdocs/cgi/cgi-style.pl b/en_US.ISO8859-1/htdocs/cgi/cgi-style.pl
index 047eb9713c..e2d331a6d6 100644
--- a/en_US.ISO8859-1/htdocs/cgi/cgi-style.pl
+++ b/en_US.ISO8859-1/htdocs/cgi/cgi-style.pl
@@ -66,14 +66,6 @@ $i_topbar = qq`
 
               <div id="searchnav">
                 <ul id="searchnavlist">
-                  <li>Text Size: <a href="#"
-                  onkeypress="return false;"
-                  onclick="setActiveStyleSheet('Normal Text'); return false;"
-                   title="Normal Text Size">Normal</a> / <a
-                  href="#" onkeypress="return false;"
-                  onclick="setActiveStyleSheet('Large Text'); return false;"
-                   title="Large Text Size">Large</a></li>
-
                   <li><a href="$hsty_base/donations/"
                   title="Donate">Donate</a></li>
 
@@ -227,8 +219,6 @@ $html
     <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
     <link rel="apple-touch-icon" href="/favicon.ico" type="image/x-icon" />
 $csshack
-<script type="text/javascript" src="$hsty_base/layout/js/styleswitcher.js">
-</script>
 <script type="text/javascript" src="$hsty_base/layout/js/google.js">
 </script>
 $t_style
diff --git a/en_US.ISO8859-1/htdocs/layout/js/Makefile b/en_US.ISO8859-1/htdocs/layout/js/Makefile
index dbbd69a38e..44396793aa 100644
--- a/en_US.ISO8859-1/htdocs/layout/js/Makefile
+++ b/en_US.ISO8859-1/htdocs/layout/js/Makefile
@@ -7,7 +7,6 @@
 .include "../Makefile.inc"
 .endif
 
-DATA=   google.js \
-	styleswitcher.js
+DATA=   google.js
 
 .include "${DOC_PREFIX}/share/mk/web.site.mk"
diff --git a/en_US.ISO8859-1/htdocs/layout/js/styleswitcher.js b/en_US.ISO8859-1/htdocs/layout/js/styleswitcher.js
deleted file mode 100644
index e205458329..0000000000
--- a/en_US.ISO8859-1/htdocs/layout/js/styleswitcher.js
+++ /dev/null
@@ -1,107 +0,0 @@
-/* http://www.alistapart.com/articles/alternate/ */
-
-/* $FreeBSD$ */
-
-var is_khtml = /Konqueror|Safari|KHTML/i.test(navigator.userAgent);
-var is_safari = /Safari/i.test(navigator.userAgent);
-var is_konq = is_khtml&&!is_safari;
-
-function
-setActiveStyleSheet (title)
-{
-  var i, a, main;
-  for (i = 0; (a = document.getElementsByTagName ("link")[i]); i++)
-    {
-      if (a.getAttribute ("rel").indexOf ("style") != -1
-	  && a.getAttribute ("title"))
-	{
-	  a.disabled = true;
-	  if (a.getAttribute ("title").indexOf(title) != -1)
-	    a.disabled = false;
-	}
-    }
-}
-
-function
-getActiveStyleSheet ()
-{
-  var i, a;
-  for (i = 0; (a = document.getElementsByTagName ("link")[i]); i++)
-    {
-      if (a.getAttribute ("rel").indexOf ("style") != -1
-	  && a.getAttribute ("title") && !a.disabled)
-	return a.getAttribute ("title");
-    }
-  return null;
-}
-
-function
-getPreferredStyleSheet ()
-{
-  var i, a;
-  for (i = 0; (a = document.getElementsByTagName ("link")[i]); i++)
-    {
-      if (a.getAttribute ("rel").indexOf ("style") != -1
-	  && a.getAttribute ("rel").indexOf ("alt") == -1
-	  && a.getAttribute ("title"))
-	return a.getAttribute ("title");
-    }
-  return null;
-}
-
-function
-createCookie (name, value, days)
-{
-  if (days)
-    {
-      var date = new Date ();
-      date.setTime (date.getTime () + (days * 24 * 60 * 60 * 1000));
-      var expires = "; expires=" + date.toGMTString ();
-    }
-  else
-    expires = "";
-  document.cookie = name + "=" + value + expires + "; path=/";
-}
-
-function
-readCookie (name)
-{
-  var nameEQ = name + "=";
-  var ca = document.cookie.split (';');
-  for (var i = 0; i < ca.length; i++)
-    {
-      var c = ca[i];
-      while (c.charAt (0) == ' ')
-	c = c.substring (1, c.length);
-      if (c.indexOf (nameEQ) == 0)
-	return c.substring (nameEQ.length, c.length);
-    }
-  return null;
-}
-
-window.onload = function (e)
-{
-  if (is_konq) {
-    document.getElementById("searchnavlist").getElementsByTagName("li")[0].style.display = 'none';
-    return;
-  }
-  var cookie = readCookie ("style");
-  var title = cookie ? cookie : getPreferredStyleSheet ();
-  setActiveStyleSheet (title);
-}
-
-window.onunload = function (e)
-{
-  if (is_konq) {
-    return;
-  }
-  var title = getActiveStyleSheet ();
-  createCookie ("style", title, 365);
-}
-
-/* Stylesheet switching does not work in Konqueror */
-if (!is_konq) {
-	var cookie = readCookie ("style");
-	var title = cookie ? cookie : getPreferredStyleSheet ();
-	setActiveStyleSheet (title);
-}
\ No newline at end of file
diff --git a/es_ES.ISO8859-1/share/sgml/header.l10n.ent b/es_ES.ISO8859-1/share/sgml/header.l10n.ent
index 0a518decc8..07b0fc5d46 100644
--- a/es_ES.ISO8859-1/share/sgml/header.l10n.ent
+++ b/es_ES.ISO8859-1/share/sgml/header.l10n.ent
@@ -15,11 +15,6 @@
 <!-- Standard headers and footers -->
 
 <!ENTITY header2.word.search 'Buscar'>
-<!ENTITY header2.word.textsize 'Tama�o'>
-<!ENTITY header2.word.normaltextsize 'Tama�o normal'>
-<!ENTITY header2.word.largetextsize 'Tama�o grande'>
-<!ENTITY header2.word.normal 'Normal'>
-<!ENTITY header2.word.large 'Grande'>
 <!ENTITY header2.word.donate 'Donaciones'>
 <!ENTITY header2.word.contact 'Contactar'>
 
@@ -54,14 +49,6 @@
 
       <div id="SEARCHNAV">
         <ul id="SEARCHNAVLIST">
-          <li>&header2.word.textsize;: <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&apos;Normal Text&apos;); return false;"
-              title="&header2.word.normaltextsize;">&header2.word.normal;</a>
-              /
-              <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&apos;Large Text&apos;); return false;"
-              title="&header2.word.largetextsize;">&header2.word.large;</a></li>
-
           <li><a href="&enbase;/donations/" title="&header2.word.donate;">&header2.word.donate;</a></li>
 
           <li class="last-child"><a href="&base;/mailto.html" title="&header2.word.contact;">&header2.word.contact;</a></li>
diff --git a/fr_FR.ISO8859-1/share/sgml/header.l10n.ent b/fr_FR.ISO8859-1/share/sgml/header.l10n.ent
index 6fd60a154a..1f8d034c11 100644
--- a/fr_FR.ISO8859-1/share/sgml/header.l10n.ent
+++ b/fr_FR.ISO8859-1/share/sgml/header.l10n.ent
@@ -10,11 +10,6 @@
 <!ENTITY copyright '<span xmlns="http://www.w3.org/1999/xhtml"><a href="&base;/search/index-site.html">Plan du site</a> | <a href="&base;/copyright/">Informations l�gales</a> | &copy; 1995-2011 par le Projet FreeBSD. Tous droits r�serv�s.</span>'>
 
 <!ENTITY header2.word.search 'Rechercher'>
-<!ENTITY header2.word.textsize 'Taille du texte'>
-<!ENTITY header2.word.normaltextsize 'Normal Text Size'>
-<!ENTITY header2.word.largetextsize 'Large Text Size'>
-<!ENTITY header2.word.normal 'Normale'>
-<!ENTITY header2.word.large 'Large'>
 <!ENTITY header2.word.donate 'Faire un don'>
 <!ENTITY header2.word.contact 'Contact'>
 
@@ -108,14 +103,6 @@
 
       <div id="SEARCHNAV">
         <ul id="SEARCHNAVLIST">
-          <li>&header2.word.textsize;: <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&apos;Normal Text&apos;); return false;"
-              title="&header2.word.normaltextsize;">&header2.word.normal;</a>
-              /
-              <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&apos;Large Text&apos;); return false;"
-              title="&header2.word.largetextsize;">&header2.word.large;</a></li>
-
           <li><a href="&base;/donations/" title="&header2.word.donate;">&header2.word.donate;</a></li>
 
           <li class="last-child"><a href="&base;/mailto.html" title="&header2.word.contact;">&header2.word.contact;</a></li>
diff --git a/hu_HU.ISO8859-2/share/sgml/header.l10n.ent b/hu_HU.ISO8859-2/share/sgml/header.l10n.ent
index cff8a26c60..f4164f4444 100644
--- a/hu_HU.ISO8859-2/share/sgml/header.l10n.ent
+++ b/hu_HU.ISO8859-2/share/sgml/header.l10n.ent
@@ -21,11 +21,6 @@
 <!-- Standard headers and footers -->
 
 <!ENTITY header2.word.search 'Keres�s'>
-<!ENTITY header2.word.textsize 'Sz�veg'>
-<!ENTITY header2.word.normaltextsize 'Norm�l Sz�vegm�ret'>
-<!ENTITY header2.word.largetextsize 'Nagy Sz�vegm�ret'>
-<!ENTITY header2.word.normal 'Norm�l'>
-<!ENTITY header2.word.large 'Nagy'>
 <!ENTITY header2.word.donate 'Adom�ny'>
 <!ENTITY header2.word.contact 'Kapcsolat'>
 
@@ -133,14 +128,6 @@
 
       <div id="SEARCHNAV">
 	<ul id="SEARCHNAVLIST">
-	  <li>&header2.word.textsize;: <a href="#" onkeypress="return false;"
-	      onclick="setActiveStyleSheet(&apos;Normal Text&apos;); return false;"
-	      title="&header2.word.normaltextsize;">&header2.word.normal;</a>
-	      /
-	      <a href="#" onkeypress="return false;"
-	      onclick="setActiveStyleSheet(&apos;Large Text&apos;); return false;"
-	      title="&header2.word.largetextsize;">&header2.word.large;</a></li>
-
 	  <li><a href="&enbase;/donations/" title="&header2.word.donate;">&header2.word.donate;</a></li>
 
 	  <li class="last-child"><a href="&base;/mailto.html" title="&header2.word.contact;">&header2.word.contact;</a></li>
diff --git a/it_IT.ISO8859-15/share/sgml/header.l10n.ent b/it_IT.ISO8859-15/share/sgml/header.l10n.ent
index 68323be857..a02983395f 100644
--- a/it_IT.ISO8859-15/share/sgml/header.l10n.ent
+++ b/it_IT.ISO8859-15/share/sgml/header.l10n.ent
@@ -12,11 +12,6 @@
 <!-- Standard headers and footers -->
 
 <!ENTITY header2.word.search 'Cerca'>
-<!ENTITY header2.word.textsize 'Testo'>
-<!ENTITY header2.word.normaltextsize 'Dimensione Testo Normale'>
-<!ENTITY header2.word.largetextsize 'Dimensione Testo Grande'>
-<!ENTITY header2.word.normal 'Normale'>
-<!ENTITY header2.word.large 'Grande'>
 <!ENTITY header2.word.donate 'Donazioni'>
 <!ENTITY header2.word.contact 'Contatti'>
 
@@ -94,24 +89,6 @@
   </div> <!-- MENU -->
 '>
 
-<!ENTITY header2.searchnav '
-      <div xmlns="http://www.w3.org/1999/xhtml" id="searchnav">
-        <ul id="searchnavlist">
-          <li>&header2.word.textsize;: <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&#39;Normal Text&#39;); return false;"
-              title="&header2.word.normaltextsize;">&header2.word.normal;</a>
-              /
-              <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&#39;Large Text&#39;); return false;"
-              title="&header2.word.largetextsize;">&header2.word.large;</a></li>
-
-          <li><a href="&enbase;/donations/" title="&header2.word.donate;">&header2.word.donate;</a></li>
-
-          <li class="last-child"><a href="&base;/mailto.html" title="&header2.word.contact;">&header2.word.contact;</a></li>
-        </ul>
-      </div> <!-- SEARCHNAV -->
-'>
-
 <!-- macro for webbuild paper -->
 <!ENTITY webbuild '
 <p xmlns="http://www.w3.org/1999/xhtml">Questo documento descrive come creare e aggiornare le pagine web di FreeBSD
diff --git a/ja_JP.eucJP/share/sgml/header.l10n.ent b/ja_JP.eucJP/share/sgml/header.l10n.ent
index e9d16d1113..4278abbe1e 100644
--- a/ja_JP.eucJP/share/sgml/header.l10n.ent
+++ b/ja_JP.eucJP/share/sgml/header.l10n.ent
@@ -12,11 +12,6 @@
 <!ENTITY author '<a href="&base;/index.html">�ۡ���</a> &nbsp; | &nbsp; <a href="&base;/mailto.html">Ϣ����</a> &nbsp; | &nbsp; <a href="&base;/copyright/index.html">��Ū�⻺���ˤĤ���</a> &nbsp; | &nbsp; &copyright;'>
 
 <!ENTITY header2.word.search '����'>
-<!ENTITY header2.word.textsize 'ʸ��������'>
-<!ENTITY header2.word.normaltextsize 'ɸ��Υƥ����ȥ�����'>
-<!ENTITY header2.word.largetextsize '�礭�ʥƥ����ȥ�����'>
-<!ENTITY header2.word.normal '��'>
-<!ENTITY header2.word.large '��'>
 <!ENTITY header2.word.donate '���ա���£'>
 <!ENTITY header2.word.contact 'Ϣ����'>
 
diff --git a/nl_NL.ISO8859-1/share/sgml/header.l10n.ent b/nl_NL.ISO8859-1/share/sgml/header.l10n.ent
index 82c3b6a856..f31bbb0679 100644
--- a/nl_NL.ISO8859-1/share/sgml/header.l10n.ent
+++ b/nl_NL.ISO8859-1/share/sgml/header.l10n.ent
@@ -28,11 +28,6 @@
 <!ENTITY nav ''>
 
 <!ENTITY header2.word.search 'Zoeken'>
-<!ENTITY header2.word.textsize 'Tekstgrootte'>
-<!ENTITY header2.word.normaltextsize 'Normale tekstgrootte'>
-<!ENTITY header2.word.largetextsize 'Grote tekstgrootte'>
-<!ENTITY header2.word.normal 'Normaal'>
-<!ENTITY header2.word.large 'Groot'>
 <!ENTITY header2.word.donate 'Doneer'>
 <!ENTITY header2.word.contact 'Contact'>
 
diff --git a/ru_RU.KOI8-R/share/sgml/header.l10n.ent b/ru_RU.KOI8-R/share/sgml/header.l10n.ent
index 82afb294dc..90ab985662 100644
--- a/ru_RU.KOI8-R/share/sgml/header.l10n.ent
+++ b/ru_RU.KOI8-R/share/sgml/header.l10n.ent
@@ -25,11 +25,6 @@
 <!-- Standard headers and footers -->
 
 <!ENTITY header2.word.search '�����'>
-<!ENTITY header2.word.textsize '������ ������'>
-<!ENTITY header2.word.normaltextsize '������� ������ ����'>
-<!ENTITY header2.word.largetextsize '������� ������ ����'>
-<!ENTITY header2.word.normal '�������'>
-<!ENTITY header2.word.large '�������'>
 <!ENTITY header2.word.donate '�������������'>
 <!ENTITY header2.word.contact '��������'>
 
diff --git a/share/sgml/header.ent b/share/sgml/header.ent
index bb1dac56bc..bb36ef0e01 100644
--- a/share/sgml/header.ent
+++ b/share/sgml/header.ent
@@ -18,7 +18,6 @@
 <!ENTITY home '<a href="&base;/index.html"><img src"&enbase;/gifs/home.gif"
   alt="FreeBSD Home Page" border="0" align="right" width="101" height="33"></a>'>
 <!ENTITY stylesheet '&enbase;/layout/css/fixed.css?20060509'>
-<!ENTITY stylesheetlarge '&enbase;/layout/css/fixed_large.css'>
 
 <!-- Standard headers and footers -->
 
@@ -35,11 +34,6 @@
 '>
 
 <!ENTITY header2.word.search 'Search'>
-<!ENTITY header2.word.textsize 'Text Size'>
-<!ENTITY header2.word.normaltextsize 'Normal Text Size'>
-<!ENTITY header2.word.largetextsize 'Large Text Size'>
-<!ENTITY header2.word.normal 'Normal'>
-<!ENTITY header2.word.large 'Large'>
 <!ENTITY header2.word.donate 'Donate'>
 <!ENTITY header2.word.contact 'Contact'>
 
@@ -137,14 +131,6 @@
 <!ENTITY header2.searchnav '
       <div xmlns="http://www.w3.org/1999/xhtml" id="searchnav">
         <ul id="searchnavlist">
-          <li>&header2.word.textsize;: <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&#39;Normal Text&#39;); return false;"
-              title="&header2.word.normaltextsize;">&header2.word.normal;</a>
-              /
-              <a href="#" onkeypress="return false;"
-              onclick="setActiveStyleSheet(&#39;Large Text&#39;); return false;"
-              title="&header2.word.largetextsize;">&header2.word.large;</a></li>
-
           <li><a href="&base;/donations/" title="&header2.word.donate;">&header2.word.donate;</a></li>
 
           <li class="last-child"><a href="&base;/mailto.html" title="&header2.word.contact;">&header2.word.contact;</a></li>
diff --git a/share/sgml/xhtml.xsl b/share/sgml/xhtml.xsl
index 64067e09e2..130495b43c 100644
--- a/share/sgml/xhtml.xsl
+++ b/share/sgml/xhtml.xsl
@@ -41,19 +41,10 @@
 	<meta name="MSSmartTagsPreventParsing" content="TRUE" />
 	<xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:meta"/>
 	<link rel="shortcut icon" href="&enbase;/favicon.ico" type="image/x-icon" />
+	<link rel="stylesheet" media="screen" href="&stylesheet;" type="text/css"/>
 	<link rel="icon" href="&enbase;/favicon.ico" type="image/x-icon" />
-<!--
-FOR TRANSLATORS:
-
-Do not translate the "Normal Text" and "Large Text" attributes in the
-following two lines.  They are not literal texts but JavaScript
-parameters.  Changing them will result in rendering errors.
--->
-	<link rel="stylesheet" media="screen" href="&stylesheet;" type="text/css" title="Normal Text" />
-	<link rel="alternate stylesheet" media="screen" href="&stylesheetlarge;" type="text/css" title="Large Text" />
 	<xsl:copy-of select="/xhtml:html/xhtml:head/xhtml:link"/>
 	<xsl:call-template name="process.rss.link"/>
-	<script type="text/javascript" src="&enbase;/layout/js/styleswitcher.js"></script>
 	&header1.googlejs;
       </head>
 
diff --git a/zh_CN.GB2312/share/sgml/header.l10n.ent b/zh_CN.GB2312/share/sgml/header.l10n.ent
index 681ae9cd90..a06cca77ea 100644
--- a/zh_CN.GB2312/share/sgml/header.l10n.ent
+++ b/zh_CN.GB2312/share/sgml/header.l10n.ent
@@ -12,11 +12,6 @@
   alt="FreeBSD ��ҳ" border="0" align="right" width="101" height="33"></a>'>
 
 <!ENTITY header2.word.search '����'>
-<!ENTITY header2.word.textsize '���ֳߴ�'>
-<!ENTITY header2.word.normaltextsize '�������ֳߴ�'>
-<!ENTITY header2.word.largetextsize '�Ŵ����ֳߴ�'>
-<!ENTITY header2.word.normal '����'>
-<!ENTITY header2.word.large '����'>
 <!ENTITY header2.word.donate '����'>
 <!ENTITY header2.word.contact '����'>
 
diff --git a/zh_TW.Big5/share/sgml/header.l10n.ent b/zh_TW.Big5/share/sgml/header.l10n.ent
index 7f8bb796c7..e4f8060098 100644
--- a/zh_TW.Big5/share/sgml/header.l10n.ent
+++ b/zh_TW.Big5/share/sgml/header.l10n.ent
@@ -13,11 +13,6 @@
   alt="FreeBSD ����" border="0" align="right" width="101" height="33"></a>'>
 
 <!ENTITY header2.word.search '�j�M'>
-<!ENTITY header2.word.textsize '��r�ؤo'>
-<!ENTITY header2.word.normaltextsize '���`��r�ؤo'>
-<!ENTITY header2.word.largetextsize '��j��r�ؤo'>
-<!ENTITY header2.word.normal '���`'>
-<!ENTITY header2.word.large '�j�r'>
 <!ENTITY header2.word.donate '����'>
 <!ENTITY header2.word.contact '�p��'>