[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container -
adding.py:1.32
Jim Fulton
jim at zope.com
Tue Dec 16 09:54:17 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/container
In directory cvs.zope.org:/tmp/cvs-serv25730/src/zope/app/browser/container
Modified Files:
adding.py
Log Message:
Finished half-implemented i18n support.
=== Zope3/src/zope/app/browser/container/adding.py 1.31 => 1.32 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.31 Mon Dec 15 07:45:05 2003
+++ Zope3/src/zope/app/browser/container/adding.py Tue Dec 16 09:53:47 2003
@@ -85,6 +85,10 @@
"""To Render Add button with or without Inputbox"""
container = self.context
button_label = _('add-button', 'Add')
+ translation = zapi.getService(self.context,
+ zapi.servicenames.Translation)
+ button_label = translation.translate(button_label,
+ context=self.request)
if IContainerNamesContainer.isImplementedBy(container):
return "<input type='submit' name='UPDATE_SUBMIT' value='%s'>" \
% button_label
More information about the Zope3-Checkins
mailing list