[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/i18n/ Fix issue 260: Make ttw translation domains work again

Philipp von Weitershausen philikon at philikon.de
Thu Aug 12 21:22:21 EDT 2004


Log message for revision 27091:
  Fix issue 260: Make ttw translation domains work again
  


Changed:
  U   Zope3/trunk/src/zope/app/i18n/configure.zcml
  U   Zope3/trunk/src/zope/app/i18n/translationdomain.py


-=-
Modified: Zope3/trunk/src/zope/app/i18n/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/i18n/configure.zcml	2004-08-13 00:43:27 UTC (rev 27090)
+++ Zope3/trunk/src/zope/app/i18n/configure.zcml	2004-08-13 01:22:21 UTC (rev 27091)
@@ -49,22 +49,17 @@
 
 <!-- Setup Message Catalogs -->
 <content class=".messagecatalog.MessageCatalog">
+  <factory id="zope.app.MessageCatalog" />
+  <implements 
+      interface="zope.app.annotation.interfaces.IAttributeAnnotatable" />
 
   <require permission="zope.View" 
       interface="zope.i18n.interfaces.IMessageCatalog" />
-
   <require permission="zope.ManageServices"
       attributes="setMessage getMessageIds" />
-  <implements 
-      interface="zope.app.annotation.interfaces.IAttributeAnnotatable" />
 </content>
 
-<factory 
-    component="zope.app.i18n.messagecatalog.MessageCatalog" 
-    id="zope.app.MessageCatalog"
-    />
 
-
 <!-- Setup Export and Import Filters -->
 <adapter 
     factory=".filters.GettextExportFilter"

Modified: Zope3/trunk/src/zope/app/i18n/translationdomain.py
===================================================================
--- Zope3/trunk/src/zope/app/i18n/translationdomain.py	2004-08-13 00:43:27 UTC (rev 27090)
+++ Zope3/trunk/src/zope/app/i18n/translationdomain.py	2004-08-13 01:22:21 UTC (rev 27091)
@@ -168,7 +168,8 @@
 
     def addLanguage(self, language):
         'See `IWriteTranslationService`'
-        catalog = zapi.createObject(None, 'Message Catalog', language)
+        catalog = zapi.createObject(None, u'zope.app.MessageCatalog',
+                                    language)
         self[language] = catalog
 
 



More information about the Zope3-Checkins mailing list