[kupu-checkins] r44509 - in kupu/trunk/kupu: common common/kupudrawers i18n plone
duncan at codespeak.net
duncan at codespeak.net
Mon Jun 25 16:15:03 CEST 2007
Author: duncan
Date: Mon Jun 25 16:15:02 2007
New Revision: 44509
Modified:
kupu/trunk/kupu/common/kupu.pox
kupu/trunk/kupu/common/kupubasetools.js
kupu/trunk/kupu/common/kupucnftable.js
kupu/trunk/kupu/common/kupudrawers/drawer.xsl
kupu/trunk/kupu/common/kupueditor.js
kupu/trunk/kupu/i18n/kupu.pot
kupu/trunk/kupu/plone/body.kupu
kupu/trunk/kupu/plone/kupu_config.pt
kupu/trunk/kupu/plone/libraries.pt
kupu/trunk/kupu/plone/resource_types.pt
kupu/trunk/kupu/plone/wysiwyg_support.kupu
kupu/trunk/kupu/plone/zmi_links.pt
kupu/trunk/kupu/plone/zmi_toolbar.pt
Log:
Started i18n cleanup:
Removed some of the more verbose log or purely internal log messages.
Rebuilt kupu.pox
Added missing i18n attributes to Plone files.
Modified: kupu/trunk/kupu/common/kupu.pox
==============================================================================
--- kupu/trunk/kupu/common/kupu.pox (original)
+++ kupu/trunk/kupu/common/kupu.pox Mon Jun 25 16:15:02 2007
@@ -1,190 +1,6 @@
<?xml version="1.0" ?>
<catalog xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="kupu">
- <message filenames="./common/kupuinit.js ./common/kupuinit_form.js ./common/kupuinit_genericelements.js">
- <msgid>
- There was a problem initializing the drawers. Most likely the XSLT or XML files aren\'t available. If this is not the Kupu demo version, check your files or the service that provide them (error: ${error}).
- </msgid>
- <msgstr i18n:translate="">
- There was a problem initializing the drawers. Most likely the XSLT or XML files aren\'t available. If this is not the Kupu demo version, check your files or the service that provide them (error: ${error}).
- </msgstr>
- </message>
- <message filenames="./common/kupubeforeunload.js">
- <msgid>
- Your form has not been saved. All changes you have made will be lost
- </msgid>
- <msgstr i18n:translate="">
- Your form has not been saved. All changes you have made will be lost
- </msgstr>
- </message>
- <message filenames="./common/kupusourceedit.js">
- <msgid>
- Source edit tool initialized
- </msgid>
- <msgstr i18n:translate="">
- Source edit tool initialized
- </msgstr>
- </message>
- <message filenames="./common/kupusourceedit.js">
- <msgid>
- Cleaning up HTML...
- </msgid>
- <msgstr i18n:translate="">
- Cleaning up HTML...
- </msgstr>
- </message>
- <message filenames="./common/kupumultieditor.js ./common/kupueditor.js">
- <msgid>
- Editor initialized
- </msgid>
- <msgstr i18n:translate="">
- Editor initialized
- </msgstr>
- </message>
- <message filenames="./common/kupumultieditor.js ./common/kupueditor.js">
- <msgid>
- Couldn\'t set design mode. Kupu will not work on this browser.
- </msgid>
- <msgstr i18n:translate="">
- Couldn\'t set design mode. Kupu will not work on this browser.
- </msgstr>
- </message>
- <message filenames="./common/kupumultieditor.js ./common/kupueditor.js">
- <msgid>
- Please wait while saving document...
- </msgid>
- <msgstr i18n:translate="">
- Please wait while saving document...
- </msgstr>
- </message>
- <message filenames="./common/kupumultieditor.js ./common/kupueditor.js">
- <msgid>
- Starting HTML cleanup
- </msgid>
- <msgstr i18n:translate="">
- Starting HTML cleanup
- </msgstr>
- </message>
- <message filenames="./common/kupumultieditor.js ./common/kupueditor.js">
- <msgid>
- Cleanup done, sending document to server
- </msgid>
- <msgstr i18n:translate="">
- Cleanup done, sending document to server
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Exception while processing updateState on ${id}: ${msg}
- </msgid>
- <msgstr i18n:translate="">
- Exception while processing updateState on ${id}: ${msg}
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- No destination URL available!
- </msgid>
- <msgstr i18n:translate="">
- No destination URL available!
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Request sent to server
- </msgid>
- <msgstr i18n:translate="">
- Request sent to server
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Sending request to server
- </msgid>
- <msgstr i18n:translate="">
- Sending request to server
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Editor not initialized yet!
- </msgid>
- <msgstr i18n:translate="">
- Editor not initialized yet!
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Command ${command} executed
- </msgid>
- <msgstr i18n:translate="">
- Command ${command} executed
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Command ${command} executed with parameter ${param}
- </msgid>
- <msgstr i18n:translate="">
- Command ${command} executed with parameter ${param}
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Browser not supported!
- </msgid>
- <msgstr i18n:translate="">
- Browser not supported!
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Error saving your data.\nResponse status: ${status}.\nCheck your server log for more information.
- </msgid>
- <msgstr i18n:translate="">
- Error saving your data.\nResponse status: ${status}.\nCheck your server log for more information.
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Error saving document
- </msgid>
- <msgstr i18n:translate="">
- Error saving document
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Document saved
- </msgid>
- <msgstr i18n:translate="">
- Document saved
- </msgstr>
- </message>
- <message filenames="./common/kupueditor.js">
- <msgid>
- Error placing back selection
- </msgid>
- <msgstr i18n:translate="">
- Error placing back selection
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
- <msgid>
- Deprecation warning: KupuTool._selectSelectItem
- </msgid>
- <msgstr i18n:translate="">
- Deprecation warning: KupuTool._selectSelectItem
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
- <msgid>
- Deprecation warning: KupuToolBox._selectSelectItem
- </msgid>
- <msgstr i18n:translate="">
- Deprecation warning: KupuToolBox._selectSelectItem
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Cutting from JavaScript is disabled on your Mozilla due to security settings. For more information, read http://www.mozilla.org/editor/midasdemo/securityprefs.html
</msgid>
@@ -192,7 +8,7 @@
Cutting from JavaScript is disabled on your Mozilla due to security settings. For more information, read http://www.mozilla.org/editor/midasdemo/securityprefs.html
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Copying from JavaScript is disabled on your Mozilla due to security settings. For more information, read http://www.mozilla.org/editor/midasdemo/securityprefs.html
</msgid>
@@ -200,7 +16,7 @@
Copying from JavaScript is disabled on your Mozilla due to security settings. For more information, read http://www.mozilla.org/editor/midasdemo/securityprefs.html
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Pasting from JavaScript is disabled on your Mozilla due to security settings. For more information, read http://www.mozilla.org/editor/midasdemo/securityprefs.html
</msgid>
@@ -208,7 +24,7 @@
Pasting from JavaScript is disabled on your Mozilla due to security settings. For more information, read http://www.mozilla.org/editor/midasdemo/securityprefs.html
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Cut
</msgid>
@@ -216,7 +32,7 @@
Cut
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Copy
</msgid>
@@ -224,7 +40,7 @@
Copy
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Paste
</msgid>
@@ -232,15 +48,7 @@
Paste
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
- <msgid>
- Colorchooser tool initialized
- </msgid>
- <msgstr i18n:translate="">
- Colorchooser tool initialized
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Color chosen
</msgid>
@@ -248,7 +56,7 @@
Color chosen
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
No head in document!
</msgid>
@@ -256,15 +64,7 @@
No head in document!
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
- <msgid>
- Property tool initialized
- </msgid>
- <msgstr i18n:translate="">
- Property tool initialized
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Properties modified
</msgid>
@@ -272,23 +72,7 @@
Properties modified
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
- <msgid>
- Link tool initialized
- </msgid>
- <msgstr i18n:translate="">
- Link tool initialized
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
- <msgid>
- Link added
- </msgid>
- <msgstr i18n:translate="">
- Link added
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Not inside link
</msgid>
@@ -296,15 +80,7 @@
Not inside link
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
- <msgid>
- Link removed
- </msgid>
- <msgstr i18n:translate="">
- Link removed
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Delete link
</msgid>
@@ -312,7 +88,7 @@
Delete link
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Create link
</msgid>
@@ -320,31 +96,7 @@
Create link
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
- <msgid>
- Link modified
- </msgid>
- <msgstr i18n:translate="">
- Link modified
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
- <msgid>
- Image tool initialized
- </msgid>
- <msgstr i18n:translate="">
- Image tool initialized
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js ./silva/kupusilvatools.js">
- <msgid>
- Image inserted
- </msgid>
- <msgstr i18n:translate="">
- Image inserted
- </msgstr>
- </message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Create image
</msgid>
@@ -352,7 +104,7 @@
Create image
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Add table
</msgid>
@@ -360,7 +112,7 @@
Add table
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Add row
</msgid>
@@ -368,7 +120,7 @@
Add row
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Delete row
</msgid>
@@ -376,7 +128,7 @@
Delete row
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Add column
</msgid>
@@ -384,7 +136,7 @@
Add column
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Delete column
</msgid>
@@ -392,7 +144,7 @@
Delete column
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Delete Table
</msgid>
@@ -400,7 +152,7 @@
Delete Table
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
Invalid table size
</msgid>
@@ -408,183 +160,183 @@
Invalid table size
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
- Table added
+ No row to delete
</msgid>
<msgstr i18n:translate="">
- Table added
+ No row to delete
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
- Table row added
+ No parentcolumn found!
</msgid>
<msgstr i18n:translate="">
- Table row added
+ No parentcolumn found!
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
- No row to delete
+ Not inside a table!
</msgid>
<msgstr i18n:translate="">
- No row to delete
+ Not inside a table!
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
- Table row removed
+ Could not set status bar message, check your browser\'s security settings.
</msgid>
<msgstr i18n:translate="">
- Table row removed
+ Could not set status bar message, check your browser\'s security settings.
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
- No parentcolumn found!
+ View source
</msgid>
<msgstr i18n:translate="">
- No parentcolumn found!
+ View source
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubasetools.js">
<msgid>
- tdindex: ${tdindex}
+ Not inside a definition list element!
</msgid>
<msgstr i18n:translate="">
- tdindex: ${tdindex}
+ Not inside a definition list element!
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupubeforeunload.js">
<msgid>
- Table column added
+ Discard changes? If you click OK, any changes you have made will be lost.
</msgid>
<msgstr i18n:translate="">
- Table column added
+ Discard changes? If you click OK, any changes you have made will be lost.
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupucnftable.js">
<msgid>
- Table column deleted
+ Not inside a row!
</msgid>
<msgstr i18n:translate="">
- Table column deleted
+ Not inside a row!
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupudrawers.js">
<msgid>
- Not inside a table!
+ Can only preview web urls
</msgid>
<msgstr i18n:translate="">
- Not inside a table!
+ Can only preview web urls
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupudrawers.js">
<msgid>
- Table removed
+ Right click to copy link
</msgid>
<msgstr i18n:translate="">
- Table removed
+ Right click to copy link
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupueditor.js">
<msgid>
- Recursion detected when counting column position
+ No destination URL available!
</msgid>
<msgstr i18n:translate="">
- Recursion detected when counting column position
+ No destination URL available!
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupueditor.js kupumultieditor.js">
<msgid>
- Table cleaned up
+ Please wait while saving document...
</msgid>
<msgstr i18n:translate="">
- Table cleaned up
+ Please wait while saving document...
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js ./common/kupucnftable.js">
+ <message filenames="kupueditor.js kupumultieditor.js">
<msgid>
- Table tool initialized
+ Starting HTML cleanup
</msgid>
<msgstr i18n:translate="">
- Table tool initialized
+ Starting HTML cleanup
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupueditor.js kupumultieditor.js">
<msgid>
- List style tool initialized
+ Cleanup done, sending document to server
</msgid>
<msgstr i18n:translate="">
- List style tool initialized
+ Cleanup done, sending document to server
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupueditor.js">
<msgid>
- List style changed
+ Request sent to server
</msgid>
<msgstr i18n:translate="">
- List style changed
+ Request sent to server
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupueditor.js">
<msgid>
- Could not set status bar message, check your browser\'s security settings.
+ Sending request to server
</msgid>
<msgstr i18n:translate="">
- Could not set status bar message, check your browser\'s security settings.
+ Sending request to server
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupueditor.js">
<msgid>
- View source
+ Editor not initialized yet!
</msgid>
<msgstr i18n:translate="">
- View source
+ Editor not initialized yet!
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupueditor.js">
<msgid>
- Not inside a definition list element!
+ Browser not supported!
</msgid>
<msgstr i18n:translate="">
- Not inside a definition list element!
+ Browser not supported!
</msgstr>
</message>
- <message filenames="./common/kupubasetools.js">
+ <message filenames="kupueditor.js">
<msgid>
- Zoom tool initialized
+ Error saving your data.\nResponse status: ${status}.\nCheck your server log for more information.
</msgid>
<msgstr i18n:translate="">
- Zoom tool initialized
+ Error saving your data.\nResponse status: ${status}.\nCheck your server log for more information.
</msgstr>
</message>
- <message filenames="./common/kupuspellchecker.js">
+ <message filenames="kupueditor.js">
<msgid>
- There were no errors.
+ Error saving document
</msgid>
<msgstr i18n:translate="">
- There were no errors.
+ Error saving document
</msgstr>
</message>
- <message filenames="./common/kupuspellchecker.js">
+ <message filenames="kupueditor.js">
<msgid>
- Error loading data, status ${status}
+ Document saved
</msgid>
<msgstr i18n:translate="">
- Error loading data, status ${status}
+ Document saved
</msgstr>
</message>
- <message filenames="./common/kupuspellchecker.js">
+ <message filenames="kupueditor.js kupumultieditor.js">
<msgid>
- This feature requires pop-ups to be enabled on your browser!
+ Couldn\'t set design mode. Kupu will not work on this browser.
</msgid>
<msgstr i18n:translate="">
- This feature requires pop-ups to be enabled on your browser!
+ Couldn\'t set design mode. Kupu will not work on this browser.
</msgstr>
</message>
- <message filenames="./common/kupuhelpers.js">
+ <message filenames="kupuhelpers.js">
<msgid>
Unsupported browser!
</msgid>
@@ -592,7 +344,7 @@
Unsupported browser!
</msgstr>
</message>
- <message filenames="./common/kupuhelpers.js">
+ <message filenames="kupuhelpers.js">
<msgid>
exception ${message} while registering an event handler for element ${element}, event ${event}, method ${method}
</msgid>
@@ -600,7 +352,7 @@
exception ${message} while registering an event handler for element ${element}, event ${event}, method ${method}
</msgstr>
</message>
- <message filenames="./common/kupuhelpers.js">
+ <message filenames="kupuhelpers.js">
<msgid>
No element found in the config island!
</msgid>
@@ -608,7 +360,7 @@
No element found in the config island!
</msgstr>
</message>
- <message filenames="./common/kupuhelpers.js">
+ <message filenames="kupuhelpers.js">
<msgid>
Selection not inside the node!
</msgid>
@@ -616,7 +368,7 @@
Selection not inside the node!
</msgstr>
</message>
- <message filenames="./common/kupuhelpers.js">
+ <message filenames="kupuhelpers.js">
<msgid>
Start node offset detected in a node without children!
</msgid>
@@ -624,7 +376,7 @@
Start node offset detected in a node without children!
</msgstr>
</message>
- <message filenames="./common/kupuhelpers.js">
+ <message filenames="kupuhelpers.js">
<msgid>
End node offset detected in a node without children!
</msgid>
@@ -632,7 +384,7 @@
End node offset detected in a node without children!
</msgstr>
</message>
- <message filenames="./common/kupuhelpers.js">
+ <message filenames="kupuhelpers.js">
<msgid>
Start offset out of range!
</msgid>
@@ -640,7 +392,7 @@
Start offset out of range!
</msgstr>
</message>
- <message filenames="./common/kupuhelpers.js">
+ <message filenames="kupuhelpers.js">
<msgid>
End offset out of range!
</msgid>
@@ -648,7 +400,7 @@
End offset out of range!
</msgstr>
</message>
- <message filenames="./common/kupuhelpers.js">
+ <message filenames="kupuhelpers.js">
<msgid>
Offset out of document range
</msgid>
@@ -656,76 +408,92 @@
Offset out of document range
</msgstr>
</message>
- <message filenames="./common/kupustart_multi.js ./common/kupustart_form.js">
+ <message filenames="kupuinit_form.js kupuinit_genericelements.js kupuinit.js kupuinit_multi.js">
<msgid>
- Error loading translation (status ${status} ), falling back to english
+ There was a problem initializing the drawers. Most likely the XSLT or XML files aren\'t available. If this is not the Kupu demo version, check your files or the service that provide them (error: ${error}).
</msgid>
<msgstr i18n:translate="">
- Error loading translation (status ${status} ), falling back to english
+ There was a problem initializing the drawers. Most likely the XSLT or XML files aren\'t available. If this is not the Kupu demo version, check your files or the service that provide them (error: ${error}).
</msgstr>
</message>
- <message filenames="./common/kupucnftable.js">
+ <message filenames="kupumultieditor.js">
<msgid>
- Not inside a row!
+ Editor initialized
</msgid>
<msgstr i18n:translate="">
- Not inside a row!
+ Editor initialized
</msgstr>
</message>
- <message filenames="./common/kupucnftable.js">
+ <message filenames="kupusaveonpart.js">
<msgid>
- Row repeated
+ You are leaving the editor. Do you want to save your changes?
</msgid>
<msgstr i18n:translate="">
- Row repeated
+ You are leaving the editor. Do you want to save your changes?
</msgstr>
</message>
- <message filenames="./common/kupucnftable.js">
+ <message filenames="kupusourceedit.js">
<msgid>
- Row repeat turned off
+ Source edit tool initialized
</msgid>
<msgstr i18n:translate="">
- Row repeat turned off
+ Source edit tool initialized
</msgstr>
</message>
- <message filenames="./common/kupusaveonpart.js">
+ <message filenames="kupusourceedit.js">
<msgid>
- You have unsaved changes. Do you want to save before leaving the page?
+ Cleaning up HTML...
</msgid>
<msgstr i18n:translate="">
- You have unsaved changes. Do you want to save before leaving the page?
+ Cleaning up HTML...
</msgstr>
</message>
- <message filenames="./common/kuputoolcollapser.js ./silva/kupusilvatools.js">
+ <message filenames="kupuspellchecker.js">
<msgid>
- click to unfold
+ There were no errors.
</msgid>
<msgstr i18n:translate="">
- click to unfold
+ There were no errors.
</msgstr>
</message>
- <message filenames="./common/kuputoolcollapser.js ./silva/kupusilvatools.js">
+ <message filenames="kupuspellchecker.js">
<msgid>
- click to fold
+ Error loading data, status ${status}
</msgid>
<msgstr i18n:translate="">
- click to fold
+ Error loading data, status ${status}
</msgstr>
</message>
- <message filenames="./silva/kupusilvatools.js">
+ <message filenames="kupuspellchecker.js">
<msgid>
- Illegal or missing width entry in column info!
+ This feature requires pop-ups to be enabled on your browser!
</msgid>
<msgstr i18n:translate="">
- Illegal or missing width entry in column info!
+ This feature requires pop-ups to be enabled on your browser!
</msgstr>
</message>
- <message filenames="./silva/kupusilvatools.js">
+ <message filenames="kupustart_form.js kupustart_multi.js">
<msgid>
- items
+ Error loading translation (status ${status} ), falling back to english
+ </msgid>
+ <msgstr i18n:translate="">
+ Error loading translation (status ${status} ), falling back to english
+ </msgstr>
+ </message>
+ <message filenames="kuputoolcollapser.js">
+ <msgid>
+ click to unfold
</msgid>
<msgstr i18n:translate="">
- items
+ click to unfold
+ </msgstr>
+ </message>
+ <message filenames="kuputoolcollapser.js">
+ <msgid>
+ click to fold
+ </msgid>
+ <msgstr i18n:translate="">
+ click to fold
</msgstr>
</message>
</catalog>
Modified: kupu/trunk/kupu/common/kupubasetools.js
==============================================================================
--- kupu/trunk/kupu/common/kupubasetools.js (original)
+++ kupu/trunk/kupu/common/kupubasetools.js Mon Jun 25 16:15:02 2007
@@ -72,10 +72,6 @@
};
// private methods
addEventHandler = addEventHandler;
-
- this._selectSelectItem = function(select, item) {
- this.editor.logMessage(_('Deprecation warning: KupuTool._selectSelectItem'));
- };
}
function KupuToolBox() {
@@ -90,10 +86,6 @@
this.updateState = function(selNode, event) {
/* update the toolbox according to the current iframe's situation */
};
-
- this._selectSelectItem = function(select, item) {
- this.editor.logMessage(_('Deprecation warning: KupuToolBox._selectSelectItem'));
- };
};
function noContextMenu(object) {
@@ -837,7 +829,6 @@
addEventHandler(this.hlcolorbutton, "click", this.openHlColorChooser, this);
addEventHandler(this.ccwindow, "click", this.chooseColor, this);
this.hide();
- this.editor.logMessage(_('Colorchooser tool initialized'));
};
this.updateState = function(selNode) {
@@ -973,8 +964,6 @@
}
}
}
-
- this.editor.logMessage(_('Property tool initialized'));
};
this.updateProperties = function() {
@@ -1041,7 +1030,6 @@
this.initialize = function(editor) {
this.editor = editor;
- this.editor.logMessage(_('Link tool initialized'));
};
this.createLinkHandler = function(event) {
@@ -1134,7 +1122,6 @@
this.updateLink(linkel, url, type, name, target, title);
};
}
- this.editor.logMessage(_('Link added'));
};
this.deleteLink = function() {
@@ -1149,8 +1136,6 @@
linkel.parentNode.insertBefore(linkel.childNodes[0], linkel);
};
linkel.parentNode.removeChild(linkel);
-
- this.editor.logMessage(_('Link removed'));
};
this.createContextMenuElements = function(selNode, event) {
@@ -1223,7 +1208,6 @@
var url = this.input.value;
linkel.setAttribute('href', url);
- this.editor.logMessage(_('Link modified'));
this.editor.updateState();
};
};
@@ -1236,7 +1220,6 @@
this.initialize = function(editor) {
/* attach the event handlers */
this.editor = editor;
- this.editor.logMessage(_('Image tool initialized'));
};
this.createImageHandler = function(event) {
@@ -1271,7 +1254,6 @@
img.className = imgclass;
};
this.newNode('IMG', img);
- this.editor.logMessage(_('Image inserted'));
return img;
};
@@ -1282,7 +1264,6 @@
'data':url},
[ed.newElement('param', {name:'movie', value:url})]);
this.newNode('OBJECT', obj);
- this.editor.logMessage(_('Flash inserted'));
};
this.setImageClass = function(imgclass) {
@@ -1422,8 +1403,6 @@
this.editor.insertNodeAtSelection(table);
this._setTableCellHandlers(table);
-
- this.editor.logMessage(_('Table added'));
return table;
};
@@ -1513,8 +1492,6 @@
} else {
currtbody.insertBefore(newrow, nextrow);
}
-
- this.editor.logMessage(_('Table row added'));
};
this.delTableRow = function() {
@@ -1538,8 +1515,6 @@
// remove the row
parentrow.parentNode.removeChild(parentrow);
-
- this.editor.logMessage(_('Table row removed'));
};
this.addTableColumn = function() {
@@ -1630,7 +1605,6 @@
}
}
}
- this.editor.logMessage(_('Table column added'));
};
this.delTableColumn = function() {
@@ -1701,7 +1675,6 @@
}
}
}
- this.editor.logMessage(_('Table column deleted'));
};
this.delTable = function() {
@@ -1713,7 +1686,6 @@
return;
};
table.parentNode.removeChild(table);
- this.editor.logMessage(_('Table removed'));
};
this.setColumnAlign = function(newalign) {
@@ -1790,7 +1762,7 @@
}
prevsib = prevsib.previousSibling;
if (currcolindex > 30) {
- alert(_("Recursion detected when counting column position"));
+ alert("Recursion detected when counting column position");
return;
}
}
@@ -2005,8 +1977,6 @@
if (frows.length) {
table.appendChild(tfoot);
}
-
- this.editor.logMessage(_('Table cleaned up'));
};
this.fixAllTables = function() {
@@ -2080,7 +2050,6 @@
addEventHandler(this.fixallbutton, "click", this.fixAllTables, this);
this.addtablediv.style.display = "block";
this.edittablediv.style.display = "none";
- this.editor.logMessage(_('Table tool initialized'));
};
this.updateState = function(selNode) {
@@ -2228,8 +2197,6 @@
addEventHandler(this.olselect, "change", this.setOrderedListStyle, this);
this.olselect.style.display = "none";
}
-
- this.editor.logMessage(_('List style tool initialized'));
};
this._handleStyles = function(currnode, onselect, offselect) {
@@ -2300,7 +2267,6 @@
l.setAttribute('type', this.style_to_type[style]);
}
this.editor.focusDocument();
- this.editor.logMessage(_('List style changed'));
};
this.setUnorderedListStyle = function() {
@@ -2723,8 +2689,6 @@
var iframe = editor.getInnerDocument();
this.setTabbing(iframe, firstbutton, lastbutton);
this.setTabbing(firstbutton, null, editor.getDocument().getWindow());
-
- this.editor.logMessage(_('Zoom tool initialized'));
};
};
Modified: kupu/trunk/kupu/common/kupucnftable.js
==============================================================================
--- kupu/trunk/kupu/common/kupucnftable.js (original)
+++ kupu/trunk/kupu/common/kupucnftable.js Mon Jun 25 16:15:02 2007
@@ -18,7 +18,6 @@
};
row.setAttribute('repeatable', 'repeatable');
row.className = 'repeatable';
- this.editor.logMessage(_('Row repeated'));
this.updateState(selNode);
};
@@ -32,7 +31,6 @@
row.removeAttribute('repeatable');
row.className = '';
row.removeAttribute('class');
- this.editor.logMessage(_('Row repeat turned off'));
this.updateState(selNode);
};
@@ -94,7 +92,6 @@
addEventHandler(this.fixallbutton, "click", this.tool.fixAllTables, this.tool);
this.addtablediv.style.display = "block";
this.edittablediv.style.display = "none";
- this.editor.logMessage(_('Table tool initialized'));
};
this.updateState = function(selNode) {
Modified: kupu/trunk/kupu/common/kupudrawers/drawer.xsl
==============================================================================
--- kupu/trunk/kupu/common/kupudrawers/drawer.xsl (original)
+++ kupu/trunk/kupu/common/kupudrawers/drawer.xsl Mon Jun 25 16:15:02 2007
@@ -28,7 +28,7 @@
<xsl:variable name="v" select="/libraries/param[@name='drawertitle']"></xsl:variable>
<xsl:choose>
<xsl:when test="count($v)"><xsl:value-of select="$v"/></xsl:when>
- <xsl:otherwise>Drawer</xsl:otherwise>
+ <xsl:otherwise i18n:translate="default_drawer_title">Drawer</xsl:otherwise>
</xsl:choose>
</xsl:param>
<xsl:param name="showupload">
@@ -64,7 +64,7 @@
<xsl:otherwise><xsl:value-of select="$drawertitle"/></xsl:otherwise>
</xsl:choose>
</xsl:variable>
- <xsl:template name="drawer-title">Drawer</xsl:template>
+ <xsl:template name="drawer-title" i18n:translate="default_drawer_title">Drawer</xsl:template>
<xsl:output indent="yes" method="xml" />
<xsl:preserve-space elements="form div strong br input textarea"/>
<xsl:template match="/"><!-- root is always 'libraries'? -->
@@ -394,7 +394,8 @@
</label>
<span class="kupu-detail">
<select name="image-size-selector">
- <option name="image-size-option" value="{uri}">Original</option>
+ <option name="image-size-option" value="{uri}"
+ i18n:translate="option_original">Original</option>
<xsl:apply-templates select="sizes/size" />
</select>
</span>
@@ -485,8 +486,8 @@
<xsl:if test="$ie='true'">
<xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:if>
- <option i18n:translate="" value="">top of page (default)</option>
- <option i18n:translate="" value=""><em>...fetching anchors...</em></option>
+ <option i18n:translate="top_of_page" value="">top of page (default)</option>
+ <option i18n:translate="fetching_anchors" value=""><em>...fetching anchors...</em></option>
</select>
</div>
</xsl:template>
Modified: kupu/trunk/kupu/common/kupueditor.js
==============================================================================
--- kupu/trunk/kupu/common/kupueditor.js (original)
+++ kupu/trunk/kupu/common/kupueditor.js Mon Jun 25 16:15:02 2007
@@ -122,7 +122,6 @@
} else {
this._setDesignModeWhenReady();
};
- this.logMessage(_('Editor initialized'));
};
this.setContextMenu = function(menu) {
@@ -188,8 +187,8 @@
break;
} else {
this.logMessage(
- _('Exception while processing updateState on ' +
- '${id}: ${msg}', {'id': id, 'msg': e}), 2);
+ 'Exception while processing updateState on ' +
+ '${id}: ${msg}', {'id': id, 'msg': e}, 2);
};
};
};
@@ -348,13 +347,7 @@
};
};
this.getDocument().execCommand(command, param);
- var message = _('Command ${command} executed', {'command': command});
- if (param) {
- message = _('Command ${command} executed with parameter ${param}',
- {'command': command, 'param': param});
- }
this.updateState();
- this.logMessage(message);
};
this.getSelection = function() {
Modified: kupu/trunk/kupu/i18n/kupu.pot
==============================================================================
--- kupu/trunk/kupu/i18n/kupu.pot (original)
+++ kupu/trunk/kupu/i18n/kupu.pot Mon Jun 25 16:15:02 2007
@@ -246,10 +246,6 @@
msgstr ""
#: /common/kupu.pox:None
-msgid "Deprecation warning: KupuToolBox._selectSelectItem"
-msgstr ""
-
-#: /common/kupu.pox:None
msgid "Copying from JavaScript is disabled on your Mozilla due to security settings. For more information, read http://www.mozilla.org/editor/midasdemo/securityprefs.html"
msgstr ""
Modified: kupu/trunk/kupu/plone/body.kupu
==============================================================================
--- kupu/trunk/kupu/plone/body.kupu (original)
+++ kupu/trunk/kupu/plone/body.kupu Mon Jun 25 16:15:02 2007
@@ -68,7 +68,7 @@
tal:define="floated widget/allow_file_upload | python:1;"
tal:attributes="style python:test(floated, 'float:left;;', '');"
><span class="discreet"><a class="forcekupu" href="#"
- i18n:translate="suppress-kupu"
+ i18n:translate="suppress-kupu" i18n:attributes="title"
tal:define="fs fieldset|nothing;fs python:test(fs,'&fieldset=%s'%fs,None);"
tal:attributes="href string:${request/URL0}?kupu.suppress=${fieldName}${fs};"
title="reload current page without kupu">
@@ -85,7 +85,7 @@
tal:attributes="style python:test(floated, 'float:left;;', '');"
>
<span class="discreet"><a class="forcekupu" href="#"
- i18n:translate="force-kupu"
+ i18n:translate="force-kupu" i18n:attributes="title"
tal:condition="python:portal.kupu_library_tool.isKupuEnabled(REQUEST=context.REQUEST, context=context, fieldName=fieldName)"
tal:define="fs fieldset|nothing;fs python:test(fs,'&fieldset=%s'%fs,None);"
tal:attributes="href string:${request/URL0}?kupu.convert=${fieldName}${fs};"
Modified: kupu/trunk/kupu/plone/kupu_config.pt
==============================================================================
--- kupu/trunk/kupu/plone/kupu_config.pt (original)
+++ kupu/trunk/kupu/plone/kupu_config.pt Mon Jun 25 16:15:02 2007
@@ -1,307 +1,309 @@
<metal:page define-macro="master">
-<metal:master use-macro="here/prefs_main_template/macros/master"
- i18n:domain="kupuconfig">
+ <metal:master use-macro="here/prefs_main_template/macros/master"
+ i18n:domain="kupuconfig">
-<metal:block metal:fill-slot="top_slot" define-slot="top_slot"
- tal:define="dummy python:request.set('disable_border',1)" />
+ <metal:block metal:fill-slot="top_slot" define-slot="top_slot"
+ tal:define="dummy python:request.set('disable_border',1)" />
- <metal:fillbase fill-slot="base">
- <metal:baseslot define-slot="base">
- <base href="" tal:attributes="href template/absolute_url" />
- </metal:baseslot>
- </metal:fillbase>
+ <metal:fillbase fill-slot="base">
+ <metal:baseslot define-slot="base">
+ <base href="" tal:attributes="href template/absolute_url" />
+ </metal:baseslot>
+ </metal:fillbase>
- <metal:override fill-slot="column_two_slot" />
+ <metal:override fill-slot="column_two_slot" />
-<body>
-<div metal:fill-slot="prefs_configlet_content" metal:define-slot="prefs_configlet_main"
- tal:define="errors python:request.get('errors', {});">
+ <body>
+ <div metal:fill-slot="prefs_configlet_content" metal:define-slot="prefs_configlet_main"
+ tal:define="errors python:request.get('errors', {});">
-<metal:styleslot define-slot="style_slot" />
+ <metal:styleslot define-slot="style_slot" />
-<div class="documentEditable">
+ <div class="documentEditable">
- <!-- simulating views -->
- <ul class="contentViews"
- tal:define="tabs python:('Config','kupu_config'),('Libraries','zmi_libraries'),('Resource Types','zmi_resource_types'),
- ('Documentation', 'zmi_docs'),('Links', 'zmi_links'),('Toolbar', 'zmi_toolbar'),;
+ <!-- simulating views -->
+ <ul class="contentViews"
+ tal:define="tabs python:('Config','kupu_config'),('Libraries','zmi_libraries'),('Resource Types','zmi_resource_types'),
+ ('Documentation', 'zmi_docs'),('Links', 'zmi_links'),('Toolbar', 'zmi_toolbar'),;
tabs python:[ {'label':label, 'name':name} for (label,name) in tabs ];"
- >
- <li tal:repeat="tab tabs"
- class="selected" tal:attributes="class python:template.pt_source_file()==tab['name'] and 'selected' or ''">
- <a href=""
- tal:attributes="href string:${here/absolute_url}/${tab/name}"
- i18n:translate="" tal:content="tab/label">Config</a>
- </li>
- </ul>
-
- <div class="contentActions">
-
- </div>
- <!-- End of tabs -->
- <div class="documentContent" metal:define-slot="kupu_content">
-<h1 class="documentFirstHeading"
- i18n:translate="heading_configuration">Kupu Configuration</h1>
-<form action=""
- name="configure_kupu"
- method="post"
- tal:attributes="action here/absolute_url"
- tal:define="isTransformEnabled context/transformIsEnabled">
-
-<fieldset>
-<legend i18n:translate="legend_link_options">Link options</legend>
-<div class="field">
-<input type="hidden" name="linkbyuid:int:default" value="0" />
-<input type="checkbox"
- class="noborder"
- name="linkbyuid:int"
- id = "kupu_linkbyuid"
- value="1"
- tal:attributes="checked here/getLinkbyuid" />
-<label for="kupu_linkbyuid" i18n:translate="label_link_uid">Link using UIDs</label>
-
-<div class="formHelp" i18n:translate="help_link_uid">Links to objects
-on this site created by Kupu can use unique object ids so that the
-links remain valid even if the target object is renamed or moved
-elsewhere on the site.
-<span tal:condition="isTransformEnabled">
-A portal transform to hide the UIDs from client browsers is
-currently operating for the fields:
-<blockquote tal:content="here/supportedCaptioning"></blockquote>
-</span>
-<span tal:condition="not:isTransformEnabled">
-If you enable this option a transform to hide UIDs and support image
-captioning from client browsers will also be enabled (see <a
-href="zmi_docs#images">image captioning documentation</a>). If the
-transform does not enable itself automatically you may need to update
-your PortalTransforms product.
-</span>
-</div>
-
-</div>
-
-</fieldset>
-<fieldset>
-<legend i18n:translate="legend_caption">Captioning</legend>
-<div class="field">
-<input type="hidden" name="captioning:int:default" value="0" />
-<label i18n:translate="label_refbrowser"><input type="checkbox"
- class="noborder" name="captioning:int"
- value="1" tal:attributes="checked here/getCaptioning" />
-Allow captioned images</label>
-
-<div class="formHelp">
-Images which are linked using UID based links may be automatically captioned.
-
-<div tal:condition="not:isTransformEnabled">
-<span i18n:translate="help_captioning">
-If you enable this option a transform to hide UIDs and support image
-captioning from client browsers will also be enabled (see <a
-href="zmi_docs#images">image captioning documentation</a>). If the
-transform does not enable itself automatically you may need to update
-your PortalTransforms product.
-</span>
-<div>Fields which could support image captioning:</div>
-</div>
-<div tal:condition="isTransformEnabled">
-Fields which appear to currently support image captioning:</div>
-<blockquote tal:content="here/supportedCaptioning"></blockquote>
-<div>Fields which use kupu but do not support image captioning:</div>
-<blockquote tal:content="here/unsupportedCaptioning"></blockquote>
-</div>
-</fieldset>
-
-<fieldset>
-<legend i18n:translate="legend_refbrowser">Reference Browser</legend>
-<div class="field">
-<input type="hidden" name="refbrowser:int:default" value="0" />
-<input type="checkbox"
- class="noborder"
- name="refbrowser:int"
- id = "kupu_refbrowser"
- value="1"
- tal:attributes="checked here/getRefBrowser" />
-<label for="kupu_refbrowser" i18n:translate="label_refbrowser">Use Kupu Reference Browser</label>
-
-<div class="formHelp" i18n:translate="help_refbrowser">Replace
-ATReferenceBrowser widget with a widget which uses
-Kupu's drawers instead of a popup window.</div>
-</div>
-
-</fieldset>
-<fieldset tal:condition="not:exists:here/portal_skins/plone_ecmascript/formUnload.js">
-<legend i18n:translate="legend_warning">Warn before losing changes</legend>
-<div class="field">
-<input type="hidden" name="installBeforeUnload:int:default" value="0" />
-<input type="checkbox"
- class="noborder"
- name="installBeforeUnload:int"
- id = "kupu_installBeforeUnload"
- value="1"
- tal:attributes="checked here/installBeforeUnload|python:1" />
-<label for="kupu_installBeforeUnload" i18n:translate="label_install_kupu">Install Kupu code to detect form changes</label>
-
-<div class="formHelp" i18n:translate="help_navigate_away">Kupu can install a handler to warn before navigating
-away from a page where a form (even the non-Kupu fields) has been edited.
-Turn this off to prevent Kupu loading its own handler.
-</div>
-</div>
-
-</fieldset>
-<fieldset>
-<legend i18n:translate="legend_filtersourceedit">HTML View</legend>
-<div class="field">
-<input type="hidden" name="filterSourceEdit:int:default" value="0" />
-<input type="checkbox"
- class="noborder"
- name="filterSourceEdit:int"
- id = "kupu_filterSourceEdit"
- value="1"
- tal:attributes="checked here/getFiltersourceedit|python:1" />
-<label for="kupu_filterSourceEdit" i18n:translate="label_filtersourceedit">Filter HTML in source view</label>
-
-<div class="formHelp" i18n:translate="help_navigate_away">When checked, Kupu's HTML view will display the
-filtered HTML which will be sent to the server. Uncheck this box to see the raw HTML generated by the browser.
-</div>
-</div>
-
-</fieldset>
-<fieldset>
-<legend i18n:translate="legend_styles">Styles</legend>
-<div class="field">
-<label for="table_classnames" i18n:translate="label_tables">Tables</label>
-<div class="formHelp" i18n:translate="help_table_classes">Enter a list of class names to be made available in the table drawer</div>
-<input type="hidden" name="table_classnames:list:default" value=" " />
-
-<textarea name="table_classnames:lines" id="table_classnames"
- rows="5" cols="30" style="width:90%"
- tal:content="python:'\n'.join(here.getTableClassnames())">
-</textarea>
-</div>
-
-<div class="field">
-<label for="parastyles" i18n:translate="label_paragraph_styles">Paragraph Styles</label>
-<div class="formHelp" i18n:translate="help_paragraph_styles">Enter a list of paragraph styles to appear in the style pulldown. Format is title|tag or title|tag|className, one per line.</div>
-<input type="hidden" name="parastyles:list:default" value=" " />
-<textarea name="parastyles:lines" id="parastyles"
- rows="5" cols="30" style="width:90%"
- tal:content="python:'\n'.join(here.getParagraphStyles())">
-</textarea>
-</div>
-</fieldset>
-
-<fieldset>
-<legend i18n:translate="legend_html_filter">HTML Filter</legend>
-
-<div tal:condition="here/have_plone_filtering|nothing">
- Please use the <a href="#" tal:attributes="href string:${portal_url}/@@filter-controlpanel">
- Plone HTML filter control panel</a> to set filtering options.
-</div>
-<table tal:condition="not:here/have_plone_filtering|nothing">
- <tr>
- <td></td>
- <th i18n:translate="label_tags">Tags</th>
- <th i18n:translate="label_attributes">Attributes</th>
- </tr>
-
- <tr>
- <td></td>
- <td colspan="2">
- <div class="formHelp" i18n:translate="help_remove_entities">Enter HTML tags and attributes to be removed when saving documents. (Uncheck to remove entries)</div>
- </td>
- </tr>
-
- <tr tal:repeat="exclusion_tuple here/getHtmlExclusions">
- <tal:with define="tags python:exclusion_tuple[0];
- attributes python:exclusion_tuple[1]">
- <td valign="top">
- <input type="hidden" name="html_exclusions.recordmark:records" value="1" />
- <input type="checkbox" name="html_exclusions.keep:records" checked="1"
- tal:attributes="value python:1;" />
- <input type="hidden" name="html_exclusions.tags:records:list"
- tal:repeat="tag tags"
- tal:attributes="value tag" />
- <input type="hidden" name="html_exclusions.attributes:records:list"
- tal:repeat="attr attributes"
- tal:attributes="value attr" />
- </td>
-
- <td valign="top"><div tal:replace="python:', '.join(tags)"></div>
- <em tal:condition="not:tags" i18n:translate="any_tag">Any tag</em>
- </td>
- <td valign="top"><div tal:replace="python:', '.join(attributes)"></div>
- <em tal:condition="not:attributes" i18n:translate="whole_tag_removed">Whole tag removed</em>
- </td>
-
- </tal:with>
- </tr>
- <tr>
- <td valign="top">
- <input type="hidden" name="html_exclusions.recordmark:records" value="1" />
- <input type="checkbox" name="html_exclusions.keep:records" checked="1" disabled="1"
- tal:attributes="value python:1;" />
- </td>
- <td valign="top">
- <textarea name="html_exclusions.tags:records"
- rows="5" cols="30"></textarea>
- </td>
-
- <td valign="top">
- <textarea name="html_exclusions.attributes:records"
- rows="5" cols="30"></textarea>
- </td>
- </tr>
-
-<tr>
- <td></td>
- <th colspan="2" i18n:translate="label_style_whitelist">Style Whitelist</th></tr>
-<tr>
- <td></td>
- <td colspan="2">
- <div class="formHelp" i18n:translate="help_style_whitelist">Enter a list of style elements to be permitted (one per line)</div>
-
- <textarea name="style_whitelist:lines"
- rows="5" cols="60"
- tal:content="python:'\n'.join(here.getStyleWhitelist())">
- </textarea>
- </td>
-</tr>
-
-<tr>
- <td></td>
- <th colspan="2" i18n:translate="label_class_blacklist">Class Blacklist</th>
-</tr>
-<tr>
- <td></td>
- <td colspan="2">
- <div class="formHelp" i18n:translate="help_class_blacklist">Enter a list of classnames to be excluded (one per line)</div>
-
- <textarea name="class_blacklist:lines"
- rows="5" cols="60"
- tal:content="python:'\n'.join(here.getClassBlacklist())">
- </textarea>
- </td>
-</tr>
-</table>
-</fieldset>
-
-<input class="context"
- type="submit"
- name="configure_kupu:method"
- value="Save"
- i18n:attributes="value"
- />
-</form>
- </div>
-
-
-</div>
-
-</div>
-
-</body>
- </metal:master>
+ >
+ <li tal:repeat="tab tabs"
+ class="selected" tal:attributes="class python:template.pt_source_file()==tab['name'] and 'selected' or ''">
+ <a href=""
+ tal:attributes="href string:${here/absolute_url}/${tab/name}"
+ i18n:translate="" tal:content="tab/label">Config</a>
+ </li>
+ </ul>
+
+ <div class="contentActions">
+
+ </div>
+ <!-- End of tabs -->
+ <div class="documentContent" metal:define-slot="kupu_content">
+ <h1 class="documentFirstHeading"
+ i18n:translate="heading_configuration">Kupu Configuration</h1>
+ <form action=""
+ name="configure_kupu"
+ method="post"
+ tal:attributes="action here/absolute_url"
+ tal:define="isTransformEnabled context/transformIsEnabled">
+
+ <fieldset>
+ <legend i18n:translate="legend_link_options">Link options</legend>
+ <div class="field">
+ <input type="hidden" name="linkbyuid:int:default" value="0" />
+ <input type="checkbox"
+ class="noborder"
+ name="linkbyuid:int"
+ id = "kupu_linkbyuid"
+ value="1"
+ tal:attributes="checked here/getLinkbyuid" />
+ <label for="kupu_linkbyuid" i18n:translate="label_link_uid">Link using UIDs</label>
+
+ <div class="formHelp" i18n:translate="help_link_uid">Links to objects
+ on this site created by Kupu can use unique object ids so that the
+ links remain valid even if the target object is renamed or moved
+ elsewhere on the site.
+ <span tal:condition="isTransformEnabled">
+ A portal transform to hide the UIDs from client browsers is
+ currently operating for the fields:
+ <blockquote tal:content="here/supportedCaptioning"></blockquote>
+ </span>
+ <span tal:condition="not:isTransformEnabled">
+ If you enable this option a transform to hide UIDs and support image
+ captioning from client browsers will also be enabled (see <a
+ href="zmi_docs#images">image captioning documentation</a>). If the
+ transform does not enable itself automatically you may need to update
+ your PortalTransforms product.
+ </span>
+ </div>
+
+ </div>
+
+ </fieldset>
+ <fieldset>
+ <legend i18n:translate="legend_caption">Captioning</legend>
+ <div class="field">
+ <input type="hidden" name="captioning:int:default" value="0" />
+ <label i18n:translate="label_refbrowser"><input type="checkbox"
+ class="noborder" name="captioning:int"
+ value="1" tal:attributes="checked here/getCaptioning" />
+ Allow captioned images</label>
+
+ <div class="formHelp">
+ <span i18n:translate="help_image_uid_caption">
+ Images which are linked using UID based links may be automatically captioned.
+ </span>
+
+ <div tal:condition="not:isTransformEnabled">
+ <span i18n:translate="help_captioning">
+ If you enable this option a transform to hide UIDs and support image
+ captioning from client browsers will also be enabled (see <a
+ href="zmi_docs#images">image captioning documentation</a>). If the
+ transform does not enable itself automatically you may need to update
+ your PortalTransforms product.
+ </span>
+ <div i18n:translate="">Fields which could support image captioning:</div>
+ </div>
+ <div tal:condition="isTransformEnabled" i18n:translate="">
+ Fields which appear to currently support image captioning:</div>
+ <blockquote tal:content="here/supportedCaptioning"></blockquote>
+ <div i18n:translate="">Fields which use kupu but do not support image captioning:</div>
+ <blockquote tal:content="here/unsupportedCaptioning"></blockquote>
+ </div>
+ </div>
+ </fieldset>
+
+ <fieldset>
+ <legend i18n:translate="legend_refbrowser">Reference Browser</legend>
+ <div class="field">
+ <input type="hidden" name="refbrowser:int:default" value="0" />
+ <input type="checkbox"
+ class="noborder"
+ name="refbrowser:int"
+ id = "kupu_refbrowser"
+ value="1"
+ tal:attributes="checked here/getRefBrowser" />
+ <label for="kupu_refbrowser" i18n:translate="label_refbrowser">Use Kupu Reference Browser</label>
+
+ <div class="formHelp" i18n:translate="help_refbrowser">Replace
+ ATReferenceBrowser widget with a widget which uses
+ Kupu's drawers instead of a popup window.</div>
+ </div>
+ </fieldset>
+
+ <fieldset tal:condition="not:exists:here/portal_skins/plone_ecmascript/formUnload.js">
+ <legend i18n:translate="legend_warning">Warn before losing changes</legend>
+ <div class="field">
+ <input type="hidden" name="installBeforeUnload:int:default" value="0" />
+ <input type="checkbox"
+ class="noborder"
+ name="installBeforeUnload:int"
+ id = "kupu_installBeforeUnload"
+ value="1"
+ tal:attributes="checked here/installBeforeUnload|python:1" />
+ <label for="kupu_installBeforeUnload" i18n:translate="label_install_kupu">Install Kupu code to detect form changes</label>
+
+ <div class="formHelp" i18n:translate="help_navigate_away">Kupu can install a handler to warn before navigating
+ away from a page where a form (even the non-Kupu fields) has been edited.
+ Turn this off to prevent Kupu loading its own handler.
+ </div>
+ </div>
+ </fieldset>
+
+ <fieldset>
+ <legend i18n:translate="legend_filtersourceedit">HTML View</legend>
+ <div class="field">
+ <input type="hidden" name="filterSourceEdit:int:default" value="0" />
+ <input type="checkbox"
+ class="noborder"
+ name="filterSourceEdit:int"
+ id = "kupu_filterSourceEdit"
+ value="1"
+ tal:attributes="checked here/getFiltersourceedit|python:1" />
+ <label for="kupu_filterSourceEdit" i18n:translate="label_filtersourceedit">Filter HTML in source view</label>
+
+ <div class="formHelp" i18n:translate="help_navigate_away">When checked, Kupu's HTML view will display the
+ filtered HTML which will be sent to the server. Uncheck this box to see the raw HTML generated by the browser.
+ </div>
+ </div>
+
+ </fieldset>
+ <fieldset>
+ <legend i18n:translate="legend_styles">Styles</legend>
+ <div class="field">
+ <label for="table_classnames" i18n:translate="label_tables">Tables</label>
+ <div class="formHelp" i18n:translate="help_table_classes">Enter a list of class names to be made available in the table drawer</div>
+ <input type="hidden" name="table_classnames:list:default" value=" " />
+
+ <textarea name="table_classnames:lines" id="table_classnames"
+ rows="5" cols="30" style="width:90%"
+ tal:content="python:'\n'.join(here.getTableClassnames())">
+ </textarea>
+ </div>
+
+ <div class="field">
+ <label for="parastyles" i18n:translate="label_paragraph_styles">Paragraph Styles</label>
+ <div class="formHelp" i18n:translate="help_paragraph_styles">Enter a list of paragraph styles to appear in the style pulldown. Format is title|tag or title|tag|className, one per line.</div>
+ <input type="hidden" name="parastyles:list:default" value=" " />
+ <textarea name="parastyles:lines" id="parastyles"
+ rows="5" cols="30" style="width:90%"
+ tal:content="python:'\n'.join(here.getParagraphStyles())">
+ </textarea>
+ </div>
+ </fieldset>
+
+ <fieldset>
+ <legend i18n:translate="legend_html_filter">HTML Filter</legend>
+
+ <div tal:condition="here/have_plone_filtering|nothing">
+ Please use the <a href="#"
+ tal:attributes="href string:${portal_url}/@@filter-controlpanel"
+ i18n:name="plone_filter_controlpanel">
+ <span i18n:translate="plone_filter_controlpanel">Plone HTML filter control panel</span></a>
+ to set filtering options.
+ </div>
+ <table tal:condition="not:here/have_plone_filtering|nothing">
+ <tr>
+ <td></td>
+ <th i18n:translate="label_tags">Tags</th>
+ <th i18n:translate="label_attributes">Attributes</th>
+ </tr>
+
+ <tr>
+ <td></td>
+ <td colspan="2">
+ <div class="formHelp" i18n:translate="help_remove_entities">Enter HTML tags and attributes to be removed when saving documents. (Uncheck to remove entries)</div>
+ </td>
+ </tr>
+
+ <tr tal:repeat="exclusion_tuple here/getHtmlExclusions">
+ <tal:with define="tags python:exclusion_tuple[0];
+ attributes python:exclusion_tuple[1]">
+ <td valign="top">
+ <input type="hidden" name="html_exclusions.recordmark:records" value="1" />
+ <input type="checkbox" name="html_exclusions.keep:records" checked="1"
+ tal:attributes="value python:1;" />
+ <input type="hidden" name="html_exclusions.tags:records:list"
+ tal:repeat="tag tags"
+ tal:attributes="value tag" />
+ <input type="hidden" name="html_exclusions.attributes:records:list"
+ tal:repeat="attr attributes"
+ tal:attributes="value attr" />
+ </td>
+
+ <td valign="top"><div tal:replace="python:', '.join(tags)"></div>
+ <em tal:condition="not:tags" i18n:translate="any_tag">Any tag</em>
+ </td>
+ <td valign="top"><div tal:replace="python:', '.join(attributes)"></div>
+ <em tal:condition="not:attributes" i18n:translate="whole_tag_removed">Whole tag removed</em>
+ </td>
+
+ </tal:with>
+ </tr>
+ <tr>
+ <td valign="top">
+ <input type="hidden" name="html_exclusions.recordmark:records" value="1" />
+ <input type="checkbox" name="html_exclusions.keep:records" checked="1" disabled="1"
+ tal:attributes="value python:1;" />
+ </td>
+ <td valign="top">
+ <textarea name="html_exclusions.tags:records"
+ rows="5" cols="30"></textarea>
+ </td>
+
+ <td valign="top">
+ <textarea name="html_exclusions.attributes:records"
+ rows="5" cols="30"></textarea>
+ </td>
+ </tr>
+
+ <tr>
+ <td></td>
+ <th colspan="2" i18n:translate="label_style_whitelist">Style Whitelist</th></tr>
+ <tr>
+ <td></td>
+ <td colspan="2">
+ <div class="formHelp" i18n:translate="help_style_whitelist">Enter a list of style elements to be permitted (one per line)</div>
+
+ <textarea name="style_whitelist:lines"
+ rows="5" cols="60"
+ tal:content="python:'\n'.join(here.getStyleWhitelist())">
+ </textarea>
+ </td>
+ </tr>
+
+ <tr>
+ <td></td>
+ <th colspan="2" i18n:translate="label_class_blacklist">Class Blacklist</th>
+ </tr>
+ <tr>
+ <td></td>
+ <td colspan="2">
+ <div class="formHelp" i18n:translate="help_class_blacklist">Enter a list of classnames to be excluded (one per line)</div>
+
+ <textarea name="class_blacklist:lines"
+ rows="5" cols="60"
+ tal:content="python:'\n'.join(here.getClassBlacklist())">
+ </textarea>
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+
+ <input class="context"
+ type="submit"
+ name="configure_kupu:method"
+ value="Save"
+ i18n:attributes="value"
+ />
+ </form>
+ </div>
+ </div>
+ </div>
+ </body>
+ </metal:master>
</metal:page>
Modified: kupu/trunk/kupu/plone/libraries.pt
==============================================================================
--- kupu/trunk/kupu/plone/libraries.pt (original)
+++ kupu/trunk/kupu/plone/libraries.pt Mon Jun 25 16:15:02 2007
@@ -1,178 +1,161 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
- lang="en"
- metal:use-macro="here/kupu_config/macros/master"
- i18n:domain="kupuconfig">
-
-<body>
-
- <div class="documentContent" metal:fill-slot="kupu_content">
-<h1 class="documentFirstHeading"
- i18n:translate="heading_kupu_libraries">Kupu Libraries</h1>
-
-<p i18n:translate="text_kupu_drawers">In the form below, you may manage the list of drawer libraries for
-the Kupu editor. Each property of a library is dynamically expanded at
-execution time using TALES expressions. That way it is possible, to
-support libraries like <em>Current folder</em> or <em>My folder</em>
-very easily.</p>
-<p>Libraries with ids that begin with an underscore will not display in the initial library list.
- <em>_search</em> will be used to set the icon and title for search results.
- The first $ character in the title will be replaced by the search string.
- <em>_selection</em> will be used to set the icon and title for the current selection.
-</p>
-<p>The title string may contain html <br> tags to put a line break in the title (not the xhtml <br/> form),
- but otherwise tags are not interpreted.</p>
-
-<form action="" method="post" tal:attributes="action here/absolute_url">
-
-<table>
-
- <tal:loop repeat="library here/zmi_get_libraries">
-
- <tr>
- <td><input type="checkbox" name="indices:int:list"
- tal:attributes="value repeat/library/index"/></td>
- <th>ID</th>
- <td><input type="text" name="libraries.id:records" size="60"
- tal:attributes="value library/id" /></td>
- </tr>
-
- <tr>
- <td></td>
- <th>Title</th>
- <td><input type="text" name="libraries.title:records" size="60"
- tal:attributes="value library/title" /></td>
- </tr>
-
- <tr>
- <td></td>
- <th>URI</th>
- <td><input type="text" name="libraries.uri:records" size="60"
- tal:attributes="value library/uri" /></td>
- </tr>
-
- <tr>
- <td></td>
- <th i18n:translate="label_source_uri">Source URI</th>
- <td><input type="text" name="libraries.src:records" size="60"
- tal:attributes="value library/src" /></td>
- </tr>
-
- <tr>
- <td></td>
- <th i18n:translate="label_icon_uri">Icon URI</th>
- <td><input type="text" name="libraries.icon:records" size="60"
- tal:attributes="value library/icon" /></td>
- </tr>
-
- <tr>
- <td colspan="3">
- <hr />
- </td>
- </tr>
-
- </tal:loop>
-</table>
-
-<p>
- <input class="context" type="submit" name="zmi_update_libraries:method" value="Save" i18n:attributes="value" />
- <input class="context" type="submit" name="zmi_delete_libraries:method" value="Delete" i18n:attributes="value" />
- <input class="context" type="submit" name="zmi_move_up:method" value="Move Up" i18n:attributes="value" />
- <input class="context" type="submit" name="zmi_move_down:method" value="Move Down" i18n:attributes="value" />
-</p>
-
-</form>
-
-<form action="" tal:attributes="action string:${here/absolute_url}/zmi_add_library" method="post">
-<table>
-
- <tr>
- <th>ID</th>
- <td><input type="text" name="id" size="60" /></td>
- </tr>
-
- <tr>
- <th i18n:translate="label_title">Title</th>
- <td><input type="text" name="title" size="60" /></td>
- </tr>
-
- <tr>
- <th i18n:translate="uri">URI</th>
- <td><input type="text" name="uri" size="60" /></td>
- </tr>
-
- <tr>
- <th i18n:translate="source_uri">Source URI</th>
- <td><input type="text" name="src" size="60" /></td>
- </tr>
-
- <tr>
- <th i18n:translate="icon_uri">Icon URI</th>
- <td><input type="text" name="icon" size="60" /></td>
- </tr>
-
-</table>
-
-<p>
- <input class="context" type="submit" value="Add" i18n:attributes="value"/>
-</p>
-</form>
-
-<form action="" tal:attributes="action string:${here/absolute_url}/zmi_set_default_library" method="post">
-<table>
-
- <tr>
- <th i18n:translate="default">Default</th>
- <td><input type="text" name="defid" size="60" tal:attributes="value here/zmi_get_default_library;" /></td>
- </tr>
-
-</table>
-
-<p>
- <input class="context" type="submit" value="Set" i18n:attributes="value" />
-</p>
-</form>
-
-<p> </p>
-
-<p i18n:translate="available_tales">The following variables are available in the TALES expressions:</p>
-
-<table>
- <tr>
- <td><code>object</code></td>
- <td i18n:translate="current_context">The current context object</td>
- </tr>
- <tr>
- <td><code>object_url</code></td>
- <td i18n:translate="current_context_url">The URL of the current context object</td>
- </tr>
- <tr>
- <td><code>folder</code></td>
- <td i18n:translate="context_folder">The folder the context object is located in</td>
- </tr>
- <tr>
- <td><code>folder_url</code></td>
- <td i18n:translate="context_folder_uri">The URL of the folder the context object is located in</td>
- </tr>
- <tr>
- <td><code>portal</code></td>
- <td i18n:translate="portal_object">The portal object</td>
- </tr>
- <tr>
- <td><code>portal_url</code></td>
- <td i18n:translate="portal_object_url">URL of the portal</td>
- </tr>
- <tr>
- <td><code>member</code></td>
- <td i18n:translate="authenticated_member">Authenticated member</td>
- </tr>
- <tr>
- <td><code>request</code></td>
- <td i18n:translate="request">Request</td>
- </tr>
-</table>
-
-</div>
-</body>
+lang="en"
+metal:use-macro="here/kupu_config/macros/master"
+i18n:domain="kupuconfig">
+
+ <body>
+
+ <div class="documentContent" metal:fill-slot="kupu_content">
+ <h1 class="documentFirstHeading"
+ i18n:translate="heading_kupu_libraries">Kupu Libraries</h1>
+ <p i18n:translate="text_kupu_drawers">
+ In the form below, you may manage the list of drawer libraries for
+ the Kupu editor. Each property of a library is dynamically expanded at
+ execution time using TALES expressions. That way it is possible, to
+ support libraries like <em>Current folder</em> or <em>My folder</em>
+ very easily.</p>
+ <p i18n:translate="text_kupu_drawers2">
+ Libraries with ids that begin with an underscore will not display in the initial library list.
+ <em>_search</em> will be used to set the icon and title for search results.
+ The first $ character in the title will be replaced by the search string.
+ <em>_selection</em> will be used to set the icon and title for the current selection.
+ </p>
+ <p i18n:translate="text_kupu_drawers3">
+ The title string may contain html <br> tags to put a line break in the title (not the xhtml <br/> form),
+ but otherwise tags are not interpreted.
+ </p>
+
+ <form action="" method="post" tal:attributes="action here/absolute_url">
+ <table>
+ <tal:loop repeat="library here/zmi_get_libraries">
+ <tr>
+ <td><input type="checkbox" name="indices:int:list"
+ tal:attributes="value repeat/library/index"/></td>
+ <th i18n:translate="">ID</th>
+ <td><input type="text" name="libraries.id:records" size="60"
+ tal:attributes="value library/id" /></td>
+ </tr>
+ <tr>
+ <td></td>
+ <th i18n:translate="">Title</th>
+ <td><input type="text" name="libraries.title:records" size="60"
+ tal:attributes="value library/title" /></td>
+ </tr>
+ <tr>
+ <td></td>
+ <th i18n:translate="">URI</th>
+ <td><input type="text" name="libraries.uri:records" size="60"
+ tal:attributes="value library/uri" /></td>
+ </tr>
+ <tr>
+ <td></td>
+ <th i18n:translate="label_source_uri">Source URI</th>
+ <td><input type="text" name="libraries.src:records" size="60"
+ tal:attributes="value library/src" /></td>
+ </tr>
+ <tr>
+ <td></td>
+ <th i18n:translate="label_icon_uri">Icon URI</th>
+ <td><input type="text" name="libraries.icon:records" size="60"
+ tal:attributes="value library/icon" /></td>
+ </tr>
+ <tr>
+ <td colspan="3">
+ <hr />
+ </td>
+ </tr>
+ </tal:loop>
+ </table>
+
+ <p>
+ <input class="context" type="submit" name="zmi_update_libraries:method" value="Save" i18n:attributes="value" />
+ <input class="context" type="submit" name="zmi_delete_libraries:method" value="Delete" i18n:attributes="value" />
+ <input class="context" type="submit" name="zmi_move_up:method" value="Move Up" i18n:attributes="value" />
+ <input class="context" type="submit" name="zmi_move_down:method" value="Move Down" i18n:attributes="value" />
+ </p>
+ </form>
+
+ <form action="" tal:attributes="action string:${here/absolute_url}/zmi_add_library" method="post">
+ <table>
+ <tr>
+ <th i18n:translate="">ID</th>
+ <td><input type="text" name="id" size="60" /></td>
+ </tr>
+ <tr>
+ <th i18n:translate="label_title">Title</th>
+ <td><input type="text" name="title" size="60" /></td>
+ </tr>
+ <tr>
+ <th i18n:translate="uri">URI</th>
+ <td><input type="text" name="uri" size="60" /></td>
+ </tr>
+ <tr>
+ <th i18n:translate="source_uri">Source URI</th>
+ <td><input type="text" name="src" size="60" /></td>
+ </tr>
+ <tr>
+ <th i18n:translate="icon_uri">Icon URI</th>
+ <td><input type="text" name="icon" size="60" /></td>
+ </tr>
+ </table>
+
+ <p>
+ <input class="context" type="submit" value="Add" i18n:attributes="value"/>
+ </p>
+ </form>
+
+ <form action="" tal:attributes="action string:${here/absolute_url}/zmi_set_default_library" method="post">
+ <table>
+
+ <tr>
+ <th i18n:translate="default">Default</th>
+ <td><input type="text" name="defid" size="60" tal:attributes="value here/zmi_get_default_library;" /></td>
+ </tr>
+
+ </table>
+
+ <p>
+ <input class="context" type="submit" value="Set" i18n:attributes="value" />
+ </p>
+ </form>
+ <p> </p>
+ <p i18n:translate="available_tales">The following variables are available in the TALES expressions:</p>
+ <table>
+ <tr>
+ <td><code i18n:translate="object_variable">object</code></td>
+ <td i18n:translate="current_context">The current context object</td>
+ </tr>
+ <tr>
+ <td><code i18n:translate="object_url_variable">object_url</code></td>
+ <td i18n:translate="current_context_url">The URL of the current context object</td>
+ </tr>
+ <tr>
+ <td><code i18n:translate="folder_variable">folder</code></td>
+ <td i18n:translate="context_folder">The folder the context object is located in</td>
+ </tr>
+ <tr>
+ <td><code i18n:translate="folder_url_variable">folder_url</code></td>
+ <td i18n:translate="context_folder_uri">The URL of the folder the context object is located in</td>
+ </tr>
+ <tr>
+ <td><code i18n:translate="portal_variable">portal</code></td>
+ <td i18n:translate="portal_object">The portal object</td>
+ </tr>
+ <tr>
+ <td><code i18n:translate="portal_url_variable">portal_url</code></td>
+ <td i18n:translate="portal_object_url">URL of the portal</td>
+ </tr>
+ <tr>
+ <td><code i18n:translate="member_variable">member</code></td>
+ <td i18n:translate="authenticated_member">Authenticated member</td>
+ </tr>
+ <tr>
+ <td><code i18n:translate="request_variable">request</code></td>
+ <td i18n:translate="request">Request</td>
+ </tr>
+ </table>
+ </div>
+ </body>
</html>
Modified: kupu/trunk/kupu/plone/resource_types.pt
==============================================================================
--- kupu/trunk/kupu/plone/resource_types.pt (original)
+++ kupu/trunk/kupu/plone/resource_types.pt Mon Jun 25 16:15:02 2007
@@ -36,7 +36,8 @@
<table summary="Resource definitions" class="listing nosort">
<thead>
<tr>
- <th colspan="3">Map resource types</th>
+ <th colspan="3"
+ i18n:translate="map_resource_types">Map resource types</th>
</tr>
</thead>
@@ -48,7 +49,9 @@
style="margin-top: 1em !important;"
>
<tr><td colspan="3"> </td></tr>
- <tr tal:condition="repeat/resource/end"><td style="border-right:none;"></td><td colspan="2"><em>use this entry to add a new resource</em>
+ <tr tal:condition="repeat/resource/end">
+ <td style="border-right:none;"></td>
+ <td colspan="2"><em i18n:translate="">use this entry to add a new resource</em>
</td></tr>
<tr>
<td>
@@ -58,7 +61,7 @@
tal:condition="name"
tal:attributes="value name" />
</td>
- <th>Resource</th>
+ <th i18n:translate="resource_heading">Resource</th>
<td>
<input type="text" name="type_info.resource_type:records"
tal:attributes="value name" />
@@ -66,9 +69,11 @@
</tr>
<tr>
<td></td>
- <th>Portal Types</th>
+ <th i18n:translate="portal_types_heading">Portal Types</th>
<td>
- <select name="type_info.portal_types:list:records" size="5" multiple
+ <select
+ name="type_info.portal_types:list:records"
+ size="5" multiple="multiple"
tal:attributes="size python:max(5,len(types));">
<tal:block repeat="ti typeinfos">
<option tal:define="title python:ti[0]; id python:ti[1];
@@ -76,7 +81,8 @@
selected python:id in types;"
tal:content="fulltitle"
tal:condition="selected"
- tal:attributes="value id;" selected></option>
+ tal:attributes="value id;"
+ selected="selected"></option>
</tal:block>
<tal:block repeat="ti typeinfos">
<option tal:define="title python:ti[0]; id python:ti[1];
@@ -89,26 +95,34 @@
</select>
</td>
</tr>
- <tr><td></td><th>New types</th>
+ <tr>
+ <td></td>
+ <th i18n:translate="new_types_heading">New types</th>
<td>
<select name="type_info.newtypes:int:records" size="1"
tal:define="newtype python:context.getNewTypeHandler(name)">
- <option value="0" tal:attributes="selected python:test(newtype==0,True,None)">are not added to selection</option>
- <option value="1" tal:attributes="selected python:test(newtype==1,True,None)">are added to selection</option>
+ <option value="0"
+ tal:attributes="selected python:test(newtype==0,True,None)"
+ i18n:translate="">
+ >are not added to selection</option>
+ <option value="1"
+ tal:attributes="selected python:test(newtype==1,True,None)"
+ i18n:translate="">are added to selection</option>
</select>
</td>
- <tr><td colspan="3"> </td></tr>
+ </tr>
+ <tr><td colspan="3"> </td></tr>
</tbody>
</tal:loop>
<tbody>
<tr>
<td style="border-right:none;"></td>
- <td colspan="2"><em>specify a resource type to be used for reference fields with an empty list of allowed types</em>
+ <td colspan="2"><em i18n:translate="">specify a resource type to be used for reference fields with an empty list of allowed types</em>
</td>
</tr>
<tr>
<td> </td>
- <th>Default resource</th>
+ <th i18n:translate="default_resource_heading">Default resource</th>
<td>
<select name="default_resource" tal:define="current here/getDefaultResource">
<tal:block repeat="resource here/zmi_get_resourcetypes">
@@ -133,11 +147,12 @@
tal:define="previewable python:[(title,id) for (title,id) in typeinfos if context.getPreviewForType(id)];">
<thead>
<tr>
- <th colspan="4">Action URLs</th>
+ <th colspan="4"
+ i18n:translate="action_url_heading">Action URLs</th>
</tr>
<tr><th width="1%"></th>
- <th width="1%">Type</th>
- <th colspan="2">URL</th>
+ <th width="1%" i18n:translate="type_heading">Type</th>
+ <th colspan="2" i18n:translate="url_heading">URL</th>
</tr>
</thead>
@@ -159,8 +174,9 @@
<input type="checkbox" name="preview_types:list"
tal:attributes="value id" />
</td>
- <td rowspan="5" tal:content="fulltitle">type</td>
- <td style="border-right: none;" width="1%">preview</td>
+ <td rowspan="5" tal:content="fulltitle"></td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="preview_subheading">preview</td>
<td>
<input type="text" name="preview_action.expression:records"
style="width:90%"
@@ -168,7 +184,8 @@
</td>
</tr>
<tr>
- <td style="border-right: none;" width="1%">Normal image</td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="normal_image">Normal image</td>
<td>
<input type="text" name="preview_action.normal:records"
style="width:90%"
@@ -176,7 +193,8 @@
</td>
</tr>
<tr>
- <td style="border-right: none;" width="1%">fieldname</td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="fieldname_subheading">fieldname</td>
<td>
<input type="text" name="preview_action.scalefield:records"
style="width:90%"
@@ -184,7 +202,8 @@
</td>
</tr>
<tr>
- <td style="border-right: none;" width="1%">classes</td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="classes_subheading">classes</td>
<td>
<textarea name="preview_action.classes:records"
style="width:90%"
@@ -192,11 +211,16 @@
</td>
</tr>
<tr>
- <td style="border-right: none;" width="1%">type</td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="type_subheading">type</td>
<td>
<select name="preview_action.mediatype:records" size="1">
- <option value="image" tal:attributes="selected python:mediatype=='image'">Image</option>
- <option value="flash" tal:attributes="selected python:mediatype=='flash'">Flash</option>
+ <option value="image"
+ tal:attributes="selected python:mediatype=='image'"
+ i18n:translate="image_option">Image</option>
+ <option value="flash"
+ tal:attributes="selected python:mediatype=='flash'"
+ i18n:translate="flash_option">Flash</option>
</select>
<div style="height:1em;"> </div>
</td>
@@ -211,7 +235,7 @@
</td>
<td rowspan="5">
<select name="preview_action.portal_type:records" style="width:15em">
- <option i18n:translate="" value="">(select type)</option>
+ <option i18n:translate="select_type" value="">(select type)</option>
<tal:block repeat="ti typeinfos">
<option tal:define="title python:ti[0]; id python:ti[1];
fulltitle python:title + test(title==id,'',' (%s)'%id);"
@@ -220,39 +244,48 @@
tal:attributes="value id;"></option>
</tal:block>
</select>
- <td style="border-right: none;" width="1%">preview</td>
- <td>
- <input type="text" name="preview_action.expression:records"
- style="width:90%" value="" />
- </td>
+ </td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="preview_subheading">preview</td>
+ <td>
+ <input type="text" name="preview_action.expression:records"
+ style="width:90%" value="" />
+ </td>
</tr>
<tr>
- <td style="border-right: none;" width="1%">Normal image</td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="normal_image">Normal image</td>
<td>
<input type="text" name="preview_action.normal:records"
style="width:90%" value="" />
</td>
</tr>
<tr>
- <td style="border-right: none;" width="1%">fieldname</td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="fieldname_subheading">fieldname</td>
<td>
<input type="text" name="preview_action.scalefield:records"
style="width:90%" value="image" />
</td>
</tr>
<tr>
- <td style="border-right: none;" width="1%">classes</td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="classes_subheading">classes</td>
<td>
<textarea type="text" name="preview_action.classes:records"
style="width:90%"></textarea>
</td>
</tr>
<tr>
- <td style="border-right: none;" width="1%">type</td>
+ <td style="border-right: none;" width="1%"
+ i18n:translate="type_subheading">type</td>
<td>
<select name="preview_action.mediatype:records" size="1">
- <option value="image" selected>Image</option>
- <option value="flash">Flash</option>
+ <option value="image"
+ selected="selected"
+ i18n:translate="image_option">Image</option>
+ <option value="flash"
+ i18n:translate="flash_option">Flash</option>
</select>
</td>
</tr>
@@ -267,7 +300,7 @@
</tr>
<tr>
<td colspan="4">
- <em><code>Preview</code> is an expression to use for the preview image in the drawer [default is no preview].
+ <em i18n:translate="preview_action_help"><code>Preview</code> is an expression to use for the preview image in the drawer [default is no preview].
<code>Normal image</code> is an expression to use for the normal view of a mediaobject [string:$object_url].
<code>Fieldname</code> is the name of the field to use for scaled variants of the mediaobject [image].
<code>Classes</code> is a list of classnames which may be selected when inserting the object as media.
Modified: kupu/trunk/kupu/plone/wysiwyg_support.kupu
==============================================================================
--- kupu/trunk/kupu/plone/wysiwyg_support.kupu (original)
+++ kupu/trunk/kupu/plone/wysiwyg_support.kupu Mon Jun 25 16:15:02 2007
@@ -69,6 +69,7 @@
tal:define="global kupu_convert_message_generated python:True">
<a href="#"
tal:attributes="href python:portal.kupu_library_tool.forcekupu_url(fieldName);"
+ i18n:translate=""
>Convert to HTML and edit with the visual editor</a></span>
</tal:archetypes>
<tal:nonat condition="not:fieldName|nothing">
Modified: kupu/trunk/kupu/plone/zmi_links.pt
==============================================================================
--- kupu/trunk/kupu/plone/zmi_links.pt (original)
+++ kupu/trunk/kupu/plone/zmi_links.pt Mon Jun 25 16:15:02 2007
@@ -23,7 +23,7 @@
<div class="documentContent" metal:fill-slot="kupu_content">
<metal:call use-macro="portal/portal_skins/kupu_references/referencebrowser/macros/kupudrawer" />
- <div id="target">
+ <div id="target" i18n:translate="">
Loading kupu link maintenance...
</div>
<div id="start" kj:nexturi="kupu_migration.xml"></div>
Modified: kupu/trunk/kupu/plone/zmi_toolbar.pt
==============================================================================
--- kupu/trunk/kupu/plone/zmi_toolbar.pt (original)
+++ kupu/trunk/kupu/plone/zmi_toolbar.pt Mon Jun 25 16:15:02 2007
@@ -55,18 +55,18 @@
<table class="listing nosort">
<thead>
<th></th>
- <th>Id</th>
- <th>Title</th>
- <th>Visible<br/>
- <input title="Select all items"
+ <th i18n:translate="id_heading">Id</th>
+ <th i18n:translate="title_heading">Title</th>
+ <th i18n:translate="visible_heading">Visible<br/>
+ <input title="Select all items" i18n:attributes="title"
onclick="toggleSelect(this, 'filters.visible:records:int', true);"
type="checkbox" checked="checked" />
</th>
- <th>Expression</th>
+ <th i18n:translate="expression_heading">Expression</th>
</thead>
<tbody class="kupu-tb-buttons">
<tr tal:repeat="opt context/getFilterOptions" style="height:28px">
- <td><button tal:condition="opt/classname" disabled
+ <td><button tal:condition="opt/classname" disabled="disabled"
tal:attributes="class opt/classname"> </button>
</td>
<td>
More information about the kupu-checkins
mailing list