[Zope3-checkins] CVS: Zope3/src/zope/app/site/browser - tools.py:1.4

Dmitry Vasiliev dima at hlabs.spb.ru
Tue Apr 6 04:34:38 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/site/browser
In directory cvs.zope.org:/tmp/cvs-serv4531/site/browser

Modified Files:
	tools.py 
Log Message:
zope.pot updated


=== Zope3/src/zope/app/site/browser/tools.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/site/browser/tools.py:1.3	Sun Mar 21 19:52:27 2004
+++ Zope3/src/zope/app/site/browser/tools.py	Tue Apr  6 04:34:07 2004
@@ -35,6 +35,8 @@
 from zope.app.copypastemove import rename
 from zope.app.site.browser import ServiceAdding
 
+from zope.app.i18n import ZopeMessageIDFactory as _
+
 
 class IToolType(IInterface):
     """Interfaces implementing the tool type are considered tools."""
@@ -154,18 +156,18 @@
             self.request.response.redirect('./AddServiceTool')
         elif self.request.form.has_key('DELETE'):
             self.delete()
-            status = 'Deleted selected tools.'
+            status = _('Deleted selected tools.')
         elif self.request.form.has_key('APPLY_RENAME'):
             self.rename()
-            status = 'Renamed selected tools.'            
+            status = _('Renamed selected tools.')         
         elif self.request.form.has_key('REFRESH'):
             pass
         elif self.request.form.has_key('ACTIVATE'):
             self.activate()
-            status = 'Activated registrations.'
+            status = _('Activated registrations.')
         elif self.request.form.has_key('DEACTIVATE'):
             self.deactivate()
-            status = 'Deactivated registrations.'
+            status = _('Deactivated registrations.')
             
         return status
     
@@ -298,20 +300,20 @@
                                            self.interface.getName())
         elif self.request.form.has_key('DELETE'):
             self.delete()
-            status = 'Deleted selected tools.'
+            status = _('Deleted selected tools.')
         elif self.request.form.has_key('RENAME'):
             self.renameList = self.request.form.get('selected', [])
         elif self.request.form.has_key('APPLY_RENAME'):
             self.rename()
-            status = 'Renamed selected tools.'            
+            status = _('Renamed selected tools.')         
         elif self.request.form.has_key('REFRESH'):
             pass
         elif self.request.form.has_key('ACTIVATE'):
             self.activate()
-            status = 'Activated registrations.'
+            status = _('Activated registrations.')
         elif self.request.form.has_key('DEACTIVATE'):
             self.deactivate()
-            status = 'Deactivated registrations.'
+            status = _('Deactivated registrations.')
             
         return status
     




More information about the Zope3-Checkins mailing list