[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/component/browser/
Utility registration details has been made translatable
Dmitry Vasiliev
dima at hlabs.spb.ru
Thu Mar 17 08:37:12 EST 2005
Log message for revision 29526:
Utility registration details has been made translatable
Changed:
UU Zope3/trunk/src/zope/app/component/browser/site.py
U Zope3/trunk/src/zope/app/component/browser/utilreg_details.pt
-=-
Modified: Zope3/trunk/src/zope/app/component/browser/site.py
===================================================================
--- Zope3/trunk/src/zope/app/component/browser/site.py 2005-03-17 13:31:42 UTC (rev 29525)
+++ Zope3/trunk/src/zope/app/component/browser/site.py 2005-03-17 13:37:12 UTC (rev 29526)
@@ -15,9 +15,13 @@
$Id$
"""
+
__docformat__ = "reStructuredText"
+
from zope.app import zapi
+from zope.app.i18n import ZopeMessageIDFactory as _
+
class UtilityRegistrationDetails(object):
"""Utility Registration Details"""
@@ -26,7 +30,7 @@
return provided.__module__ + '.' + provided.__name__
def name(self):
- return self.context.name or '<no name>'
+ return self.context.name or _('<no name>')
def component(self):
url = zapi.getMultiAdapter(
Property changes on: Zope3/trunk/src/zope/app/component/browser/site.py
___________________________________________________________________
Name: svn:keywords
+ Id
Modified: Zope3/trunk/src/zope/app/component/browser/utilreg_details.pt
===================================================================
--- Zope3/trunk/src/zope/app/component/browser/utilreg_details.pt 2005-03-17 13:31:42 UTC (rev 29525)
+++ Zope3/trunk/src/zope/app/component/browser/utilreg_details.pt 2005-03-17 13:37:12 UTC (rev 29526)
@@ -1,4 +1,4 @@
-<ul style="margin-top: 0; margin-bottom: 0">
+<ul style="margin-top: 0; margin-bottom: 0" i18n:domain="zope">
<li>
<i i18n:translate="">provided:</i>
<span tal:content="view/provided">zope.app.interfaces.IMyUtility</span>
@@ -9,9 +9,9 @@
</li>
<li tal:define="component view/component">
<i i18n:translate="">component:</i>
- <a href=""
- tal:attributes="href
+ <a href=""
+ tal:attributes="href
string:${component/url}/@@SelectedManagementView.html"
tal:content="component/name">myutility</a>
</li>
-</ul>
\ No newline at end of file
+</ul>
More information about the Zope3-Checkins
mailing list