[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/registration - __init__.py:1.4 changeregistrations.pt:1.3 editregistration.pt:1.6

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 7 17:28:08 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/services/registration
In directory cvs.zope.org:/tmp/cvs-serv22059/browser/services/registration

Modified Files:
	__init__.py changeregistrations.pt editregistration.pt 
Log Message:
Caught some untranslated spots.


=== Zope3/src/zope/app/browser/services/registration/__init__.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/services/registration/__init__.py:1.3	Wed Jul  2 15:15:01 2003
+++ Zope3/src/zope/app/browser/services/registration/__init__.py	Thu Aug  7 16:27:33 2003
@@ -18,6 +18,7 @@
 
 from zope.app.browser.container.adding import Adding
 from zope.app.browser.form.widget import BrowserWidget
+from zope.app.i18n import ZopeMessageIDFactory as _
 from zope.app.interfaces.browser.form import IBrowserWidget
 from zope.app.interfaces.container import IZopeContainer
 from zope.app.interfaces.services.registration import RegisteredStatus
@@ -131,12 +132,12 @@
                 active = self.context.active()
                 if active is not None:
                     self.context.activate(None)
-                    message = "Disabled"
+                    message = _("Disabled")
             else:
                 for info in self.context.info():
                     if info['id'] == id and not info['active']:
                         self.context.activate(info['registration'])
-                        message = "Updated"
+                        message = _("Updated")
                         break
                             
         return message


=== Zope3/src/zope/app/browser/services/registration/changeregistrations.pt 1.2 => 1.3 ===
--- Zope3/src/zope/app/browser/services/registration/changeregistrations.pt:1.2	Wed Jul  2 15:15:01 2003
+++ Zope3/src/zope/app/browser/services/registration/changeregistrations.pt	Thu Aug  7 16:27:33 2003
@@ -1,4 +1,4 @@
-<table width="100%">
+<table width="100%" i18n:domain="zope">
   <tr tal:define="message view/message" tal:condition="message">
      <td></td>
      <td colspan="2"><em tal:content="message">xxxx</em></td>


=== Zope3/src/zope/app/browser/services/registration/editregistration.pt 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/services/registration/editregistration.pt:1.5	Thu Aug  7 13:41:28 2003
+++ Zope3/src/zope/app/browser/services/registration/editregistration.pt	Thu Aug  7 16:27:33 2003
@@ -34,7 +34,8 @@
                 Config item <span tal:content="config/name" />
               </span>
             </a>
-            <span tal:condition="not:config/active">(disabled)</span>
+            <span tal:condition="not:config/active"
+                i18n:translate="">(disabled)</span>
             <br />
             <span tal:content="config/line2|default">
               (No implementation summary)




More information about the Zope3-Checkins mailing list