[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/interface
- browse.pt:1.3 configure.zcml:1.4 detail.pt:1.7
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Aug 7 14:42:24 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/services/interface
In directory cvs.zope.org:/tmp/cvs-serv26029/services/interface
Modified Files:
browse.pt configure.zcml detail.pt
Log Message:
Internationalized the rest of zope/app/browser.
I also took the chance to clean up some old code and remove a lot of cruft.
(This is the reason I decided to do it instead of letting a less
experienced developer do it.)
I now consider I18n of the Zope core done. What does this mean to you?
1. All code you check into the CVS must be internationalized. That means:
(a) Python and PT code must be properly tagged.
(b) zope.pot must be updated. This can be done with::
[zope/app/translation_files]$ python extract.py
Note: You do not need to merge the new POT file with the catalogs.
2. Any code snippet that has no I18n is considered a bug! Therefore, please
take care and do the I18n and make code so when you see missing spots.
Finally I would like to mention that some forms might experience some
hickups, as I changed and moved around a lot of templates and was not able
to verify them all by hand. Please let me know, if something that used to
work is not working anymore.
=== Zope3/src/zope/app/browser/services/interface/browse.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/interface/browse.pt:1.2 Wed Jun 25 18:14:26 2003
+++ Zope3/src/zope/app/browser/services/interface/browse.pt Thu Aug 7 13:41:19 2003
@@ -1,18 +1,17 @@
-<html metal:use-macro="context/@@standard_macros/page"
- i18n:domain="zope">
+<html metal:use-macro="context/@@standard_macros/page">
<body>
<div metal:fill-slot="body">
-<h2 i18n:translate="">Interfaces registered with the interface service</h2>
+ <h2 i18n:translate="">Interfaces registered with the interface service</h2>
-<ul>
-<li tal:repeat="dict view/getInterfaces">
- <a href="/"
- tal:attributes="href string:detail.html?id=${dict/id}"
- tal:content="dict/name">An interface name
- </a>
-</li>
-</ul>
+ <ul>
+ <li tal:repeat="dict view/getInterfaces">
+ <a href="/"
+ tal:attributes="href string:detail.html?id=${dict/id}"
+ tal:content="dict/name">An interface name
+ </a>
+ </li>
+ </ul>
</div>
</body>
=== Zope3/src/zope/app/browser/services/interface/configure.zcml 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/services/interface/configure.zcml:1.3 Sun Aug 3 13:49:32 2003
+++ Zope3/src/zope/app/browser/services/interface/configure.zcml Thu Aug 7 13:41:19 2003
@@ -1,34 +1,26 @@
-<configure
- xmlns="http://namespaces.zope.org/browser"
- i18n_domain='zope'
- >
+<configure xmlns="http://namespaces.zope.org/browser">
-<menuItem
- menu="add_service"
- for="zope.app.interfaces.container.IAdding"
- action="zope.app.services.LocalInterfaceService"
- title="Local Interface Service"
- permission="zope.ManageServices"
- />
-
-<page
- for="zope.app.interfaces.component.IInterfaceService"
- name="browse.html"
- template="browse.pt"
- class=".Interfaces"
- permission="zope.ManageServices"
- menu="zmi_views"
- title="Browse"
- />
-
-<page
- for="zope.app.interfaces.component.IInterfaceService"
- name="detail.html"
- template="detail.pt"
- class=".Detail"
- permission="zope.ManageServices"
- menu="zmi_views"
- title="Detail"
- />
+ <menuItem
+ menu="add_service"
+ for="zope.app.interfaces.container.IAdding"
+ action="zope.app.services.LocalInterfaceService"
+ title="Local Interface Service"
+ permission="zope.ManageServices" />
+
+ <page
+ for="zope.app.interfaces.component.IInterfaceService"
+ name="browse.html"
+ template="browse.pt"
+ class=".Interfaces"
+ permission="zope.ManageServices"
+ menu="zmi_views" title="Browse" />
+
+ <page
+ for="zope.app.interfaces.component.IInterfaceService"
+ name="detail.html"
+ template="detail.pt"
+ class=".Detail"
+ permission="zope.ManageServices"
+ menu="zmi_views" title="Detail" />
</configure>
=== Zope3/src/zope/app/browser/services/interface/detail.pt 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/services/interface/detail.pt:1.6 Mon Jun 30 13:10:56 2003
+++ Zope3/src/zope/app/browser/services/interface/detail.pt Thu Aug 7 13:41:19 2003
@@ -1,48 +1,47 @@
-<html metal:use-macro="context/@@standard_macros/page"
- i18n:domain="zope">
+<html metal:use-macro="context/@@standard_macros/page">
<body>
<div metal:fill-slot="body" tal:define="ignored view/setup">
-<h2 i18n:translate="">Interface
-<span tal:content="view/name">name</span>
-</h2>
+ <h2 i18n:translate="">
+ Interface
+ <span tal:content="view/name" i18n:name="iface_name">name</span>
+ </h2>
-<div tal:condition="view/doc">
- <h3>Documentation</h3>
+ <div tal:condition="view/doc">
+ <h3 i18n:translate="">Documentation</h3>
<div tal:content="view/doc">This is a doc string.</div>
-</div>
+ </div>
-<div tal:condition="view/methods">
- <h3>Methods</h3>
+ <div tal:condition="view/methods">
+ <h3 i18n:translate="">Methods</h3>
<ul>
- <li tal:repeat="method view/methods"
- tal:content="method/__name__">Method name</li>
+ <li tal:repeat="method view/methods"
+ tal:content="method/__name__">Method name</li>
</ul>
-</div>
+ </div>
-<div tal:condition="view/schema">
- <h3>Schema</h3>
+ <div tal:condition="view/schema">
+ <h3 i18n:translate="">Schema</h3>
<ul>
- <li tal:repeat="field view/schema"
- tal:content="field/__name__">Field name</li>
+ <li tal:repeat="field view/schema"
+ tal:content="field/__name__">Field name</li>
</ul>
-</div>
+ </div>
-<div tal:repeat="service view/getServices">
+ <div tal:repeat="service view/getServices">
<h3 i18n:translate="">Registrations for
- <span tal:content="service/name" i18n:name="name">Name</span>
- service
+ <span tal:content="service/name" i18n:name="service_name">Name</span>
+ service
</h3>
<ul>
- <li tal:repeat="reg service/registrations">
+ <li tal:repeat="reg service/registrations">
<em tal:content="reg/status">status</em>
<strong tal:content="reg/usageSummary">usage</strong><br />
<span tal:content="reg/implementationSummary">impl</span>
- </li>
+ </li>
</ul>
-
-</div>
+ </div>
</div>
</body>
More information about the Zope3-Checkins
mailing list