[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/ API Doc i18n
updated
Dmitry Vasiliev
dima at hlabs.spb.ru
Thu May 27 09:38:44 EDT 2004
Log message for revision 25043:
API Doc i18n updated
-=-
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/class_index.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/class_index.pt 2004-05-27 13:05:35 UTC (rev 25042)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/class_index.pt 2004-05-27 13:38:44 UTC (rev 25043)
@@ -84,9 +84,11 @@
</span>
<span class="small"
tal:condition="python: attr['read_perm'] and attr['write_perm']">
- <i>Permissions:</i>
- <span tal:replace="attr/read_perm">zope.View</span> (read),
- <span tal:replace="attr/write_perm">zope.View</span> (write)
+ <i i18n:translate="">Permissions:</i>
+ <span tal:replace="attr/read_perm">zope.View</span>
+ <span i18n:translate="">(read)</span>,
+ <span tal:replace="attr/write_perm">zope.View</span>
+ <span i18n:translate="">(write)</span>
</span>
</li>
@@ -125,8 +127,10 @@
<span class="small"
tal:condition="python: method['read_perm'] and method['write_perm']">
<i i18n:translate="">Permissions:</i>
- <span tal:replace="method/read_perm">zope.View</span> (read),
- <span tal:replace="method/write_perm">zope.View</span> (write)
+ <span tal:replace="method/read_perm">zope.View</span>
+ <span i18n:translate="">(read)</span>,
+ <span tal:replace="method/write_perm">zope.View</span>
+ <span i18n:translate="">(write)</span>
</span>
</li>
Modified: Zope3/trunk/src/zope/app/apidoc/ifacemodule/index.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/ifacemodule/index.pt 2004-05-27 13:05:35 UTC (rev 25042)
+++ Zope3/trunk/src/zope/app/apidoc/ifacemodule/index.pt 2004-05-27 13:38:44 UTC (rev 25043)
@@ -66,7 +66,8 @@
tal:attributes="href string:../${field/iface/id}/apiindex.html">
<code tal:content="field/iface/name">IField</code></a>
(<span tal:content="string:${field/required}, ">optional, </span>
- default = <code tal:content="field/default" />)<br>
+ <span i18n:translate="">default</span> =
+ <code tal:content="field/default" />)<br>
<span tal:content="field/description">field desc</span>
</li>
@@ -153,7 +154,8 @@
<li tal:repeat="adapter adapters">
<b><code>
<a href=""
- tal:attributes="href adapter/factory_url"
+ tal:attributes="href
+ string:../../Class/${adapter/factory_url}/index.html"
tal:content="adapter/factory"
tal:condition="adapter/factory_url" />
<span tal:content="adapter/factory"
@@ -192,7 +194,7 @@
classes view/getClasses"
tal:condition="python: factories or utilities or services or classes">
- <h2 class="details-section">Other Information</h2>
+ <h2 class="details-section" i18n:translate="">Other Information</h2>
<div class="indent">
Modified: Zope3/trunk/src/zope/app/apidoc/utilities.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/utilities.py 2004-05-27 13:05:35 UTC (rev 25042)
+++ Zope3/trunk/src/zope/app/apidoc/utilities.py 2004-05-27 13:38:44 UTC (rev 25043)
@@ -25,6 +25,7 @@
from zope.proxy import removeAllProxies
from zope.security.checker import getCheckerForInstancesOf, Global
from zope.security.interfaces import INameBasedChecker
+from zope.app.i18n import ZopeMessageIDFactory as _
from zope.app.container.interfaces import IReadContainer
@@ -250,9 +251,9 @@
if checker is not None and INameBasedChecker.providedBy(checker):
entry['read_perm'] = _evalId(checker.permission_id(name)) \
- or 'N/A'
+ or _('n/a')
entry['write_perm'] = _evalId(checker.setattr_permission_id(name)) \
- or 'N/A'
+ or _('n/a')
else:
entry['read_perm'] = entry['write_perm'] = None
More information about the Zope3-Checkins
mailing list