[kupu-checkins] r44516 - kupu/trunk/kupu/plone
duncan at codespeak.net
duncan at codespeak.net
Mon Jun 25 17:40:06 CEST 2007
Author: duncan
Date: Mon Jun 25 17:40:05 2007
New Revision: 44516
Modified:
kupu/trunk/kupu/plone/kupu_config.pt
kupu/trunk/kupu/plone/zmi_links.pt
kupu/trunk/kupu/plone/zmi_toolbar.pt
Log:
Still cleaning up i18n crud
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 17:40:05 2007
@@ -23,16 +23,42 @@
<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'),;
- 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 ''">
+ <ul class="contentViews">
+ <li class="selected"
+ tal:attributes="class python:template.pt_source_file()=='kupu_config' and 'selected' or ''">
<a href=""
- tal:attributes="href string:${here/absolute_url}/${tab/name}"
- i18n:translate="" tal:content="tab/label">Config</a>
+ tal:attributes="href string:${here/absolute_url}/kupu_config"
+ i18n:translate="tab_config">Config</a>
+ </li>
+ <li class="selected"
+ tal:attributes="class python:template.pt_source_file()=='zmi_libraries' and 'selected' or ''">
+ <a href=""
+ tal:attributes="href string:${here/absolute_url}/zmi_libraries"
+ i18n:translate="tab_libraries">Libraries</a>
+ </li>
+ <li class="selected"
+ tal:attributes="class python:template.pt_source_file()=='zmi_resource_types' and 'selected' or ''">
+ <a href=""
+ tal:attributes="href string:${here/absolute_url}/zmi_resource_types"
+ i18n:translate="tab_resourcetypes">Resource Types</a>
+ </li>
+ <li class="selected"
+ tal:attributes="class python:template.pt_source_file()=='zmi_docs' and 'selected' or ''">
+ <a href=""
+ tal:attributes="href string:${here/absolute_url}/zmi_docs"
+ i18n:translate="tab_documentation">Documentation</a>
+ </li>
+ <li class="selected"
+ tal:attributes="class python:template.pt_source_file()=='zmi_links' and 'selected' or ''">
+ <a href=""
+ tal:attributes="href string:${here/absolute_url}/zmi_links"
+ i18n:translate="tab_links">Links</a>
+ </li>
+ <li class="selected"
+ tal:attributes="class python:template.pt_source_file()=='zmi_toolbar' and 'selected' or ''">
+ <a href=""
+ tal:attributes="href string:${here/absolute_url}/zmi_toolbar"
+ i18n:translate="tab_toolbar">Toolbar</a>
</li>
</ul>
@@ -86,10 +112,10 @@
<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"
+ <label><input type="checkbox"
class="noborder" name="captioning:int"
value="1" tal:attributes="checked here/getCaptioning" />
- Allow captioned images</label>
+ <span i18n:translate="allow_captioned_images">Allow captioned images</span></label>
<div class="formHelp">
<span i18n:translate="help_image_uid_caption">
@@ -104,12 +130,12 @@
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 i18n:translate="caption_maybe_supported">Fields which could support image captioning:</div>
</div>
- <div tal:condition="isTransformEnabled" i18n:translate="">
+ <div tal:condition="isTransformEnabled" i18n:translate="caption_is_supported">
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>
+ <div i18n:translate="caption_not_supported">Fields which use kupu but do not support image captioning:</div>
<blockquote tal:content="here/unsupportedCaptioning"></blockquote>
</div>
</div>
@@ -164,7 +190,7 @@
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
+ <div class="formHelp" i18n:translate="help_filter_source">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>
@@ -197,7 +223,8 @@
<fieldset>
<legend i18n:translate="legend_html_filter">HTML Filter</legend>
- <div tal:condition="here/have_plone_filtering|nothing">
+ <div tal:condition="here/have_plone_filtering|nothing"
+ i18n:translate="use_plone_controlpanel">
Please use the <a href="#"
tal:attributes="href string:${portal_url}/@@filter-controlpanel"
i18n:name="plone_filter_controlpanel">
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 17:40:05 2007
@@ -1,7 +1,8 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"
metal:use-macro="here/kupu_config/macros/master"
-i18n:domain="kupuconfig">
+i18n:domain="kupuconfig"
+xmlns:kj="http://kupu.oscom.org/namespaces/kjax">
<metal:cssslot fill-slot="style_slot">
<link href="kupustyles.css" rel="stylesheet" type="text/css" tal:attributes="href string:${portal_url}/kupustyles.css"/>
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 17:40:05 2007
@@ -18,28 +18,30 @@
<div class="documentContent" metal:fill-slot="kupu_content">
<h1 class="documentFirstHeading"
- i18n:translate="heading_configuration">Kupu Toolbar Configuration</h1>
+ i18n:translate="heading_toolbar_configuration">Kupu Toolbar Configuration</h1>
<form action=""
name="configure_kupu_toolbar"
method="post"
tal:attributes="action here/absolute_url">
<fieldset>
- <legend i18n:translate="legend_link_options">Global button visibility</legend>
- <div class="formHelp" i18n:translate="help_link_uid">
- You may enter an expression to control the visibility of all buttons together.
- It should return a list of visible button ids, or None to leave all buttons visible.
- The visibility rules below are then applied to further filter out individual buttons.
- You might use this to restrict a particular class of users to a subset of kupu functions.
-
- <input type="text" style="width:90%" tal:attributes="value context/getGlobalButtonFilter"
- name="globalfilter" />
+ <legend i18n:translate="global_button_visibility">Global button visibility</legend>
+ <div class="formHelp">
+ <span i18n:translate="help_button_visibility">
+ You may enter an expression to control the visibility of all buttons together.
+ It should return a list of visible button ids, or None to leave all buttons visible.
+ The visibility rules below are then applied to further filter out individual buttons.
+ You might use this to restrict a particular class of users to a subset of kupu functions.
+ </span>
+ <input type="text" style="width:90%" tal:attributes="value context/getGlobalButtonFilter"
+ name="globalfilter" />
</div>
</fieldset>
<fieldset>
- <legend i18n:translate="legend_link_options">Button visibility</legend>
- <div class="formHelp" i18n:translate="help_link_uid">Control the global visibility of toolbar buttons from this screen.
+ <legend i18n:translate="legend_button_visibility">Button visibility</legend>
+ <div class="formHelp" i18n:translate="help_global_visibility">
+ Control the global visibility of toolbar buttons from this screen.
If no expression is entered, only checked buttons are visible. Enter an expression for finer control of visibility.
Individual fields may also whitelist or blacklist buttons: see the field schema.
<div>Values available in expressions includes 'field' as well as the usual names</div>
More information about the kupu-checkins
mailing list