Patch to make i18n work
--- CMFVisualEditor/skins/visualeditor/editor_browse_files.html.dtml.orig 2003-01-24 23:28:08.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/editor_browse_files.html.dtml 2004-06-25 23:09:39.000000000 +0800
@@ -3,8 +3,12 @@
Visual editor browse documents for links.
S Babu - 3/14/2001
</dtml-comment>
+<dtml-let charset="portal_properties.site_properties.default_charset"
+ contenttype="'text/html; charset=' + charset">
+<dtml-call expr="REQUEST.RESPONSE.setHeader('Content-Type', contenttype)">
<HTML>
<HEAD>
+<META HTTP-EQUIV="Content-Type" CONTENT="&dtml-contenttype;">
<TITLE>Browse Files</TITLE>
<STYLE TYPE="text/css">
BODY {margin:0; font-family:Verdana; font-size:12; background:white;}
@@ -26,15 +30,16 @@
<dtml-tree branches_expr="buildTree()" nowrap=1 sort=id>
<dtml-if "_['id'] != 'list.html' and _['id'] != 'list.inc'">
<IMG SRC="<dtml-var SCRIPT_NAME>/<dtml-var icon>">
- <A HREF="#" onClick="top.document.forms[0].elements['LinkUrl'].value='<dtml-var absolute_url>';"><dtml-var id><dtml-if title> (<dtml-var title size="30" html_quote>)</dtml-if></a>
+ <A HREF="#" onClick="top.document.forms[0].elements['LinkUrl'].value='<dtml-var absolute_url>';"><dtml-var id><dtml-if title> (<dtml-if expr="isinstance(title, unicode)"><dtml-var expr="title.encode(charset)" size="30" html_quote><dtml-else><dtml-var title size="30" html_quote></dtml-if>)</dtml-if></A>
</dtml-if>
</dtml-tree>
<dtml-except>
<p>
Sorry. You should not be seeing this. Since you are seeing
-this anyway, please contact [email protected] so that he can
+this anyway, please contact [email protected] so that he can
work with you to fix this problem.
</p>
</dtml-try>
</BODY>
</HTML>
+</dtml-let>
--- CMFVisualEditor/skins/visualeditor/editor_browse_images.html.dtml.orig 2003-01-27 19:02:30.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/editor_browse_images.html.dtml 2004-06-25 14:14:31.000000000 +0800
@@ -5,6 +5,11 @@
</dtml-comment>
<HTML>
<HEAD>
+<dtml-let charset="portal_properties.site_properties.default_charset"
+ contenttype="'text/html; charset=' + charset">
+<dtml-call expr="REQUEST.RESPONSE.setHeader('Content-Type', contenttype)">
+<META HTTP-EQUIV="Content-Type" CONTENT="&dtml-contenttype;">
+</dtml-let>
<TITLE>Browse Files</TITLE>
<STYLE TYPE="text/css">
BODY {margin:0; font-family:Verdana; font-size:12; background:white;}
@@ -31,7 +36,7 @@
<dtml-except>
<p>
Sorry. You should not be seeing this. Since you are seeing
-this anyway, please contact the site administrator so that he can
+this anyway, please contact [email protected] so that he can
work with you to fix this problem.
</p>
</dtml-try>
--- CMFVisualEditor/skins/visualeditor/visualeditor_edit.pt.orig 2003-02-19 21:12:45.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_edit.pt 2004-06-25 13:57:29.000000000 +0800
@@ -1,6 +1,11 @@
<html i18n:domain="visualeditor">
<head>
<meta name="generator" content="GVIM 5.5">
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title>Visual Editor</title>
<style TYPE="text/css">
<!--
@@ -392,38 +397,38 @@
<div class="tbToolbar" ID="FormatToolbar">
<select ID="ParagraphStyle" class="tbGeneral" style="width:90" TITLE="Paragraph Format" i18n:attributes="title" LANGUAGE="javascript" onchange="return ParagraphStyle_onchange()">
<option value="Normal" i18n:translate="">Normal</option>
- <option value="Heading 1" i18n:translate="">Heading 1</option>
- <option value="Heading 2" i18n:translate="">Heading 2</option>
- <option value="Heading 3" i18n:translate="">Heading 3</option>
- <option value="Heading 4" i18n:translate="">Heading 4</option>
- <option value="Heading 5" i18n:translate="">Heading 5</option>
- <option value="Heading 6" i18n:translate="">Heading 6</option>
- <option value="Address" i18n:translate="">Address</option>
- <option value="Formatted" i18n:translate="">Formatted</option>
+ <option value="Heading 1" i18n:translate="" i18n:attributes="value">Heading 1</option>
+ <option value="Heading 2" i18n:translate="" i18n:attributes="value">Heading 2</option>
+ <option value="Heading 3" i18n:translate="" i18n:attributes="value">Heading 3</option>
+ <option value="Heading 4" i18n:translate="" i18n:attributes="value">Heading 4</option>
+ <option value="Heading 5" i18n:translate="" i18n:attributes="value">Heading 5</option>
+ <option value="Heading 6" i18n:translate="" i18n:attributes="value">Heading 6</option>
+ <option value="Address" i18n:translate="" i18n:attributes="value">Address</option>
+ <option value="Formatted" i18n:translate="" i18n:attributes="value">Formatted</option>
</select>
<!--<select ID="FontName" class="tbGeneral" style="width:140" TITLE="Font Name" i18n:attributes="title" LANGUAGE="javascript" onchange="return FontName_onchange()">
- <option value="Arial" i18n:translate="">Arial</option>
- <option value="Verdana" i18n:translate="">Verdana</option>
- <option value="Courier New" i18n:translate="">Courier New</option>
- <option value="Times New Roman" i18n:translate="">Times New Roman</option>
+ <option value="Arial" i18n:translate="" i18n:attributes="value">Arial</option>
+ <option value="Verdana" i18n:translate="" i18n:attributes="value">Verdana</option>
+ <option value="Courier New" i18n:translate="" i18n:attributes="value">Courier New</option>
+ <option value="Times New Roman" i18n:translate="" i18n:attributes="value">Times New Roman</option>
</select>-->
<select ID="ImageSize" class="tbGeneral" style="width:90" TITLE="Image Size" i18n:attributes="title" LANGUAGE="javascript" onchange="return ImageSize_onchange(this.options[this.selectedIndex].value)">
- <option value="original" i18n:translate="">Original</option>
- <option value="thumbnail" i18n:translate="">Thumbnail</option>
- <option value="xsmall" i18n:translate="">XSmall</option>
- <option value="small" i18n:translate="">Small</option>
- <option value="medium" i18n:translate="">Medium</option>
- <option value="large" i18n:translate="">Large</option>
- <option value="xlarge" i18n:translate="">XLarge</option>
+ <option value="original" i18n:translate="" i18n:attributes="value">Original</option>
+ <option value="thumbnail" i18n:translate="" i18n:attributes="value">Thumbnail</option>
+ <option value="xsmall" i18n:translate="" i18n:attributes="value">XSmall</option>
+ <option value="small" i18n:translate="" i18n:attributes="value">Small</option>
+ <option value="medium" i18n:translate="" i18n:attributes="value">Medium</option>
+ <option value="large" i18n:translate="" i18n:attributes="value">Large</option>
+ <option value="xlarge" i18n:translate="" i18n:attributes="value">XLarge</option>
</select>
<!--<select tal:condition="python:0" ID="FontSize" class="tbGeneral" style="width:40" TITLE="Font Size" i18n:attributes="title" LANGUAGE="javascript" onchange="return FontSize_onchange()">
- <option value="1" i18n:translate="">1</option>
- <option value="2" i18n:translate="">2</option>
- <option value="3" i18n:translate="">3</option>
- <option value="4" i18n:translate="">4</option>
- <option value="5" i18n:translate="">5</option>
- <option value="6" i18n:translate="">6</option>
- <option value="7" i18n:translate="">7</option>
+ <option value="1" i18n:translate="" i18n:attributes="value">1</option>
+ <option value="2" i18n:translate="" i18n:attributes="value">2</option>
+ <option value="3" i18n:translate="" i18n:attributes="value">3</option>
+ <option value="4" i18n:translate="" i18n:attributes="value">4</option>
+ <option value="5" i18n:translate="" i18n:attributes="value">5</option>
+ <option value="6" i18n:translate="" i18n:attributes="value">6</option>
+ <option value="7" i18n:translate="" i18n:attributes="value">7</option>
</select>--->
<div class="tbSeparator"></div>
--- CMFVisualEditor/skins/visualeditor/visualeditor_insertimage.pt.orig 2003-02-19 21:12:45.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_insertimage.pt 2004-06-25 13:57:29.000000000 +0800
@@ -4,6 +4,11 @@
<head>
<meta content="HTML Tidy for Linux/x86 (vers 1st January 2003), see www.w3.org"
name="generator" />
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title i18n:translate="">
Insert Picture
</title>
--- CMFVisualEditor/skins/visualeditor/visualeditor_insertlink.pt.orig 2003-01-27 02:10:42.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_insertlink.pt 2004-06-25 13:57:29.000000000 +0800
@@ -4,6 +4,11 @@
<head>
<meta content="HTML Tidy for Linux/x86 (vers 1st January 2003), see www.w3.org"
name="generator" />
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title i18n:translate="">
Insert Link
</title>
--- CMFVisualEditor/skins/visualeditor/visualeditor_inserttable.pt.orig 2003-01-27 02:10:42.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_inserttable.pt 2004-06-25 13:57:29.000000000 +0800
@@ -4,6 +4,11 @@
<head>
<meta content="HTML Tidy for Linux/x86 (vers 1st January 2003), see www.w3.org"
name="generator" />
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title i18n:translate="">
Enter Table Information
</title>
--- CMFVisualEditor/skins/visualeditor/visualeditor_selectcolor.pt.orig 2003-01-27 02:10:42.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_selectcolor.pt 2004-06-25 13:57:29.000000000 +0800
@@ -2,6 +2,11 @@
<head>
<meta content="HTML Tidy for Linux/x86 (vers 1st January 2003), see www.w3.org"
name="generator" />
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title i18n:translate="">
Select Color
</title>
+++ CMFVisualEditor/skins/visualeditor/editor_browse_files.html.dtml 2004-06-25 23:09:39.000000000 +0800
@@ -3,8 +3,12 @@
Visual editor browse documents for links.
S Babu - 3/14/2001
</dtml-comment>
+<dtml-let charset="portal_properties.site_properties.default_charset"
+ contenttype="'text/html; charset=' + charset">
+<dtml-call expr="REQUEST.RESPONSE.setHeader('Content-Type', contenttype)">
<HTML>
<HEAD>
+<META HTTP-EQUIV="Content-Type" CONTENT="&dtml-contenttype;">
<TITLE>Browse Files</TITLE>
<STYLE TYPE="text/css">
BODY {margin:0; font-family:Verdana; font-size:12; background:white;}
@@ -26,15 +30,16 @@
<dtml-tree branches_expr="buildTree()" nowrap=1 sort=id>
<dtml-if "_['id'] != 'list.html' and _['id'] != 'list.inc'">
<IMG SRC="<dtml-var SCRIPT_NAME>/<dtml-var icon>">
- <A HREF="#" onClick="top.document.forms[0].elements['LinkUrl'].value='<dtml-var absolute_url>';"><dtml-var id><dtml-if title> (<dtml-var title size="30" html_quote>)</dtml-if></a>
+ <A HREF="#" onClick="top.document.forms[0].elements['LinkUrl'].value='<dtml-var absolute_url>';"><dtml-var id><dtml-if title> (<dtml-if expr="isinstance(title, unicode)"><dtml-var expr="title.encode(charset)" size="30" html_quote><dtml-else><dtml-var title size="30" html_quote></dtml-if>)</dtml-if></A>
</dtml-if>
</dtml-tree>
<dtml-except>
<p>
Sorry. You should not be seeing this. Since you are seeing
-this anyway, please contact [email protected] so that he can
+this anyway, please contact [email protected] so that he can
work with you to fix this problem.
</p>
</dtml-try>
</BODY>
</HTML>
+</dtml-let>
--- CMFVisualEditor/skins/visualeditor/editor_browse_images.html.dtml.orig 2003-01-27 19:02:30.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/editor_browse_images.html.dtml 2004-06-25 14:14:31.000000000 +0800
@@ -5,6 +5,11 @@
</dtml-comment>
<HTML>
<HEAD>
+<dtml-let charset="portal_properties.site_properties.default_charset"
+ contenttype="'text/html; charset=' + charset">
+<dtml-call expr="REQUEST.RESPONSE.setHeader('Content-Type', contenttype)">
+<META HTTP-EQUIV="Content-Type" CONTENT="&dtml-contenttype;">
+</dtml-let>
<TITLE>Browse Files</TITLE>
<STYLE TYPE="text/css">
BODY {margin:0; font-family:Verdana; font-size:12; background:white;}
@@ -31,7 +36,7 @@
<dtml-except>
<p>
Sorry. You should not be seeing this. Since you are seeing
-this anyway, please contact the site administrator so that he can
+this anyway, please contact [email protected] so that he can
work with you to fix this problem.
</p>
</dtml-try>
--- CMFVisualEditor/skins/visualeditor/visualeditor_edit.pt.orig 2003-02-19 21:12:45.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_edit.pt 2004-06-25 13:57:29.000000000 +0800
@@ -1,6 +1,11 @@
<html i18n:domain="visualeditor">
<head>
<meta name="generator" content="GVIM 5.5">
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title>Visual Editor</title>
<style TYPE="text/css">
<!--
@@ -392,38 +397,38 @@
<div class="tbToolbar" ID="FormatToolbar">
<select ID="ParagraphStyle" class="tbGeneral" style="width:90" TITLE="Paragraph Format" i18n:attributes="title" LANGUAGE="javascript" onchange="return ParagraphStyle_onchange()">
<option value="Normal" i18n:translate="">Normal</option>
- <option value="Heading 1" i18n:translate="">Heading 1</option>
- <option value="Heading 2" i18n:translate="">Heading 2</option>
- <option value="Heading 3" i18n:translate="">Heading 3</option>
- <option value="Heading 4" i18n:translate="">Heading 4</option>
- <option value="Heading 5" i18n:translate="">Heading 5</option>
- <option value="Heading 6" i18n:translate="">Heading 6</option>
- <option value="Address" i18n:translate="">Address</option>
- <option value="Formatted" i18n:translate="">Formatted</option>
+ <option value="Heading 1" i18n:translate="" i18n:attributes="value">Heading 1</option>
+ <option value="Heading 2" i18n:translate="" i18n:attributes="value">Heading 2</option>
+ <option value="Heading 3" i18n:translate="" i18n:attributes="value">Heading 3</option>
+ <option value="Heading 4" i18n:translate="" i18n:attributes="value">Heading 4</option>
+ <option value="Heading 5" i18n:translate="" i18n:attributes="value">Heading 5</option>
+ <option value="Heading 6" i18n:translate="" i18n:attributes="value">Heading 6</option>
+ <option value="Address" i18n:translate="" i18n:attributes="value">Address</option>
+ <option value="Formatted" i18n:translate="" i18n:attributes="value">Formatted</option>
</select>
<!--<select ID="FontName" class="tbGeneral" style="width:140" TITLE="Font Name" i18n:attributes="title" LANGUAGE="javascript" onchange="return FontName_onchange()">
- <option value="Arial" i18n:translate="">Arial</option>
- <option value="Verdana" i18n:translate="">Verdana</option>
- <option value="Courier New" i18n:translate="">Courier New</option>
- <option value="Times New Roman" i18n:translate="">Times New Roman</option>
+ <option value="Arial" i18n:translate="" i18n:attributes="value">Arial</option>
+ <option value="Verdana" i18n:translate="" i18n:attributes="value">Verdana</option>
+ <option value="Courier New" i18n:translate="" i18n:attributes="value">Courier New</option>
+ <option value="Times New Roman" i18n:translate="" i18n:attributes="value">Times New Roman</option>
</select>-->
<select ID="ImageSize" class="tbGeneral" style="width:90" TITLE="Image Size" i18n:attributes="title" LANGUAGE="javascript" onchange="return ImageSize_onchange(this.options[this.selectedIndex].value)">
- <option value="original" i18n:translate="">Original</option>
- <option value="thumbnail" i18n:translate="">Thumbnail</option>
- <option value="xsmall" i18n:translate="">XSmall</option>
- <option value="small" i18n:translate="">Small</option>
- <option value="medium" i18n:translate="">Medium</option>
- <option value="large" i18n:translate="">Large</option>
- <option value="xlarge" i18n:translate="">XLarge</option>
+ <option value="original" i18n:translate="" i18n:attributes="value">Original</option>
+ <option value="thumbnail" i18n:translate="" i18n:attributes="value">Thumbnail</option>
+ <option value="xsmall" i18n:translate="" i18n:attributes="value">XSmall</option>
+ <option value="small" i18n:translate="" i18n:attributes="value">Small</option>
+ <option value="medium" i18n:translate="" i18n:attributes="value">Medium</option>
+ <option value="large" i18n:translate="" i18n:attributes="value">Large</option>
+ <option value="xlarge" i18n:translate="" i18n:attributes="value">XLarge</option>
</select>
<!--<select tal:condition="python:0" ID="FontSize" class="tbGeneral" style="width:40" TITLE="Font Size" i18n:attributes="title" LANGUAGE="javascript" onchange="return FontSize_onchange()">
- <option value="1" i18n:translate="">1</option>
- <option value="2" i18n:translate="">2</option>
- <option value="3" i18n:translate="">3</option>
- <option value="4" i18n:translate="">4</option>
- <option value="5" i18n:translate="">5</option>
- <option value="6" i18n:translate="">6</option>
- <option value="7" i18n:translate="">7</option>
+ <option value="1" i18n:translate="" i18n:attributes="value">1</option>
+ <option value="2" i18n:translate="" i18n:attributes="value">2</option>
+ <option value="3" i18n:translate="" i18n:attributes="value">3</option>
+ <option value="4" i18n:translate="" i18n:attributes="value">4</option>
+ <option value="5" i18n:translate="" i18n:attributes="value">5</option>
+ <option value="6" i18n:translate="" i18n:attributes="value">6</option>
+ <option value="7" i18n:translate="" i18n:attributes="value">7</option>
</select>--->
<div class="tbSeparator"></div>
--- CMFVisualEditor/skins/visualeditor/visualeditor_insertimage.pt.orig 2003-02-19 21:12:45.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_insertimage.pt 2004-06-25 13:57:29.000000000 +0800
@@ -4,6 +4,11 @@
<head>
<meta content="HTML Tidy for Linux/x86 (vers 1st January 2003), see www.w3.org"
name="generator" />
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title i18n:translate="">
Insert Picture
</title>
--- CMFVisualEditor/skins/visualeditor/visualeditor_insertlink.pt.orig 2003-01-27 02:10:42.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_insertlink.pt 2004-06-25 13:57:29.000000000 +0800
@@ -4,6 +4,11 @@
<head>
<meta content="HTML Tidy for Linux/x86 (vers 1st January 2003), see www.w3.org"
name="generator" />
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title i18n:translate="">
Insert Link
</title>
--- CMFVisualEditor/skins/visualeditor/visualeditor_inserttable.pt.orig 2003-01-27 02:10:42.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_inserttable.pt 2004-06-25 13:57:29.000000000 +0800
@@ -4,6 +4,11 @@
<head>
<meta content="HTML Tidy for Linux/x86 (vers 1st January 2003), see www.w3.org"
name="generator" />
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title i18n:translate="">
Enter Table Information
</title>
--- CMFVisualEditor/skins/visualeditor/visualeditor_selectcolor.pt.orig 2003-01-27 02:10:42.000000000 +0800
+++ CMFVisualEditor/skins/visualeditor/visualeditor_selectcolor.pt 2004-06-25 13:57:29.000000000 +0800
@@ -2,6 +2,11 @@
<head>
<meta content="HTML Tidy for Linux/x86 (vers 1st January 2003), see www.w3.org"
name="generator" />
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
+ tal:define="charset portal_properties/site_properties/default_charset|string:utf-8;
+ contenttype string:text/html;;charset=${charset};
+ dummy python:request['RESPONSE'].setHeader('Content-Type', contenttype)"
+ tal:attributes="content contenttype" />
<title i18n:translate="">
Select Color
</title>