[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/ APIDoc i18n
updated
Dmitry Vasiliev
dima at hlabs.spb.ru
Tue Jun 1 04:20:31 EDT 2004
Log message for revision 25140:
APIDoc i18n updated
-=-
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py 2004-05-31 20:07:07 UTC (rev 25139)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py 2004-06-01 08:20:30 UTC (rev 25140)
@@ -494,7 +494,7 @@
>>> cm = ClassModule()
>>> cm.getDocString()
- 'Zope 3 root.'
+ u'Zope 3 root.'
>>> cm.getFileName()
''
>>> cm.getPath()
@@ -550,7 +550,7 @@
def getDocString(self):
"""See Module class."""
- return 'Zope 3 root.'
+ return _('Zope 3 root.')
def getFileName(self):
"""See Module class."""
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/browser.py 2004-05-31 20:07:07 UTC (rev 25139)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/browser.py 2004-06-01 08:20:30 UTC (rev 25140)
@@ -23,6 +23,7 @@
from zope.proxy import removeAllProxies
from zope.app import zapi
+from zope.app.i18n import ZopeMessageIDFactory as _
from zope.app.apidoc.utilities import getPythonPath, stx2html, columnize
from zope.app.apidoc.utilities import getPermissionIds, getFunctionSignature
from zope.app.apidoc.utilities import getPublicAttributes
@@ -388,7 +389,7 @@
>>> crumbs = [crumb.items() for crumb in view.getBreadCrumbs()]
>>> pprint(crumbs)
- [[('url', 'http://127.0.0.1'), ('name', '[top]')],
+ [[('url', 'http://127.0.0.1'), ('name', u'[top]')],
[('url', 'http://127.0.0.1/zope'), ('name', 'zope')],
[('url', 'http://127.0.0.1/zope/app'), ('name', 'app')],
[('url', 'http://127.0.0.1/zope/app/apidoc'), ('name', 'apidoc')],
@@ -406,7 +407,7 @@
module = zapi.getParent(module)
crumbs.append(
- {'name': '[top]',
+ {'name': _('[top]'),
'url': zapi.getView(module, 'absolute_url', self.request)()} )
crumbs.reverse()
Modified: Zope3/trunk/src/zope/app/apidoc/zcmlmodule/index.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/zcmlmodule/index.pt 2004-05-31 20:07:07 UTC (rev 25139)
+++ Zope3/trunk/src/zope/app/apidoc/zcmlmodule/index.pt 2004-06-01 08:20:30 UTC (rev 25140)
@@ -11,10 +11,12 @@
tal:define="info view/getFileInfo"
tal:condition="info">
<i i18n:translate="">File:</i>
- <tal:block content="info/file"/><span i18n:translate="">, from</span>
- <tal:block content="string: (line ${info/line}, column ${info/column})"/>
+ <tal:block content="info/file"/>, <span i18n:translate="">from</span>
+ (<span i18n:translate="">line</span> <tal:block content="info/line"/>,
+ <span i18n:translate="">column</span> <tal:block content="info/column"/>)
<span i18n:translate="">to</span>
- <tal:block content="string: (line ${info/eline}, column ${info/ecolumn})"/>
+ (<span i18n:translate="">line</span> <tal:block content="info/eline"/>,
+ <span i18n:translate="">column</span> <tal:block content="info/ecolumn"/>)
</div>
<div class="indent"
More information about the Zope3-Checkins
mailing list