[Zope3-checkins] SVN: Zope3/trunk/src/bugtracker/browser/ Added
translation slots
Dmitry Vasiliev
dima at hlabs.spb.ru
Mon Apr 25 03:37:58 EDT 2005
Log message for revision 30148:
Added translation slots
Changed:
U Zope3/trunk/src/bugtracker/browser/bug_add.pt
U Zope3/trunk/src/bugtracker/browser/bug_edit.pt
U Zope3/trunk/src/bugtracker/browser/bug_overview.pt
U Zope3/trunk/src/bugtracker/browser/skin/dialog_macros.pt
U Zope3/trunk/src/bugtracker/browser/skin/template.pt
U Zope3/trunk/src/bugtracker/browser/tracker.py
U Zope3/trunk/src/bugtracker/browser/tracker_add.pt
U Zope3/trunk/src/bugtracker/browser/tracker_overview.pt
U Zope3/trunk/src/bugtracker/browser/tracker_settings.pt
-=-
Modified: Zope3/trunk/src/bugtracker/browser/bug_add.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/bug_add.pt 2005-04-24 15:26:39 UTC (rev 30147)
+++ Zope3/trunk/src/bugtracker/browser/bug_add.pt 2005-04-25 07:37:53 UTC (rev 30148)
@@ -1,4 +1,5 @@
-<html metal:use-macro="context/@@standard_macros/dialog">
+<html metal:use-macro="context/@@standard_macros/dialog"
+ i18n:domain="bugtracker">
<body>
<div metal:fill-slot="body">
@@ -8,18 +9,18 @@
<h3 tal:condition="view/label"
tal:content="view/label"
>Edit something</h3>
-
+
<p tal:define="status view/update"
tal:condition="status"
tal:content="status" />
-
+
<p tal:condition="view/errors">
<span i18n:translate="">There are
- <strong tal:content="python:len(view.errors)"
+ <strong tal:content="python:len(view.errors)"
i18n:name="num_errors">6</strong>
input errors.</span>
</p>
-
+
<div>
<div class="row">
@@ -67,7 +68,7 @@
<div class="controls">
<input type="submit" value="Refresh"
i18n:attributes="value refresh-button" />
- <input type="submit" name="UPDATE_SUBMIT" value="Submit"
+ <input type="submit" name="UPDATE_SUBMIT" value="Submit"
i18n:attributes="value submit-button"/>
</div>
</div>
Modified: Zope3/trunk/src/bugtracker/browser/bug_edit.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/bug_edit.pt 2005-04-24 15:26:39 UTC (rev 30147)
+++ Zope3/trunk/src/bugtracker/browser/bug_edit.pt 2005-04-25 07:37:53 UTC (rev 30148)
@@ -1,4 +1,5 @@
-<html metal:use-macro="views/standard_macros/view">
+<html metal:use-macro="views/standard_macros/view"
+ i18n:domain="bugtracker">
<head>
<style metal:fill-slot="style_slot"
type="text/css" media="all"
@@ -17,7 +18,7 @@
<p tal:define="status view/update"
tal:condition="status"
tal:content="status" />
-
+
<p tal:condition="view/errors">
<span i18n:translate="">There are
<strong tal:content="python:len(view.errors)"
@@ -73,13 +74,13 @@
<div class="controls">
<input type="submit" value="Refresh"
i18n:attributes="value refresh-button" />
- <input type="submit" name="UPDATE_SUBMIT" value="Submit"
+ <input type="submit" name="UPDATE_SUBMIT" value="Submit"
i18n:attributes="value submit-button"/>
</div>
</div>
-
+
</form>
-
+
</div>
</body>
</html>
Modified: Zope3/trunk/src/bugtracker/browser/bug_overview.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/bug_overview.pt 2005-04-24 15:26:39 UTC (rev 30147)
+++ Zope3/trunk/src/bugtracker/browser/bug_overview.pt 2005-04-25 07:37:53 UTC (rev 30148)
@@ -1,4 +1,5 @@
-<html metal:use-macro="views/standard_macros/view">
+<html metal:use-macro="views/standard_macros/view"
+ i18n:domain="bugtracker">
<head>
<style metal:fill-slot="style_slot"
type="text/css" media="all"
@@ -59,40 +60,40 @@
<h4 i18n:translate="">Description</h4>
<div class="single_p" id="description"
tal:content="structure view/description">Bug Description</div>
-
+
<h4 i18n:translate="" i18n:domain="bugtracker">Direct Dependencies</h4>
<div class="single_p">
<tal:block repeat="dep view/dependencies" tal:omit-tag="">
<a href="" tal:attributes="href string:../$dep"
tal:content="dep">Dep Bug</a>
<d tal:condition="not:repeat/dep/end" tal:replace="string:," />
-
+
</tal:block>
</div>
<div class="action" i18n:domain="bugtracker">
- <a href="./@@+/action.html?type_name=AddDependentBug.html"
+ <a href="./@@+/action.html?type_name=AddDependentBug.html"
i18n:translate="">Add Bug</a>
</div>
-
+
<h4 i18n:translate="" i18n:domain="bugtracker">Attachments</h4>
<ul id="attachments" tal:condition="view/attachments">
<li tal:repeat="attch view/attachments">
- <a href="" tal:attributes="href string: ./${attch/name}"
+ <a href="" tal:attributes="href string: ./${attch/name}"
tal:content="attch/name">Attachment 1</a>
(<div tal:replace="attch/size">Size here</div>)
</li>
</ul>
<div class="action" i18n:domain="bugtracker">
- <a href="./@@+/action.html?type_name=zope.app.file.File"
+ <a href="./@@+/action.html?type_name=zope.app.file.File"
i18n:translate="">Add File</a> |
- <a href="./@@+/action.html?type_name=zope.app.file.Image"
+ <a href="./@@+/action.html?type_name=zope.app.file.Image"
i18n:translate="">Add Image</a>
</div>
<h4 i18n:translate="" i18n:domain="bugtracker">Comments</h4>
<div tal:repeat="comment view/comments" i18n:domain="">
<h5 style="margin: 0em 0.6em" i18n:translate="">
- Entry #<d tal:replace="repeat/comment/number" i18n:name="bug_id"/> by
+ Entry #<d tal:replace="repeat/comment/number" i18n:name="bug_id"/> by
<d tal:replace="comment/creator/title" i18n:name="creator"/> on
<d tal:replace="comment/modified" i18n:name="modified_datetime"/>
</h5>
@@ -100,7 +101,7 @@
tal:content="structure comment/body">Comment body</div>
</div>
<div class="action" i18n:domain="bugtracker">
- <a href="./@@+/action.html?type_name=AddBugComment.html"
+ <a href="./@@+/action.html?type_name=AddBugComment.html"
i18n:translate="">Add Comment</a>
</div>
Modified: Zope3/trunk/src/bugtracker/browser/skin/dialog_macros.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/skin/dialog_macros.pt 2005-04-24 15:26:39 UTC (rev 30147)
+++ Zope3/trunk/src/bugtracker/browser/skin/dialog_macros.pt 2005-04-25 07:37:53 UTC (rev 30148)
@@ -4,10 +4,11 @@
xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en"
lang="en"
- i18n:domain="zope">
+ i18n:domain="bugtracker">
<head>
- <title metal:define-slot="title">Zope 3 Bug Tracker</title>
+ <title metal:define-slot="title"
+ i18n:translate="">Zope 3 Bug Tracker</title>
<style type="text/css"
@@ -90,7 +91,7 @@
<div class="body">
<div class="content odd">
<metal:block define-slot="pagetip" tal:replace="pagetip">
- A short tip goes here
+ A short tip goes here
</metal:block>
</div>
</div>
@@ -100,7 +101,7 @@
</div>
<div id="footer"
- metal:define-macro="footer">
+ metal:define-macro="footer" i18n:translate="">
Powered by Zope 3. Written by Stephan Richter in 2003.
</div>
Modified: Zope3/trunk/src/bugtracker/browser/skin/template.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/skin/template.pt 2005-04-24 15:26:39 UTC (rev 30147)
+++ Zope3/trunk/src/bugtracker/browser/skin/template.pt 2005-04-25 07:37:53 UTC (rev 30148)
@@ -3,13 +3,13 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xml:lang="en"
lang="en"
- i18n:domain="zope">
+ i18n:domain="bugtracker">
<head>
- <title
+ <title
metal:define-slot="title"
tal:content="context/title|default"
- i18n:domain="bugtracker" i18n:translate="">Zope 3 Bug Tracker</title>
+ >Zope 3 Bug Tracker</title>
<style type="text/css"
@@ -148,8 +148,7 @@
+ url + ','
+ name + ','
+ settings +')'"
- tal:content="help_info/title"
- i18n:translate="">
+ tal:content="help_info/title" >
Action name
</a>
</span>
@@ -228,8 +227,8 @@
</div>
</div>
- <div id="footer" metal:define-macro="footer"
- i18n:domain="bugtracker" i18n:translate="">
+ <div id="footer" metal:define-macro="footer"
+ i18n:translate="">
Powered by Zope 3. Written by Stephan Richter in 2003.
</div>
Modified: Zope3/trunk/src/bugtracker/browser/tracker.py
===================================================================
--- Zope3/trunk/src/bugtracker/browser/tracker.py 2005-04-24 15:26:39 UTC (rev 30147)
+++ Zope3/trunk/src/bugtracker/browser/tracker.py 2005-04-25 07:37:53 UTC (rev 30148)
@@ -184,11 +184,11 @@
# - Vocabulary Registry name
# - Display Title
# - bug attribute name
- filter_vars = (('stati', 'Stati', 'Status', 'status'),
- ('types', 'BugTypes', 'Type', 'type'),
- ('releases', 'Releases', 'Release', 'release'),
- ('priorities', 'Priorities', 'Priority', 'priority'),
- ('owners', 'Users', 'Owners', 'owners'),
+ filter_vars = (('stati', 'Stati', _('Status'), 'status'),
+ ('types', 'BugTypes', _('Type'), 'type'),
+ ('releases', 'Releases', _('Release'), 'release'),
+ ('priorities', 'Priorities', _('Priority'), 'priority'),
+ ('owners', 'Users', _('Owners'), 'owners'),
)
def getBugs(self):
Modified: Zope3/trunk/src/bugtracker/browser/tracker_add.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/tracker_add.pt 2005-04-24 15:26:39 UTC (rev 30147)
+++ Zope3/trunk/src/bugtracker/browser/tracker_add.pt 2005-04-25 07:37:53 UTC (rev 30148)
@@ -1,4 +1,5 @@
-<html metal:use-macro="context/@@standard_macros/page">
+<html metal:use-macro="context/@@standard_macros/page"
+ i18n:domain="bugtracker">
<body>
<div metal:fill-slot="body">
Modified: Zope3/trunk/src/bugtracker/browser/tracker_overview.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/tracker_overview.pt 2005-04-24 15:26:39 UTC (rev 30147)
+++ Zope3/trunk/src/bugtracker/browser/tracker_overview.pt 2005-04-25 07:37:53 UTC (rev 30148)
@@ -1,4 +1,5 @@
-<html metal:use-macro="context/@@standard_macros/view">
+<html metal:use-macro="context/@@standard_macros/view"
+ i18n:domain="bugtracker">
<head>
<style metal:fill-slot="style_slot"
type="text/css" media="all"
@@ -12,22 +13,22 @@
<div metal:fill-slot="body" tal:define="bugs view/getBugs">
<div class="box">
- <h4 style="padding: 0.3em">Filter Options</h4>
+ <h4 style="padding: 0.3em" i18n:translate="">Filter Options</h4>
<div class="body">
- <form action="updateOverviewSettings.html" method="post"
+ <form action="updateOverviewSettings.html" method="post"
class="even" style="padding: 0.5em;"
tal:define="settings view/getSettingsInfo">
-
+
<div class="row"
tal:condition="view/getShowFilterOptions">
<div class="field">
- <b>Filter Text</b>
+ <b i18n:translate="">Filter Text</b>
<input type="text" name="search_text" value=""
tal:attributes="value view/getSearchText">
</div>
<div class="field"> </div>
<div class="field">
- <b>View Type</b>
+ <b i18n:translate="">View Type</b>
<select name="view_type">
<tal:block repeat="vt python: ('normal', 'compressed')">
<option selected=""
@@ -42,11 +43,11 @@
</select>
</div>
</div>
-
+
<div class="row"
tal:condition="view/getShowFilterOptions">
<div class="field" tal:repeat="var settings">
-
+
<b tal:content="var/title">Status</b><br/>
<select size="5" name="stati:list" multiple="yes"
tal:attributes="name string:${var/name}:list">
@@ -61,7 +62,7 @@
tal:content="entry/title">New</option>
</tal:block>
</select>
-
+
</div>
</div>
<div class="row">
@@ -74,14 +75,14 @@
<input type="submit" name="COLLAPSE" value="Collapse"
tal:condition="view/getShowFilterOptions"
i18n:attributes="value collapse-button" />
-
+
<input type="submit" name="EXPAND" value="Expand"
tal:condition="not: view/getShowFilterOptions"
- i18n:attributes="value expand-button" />
+ i18n:attributes="value expand-button" />
</div>
</div>
<div class="clear"/>
-
+
</form>
</div>
</div>
@@ -89,12 +90,12 @@
<div class="row" i18n:domain="bugtracker">
<div class="control">
<form action="./+/AddBug.html=" method="post">
- <input type="submit" name="add" value="Add Bug"
+ <input type="submit" name="add" value="Add Bug"
i18n:attributes="value add-bug-button"/>
</form>
</div>
</div>
- <div class="batch" tal:condition="bugs/startNumber" i18n:domain="bugtracker">
+ <div class="batch" tal:condition="bugs/startNumber">
<div class="prev_batch" tal:define="prev bugs/prevBatch">
<a href=""
tal:condition="prev"
@@ -102,12 +103,12 @@
string:./@@overview.html?start=${prev/start}&size=${prev/size}"
i18n:translate="">
Previous
- (<d tal:replace="prev/startNumber" i18n:name="start_number" /> to
+ (<d tal:replace="prev/startNumber" i18n:name="start_number" /> to
<d tal:replace="prev/endNumber" i18n:name="end_number" />)
</a>
</div>
<div class="curr_batch" i18n:translate="">
- <d tal:replace="bugs/startNumber" i18n:name="start_number"/> to
+ <d tal:replace="bugs/startNumber" i18n:name="start_number"/> to
<d tal:replace="bugs/endNumber" i18n:name="end_number"/>
of <d tal:replace="bugs/total" i18n:name="batch_total_number"/> found
(<d tal:replace="view/numberOfBugs" i18n:name="bug_number"/> total)
@@ -119,22 +120,22 @@
string:./@@overview.html?start=${next/start}&size=${next/size}"
i18n:translate="">
Next
- (<d tal:replace="next/startNumber" i18n:name="start_number" /> to
- <d tal:replace="next/endNumber" i18n:name="end_number" />)
+ (<d tal:replace="next/startNumber" i18n:name="start_number" /> to
+ <d tal:replace="next/endNumber" i18n:name="end_number" />)
</a>
</div>
- <div class="clear"></div>
+ <div class="clear"></div>
</div>
- <div
+ <div
tal:condition="python: view.getViewType() == 'normal'"
tal:replace="structure view/bug_listing_normal" />
- <div
+ <div
tal:condition="python: view.getViewType() == 'compressed'"
tal:replace="structure view/bug_listing_compressed" />
- <div class="batch" tal:condition="bugs/startNumber" i18n:domain="bugtracker">
+ <div class="batch" tal:condition="bugs/startNumber">
<div class="prev_batch" tal:define="prev bugs/prevBatch">
<a href=""
tal:condition="prev"
@@ -142,12 +143,12 @@
string:./@@overview.html?start=${prev/start}&size=${prev/size}"
i18n:translate="">
Previous
- (<d tal:replace="prev/startNumber" i18n:name="start_number" /> to
- <d tal:replace="prev/endNumber" i18n:name="end_number" />)
+ (<d tal:replace="prev/startNumber" i18n:name="start_number" /> to
+ <d tal:replace="prev/endNumber" i18n:name="end_number" />)
</a>
</div>
<div class="curr_batch" i18n:translate="">
- <d tal:replace="bugs/startNumber" i18n:name="start_number"/> to
+ <d tal:replace="bugs/startNumber" i18n:name="start_number"/> to
<d tal:replace="bugs/endNumber" i18n:name="end_number"/>
of <d tal:replace="bugs/total" i18n:name="batch_total_number"/> found
(<d tal:replace="view/numberOfBugs" i18n:name="bug_number"/> total)
@@ -159,8 +160,8 @@
string:./@@overview.html?start=${next/start}&size=${next/size}"
i18n:translate="">
Next
- (<d tal:replace="next/startNumber" i18n:name="start_number" /> to
- <d tal:replace="next/endNumber" i18n:name="end_number" />)
+ (<d tal:replace="next/startNumber" i18n:name="start_number" /> to
+ <d tal:replace="next/endNumber" i18n:name="end_number" />)
</a>
</div>
<div class="clear"></div>
@@ -168,7 +169,7 @@
<div class="row" i18n:domain="bugtracker">
<div class="control">
<form action="./+/AddBug.html=" method="post">
- <input type="submit" name="add" value="Add Bug"
+ <input type="submit" name="add" value="Add Bug"
i18n:attributes="value add-bug-button"/>
</form>
</div>
Modified: Zope3/trunk/src/bugtracker/browser/tracker_settings.pt
===================================================================
--- Zope3/trunk/src/bugtracker/browser/tracker_settings.pt 2005-04-24 15:26:39 UTC (rev 30147)
+++ Zope3/trunk/src/bugtracker/browser/tracker_settings.pt 2005-04-25 07:37:53 UTC (rev 30148)
@@ -1,8 +1,9 @@
-<html metal:use-macro="context/@@standard_macros/view">
+<html metal:use-macro="context/@@standard_macros/view"
+ i18n:domain="bugtracker">
<body>
<div metal:fill-slot="body">
- <div tal:repeat="vocab view/getManagableVocabularyViews">
+ <div tal:repeat="vocab view/getManagableVocabularyViews">
<h2 tal:content="vocab/title">Some Variable Definitions</h2>
<br />
@@ -11,7 +12,7 @@
<input type="hidden" name="iface" value=""
tal:attributes="value vocab/vocab_iface/getName" />
- <b i18n:translate="" i18n:domain="bugtracker">Existing Values:</b>
+ <b i18n:translate="">Existing Values:</b>
<select size="5" name="values:list" multiple="yes">
<tal:block repeat="entry vocab/getExistingValues">
<option value=""
@@ -21,12 +22,12 @@
</option>
</tal:block>
</select>
- <input type="submit" name="deleteValues.html:method" value="Delete"
+ <input type="submit" name="deleteValues.html:method" value="Delete"
i18n:attributes="value delete-button"/>
<input type="submit" name="setDefaultValue.html:method"
value="Set Default" i18n:attributes="value set-default-button"/>
<br>
- <b i18n:translate="" i18n:domain="bugtracker">Default Value:</b>
+ <b i18n:translate="">Default Value:</b>
<span tal:define="default vocab/default"
tal:content="string: ${default/title} (${default/value})" />
@@ -35,7 +36,7 @@
<input type="text" size="10" name="value" />
<span i18n:translate="">Title:</span>
<input type="text" size="10" name="title" />
- <input type="submit" name="addValue.html:method" value="Add"
+ <input type="submit" name="addValue.html:method" value="Add"
i18n:attributes="value add-button"/>
</form>
More information about the Zope3-Checkins
mailing list