[Zope3-checkins] SVN: Zope3/trunk/s Provide an empty fallback domain. This should normally be turned on

Jim Fulton jim at zope.com
Tue Nov 8 17:57:52 EST 2005


Log message for revision 39994:
  Provide an empty fallback domain.  This should normally be turned on
  for development and testing only.
  

Changed:
  U   Zope3/trunk/site.zcml
  A   Zope3/trunk/src/zope/app/i18n/tests/configure.zcml
  A   Zope3/trunk/src/zope/app/i18n/tests/locales/
  A   Zope3/trunk/src/zope/app/i18n/tests/locales/empty_language/
  A   Zope3/trunk/src/zope/app/i18n/tests/locales/empty_language/LC_MESSAGES/
  A   Zope3/trunk/src/zope/app/i18n/tests/locales/empty_language/LC_MESSAGES/.mo

-=-
Modified: Zope3/trunk/site.zcml
===================================================================
--- Zope3/trunk/site.zcml	2005-11-08 22:57:49 UTC (rev 39993)
+++ Zope3/trunk/site.zcml	2005-11-08 22:57:51 UTC (rev 39994)
@@ -13,4 +13,8 @@
   <include file="securitypolicy.zcml" />
   <include file="principals.zcml" />
 
+  <!-- Load a "default" i18n domain for debugging purposes
+       production sites shouldn't do this -->
+  <include package="zope.app.i18n.tests" />
+
 </configure>

Added: Zope3/trunk/src/zope/app/i18n/tests/configure.zcml
===================================================================
--- Zope3/trunk/src/zope/app/i18n/tests/configure.zcml	2005-11-08 22:57:49 UTC (rev 39993)
+++ Zope3/trunk/src/zope/app/i18n/tests/configure.zcml	2005-11-08 22:57:51 UTC (rev 39994)
@@ -0,0 +1,9 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:i18n="http://namespaces.zope.org/i18n"
+    >
+
+  <!-- Default (empty) Translations -->
+  <i18n:registerTranslations directory="locales" />
+
+</configure>


Property changes on: Zope3/trunk/src/zope/app/i18n/tests/configure.zcml
___________________________________________________________________
Name: svn:eol-style
   + native

Added: Zope3/trunk/src/zope/app/i18n/tests/locales/empty_language/LC_MESSAGES/.mo
===================================================================
(Binary files differ)


Property changes on: Zope3/trunk/src/zope/app/i18n/tests/locales/empty_language/LC_MESSAGES/.mo
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream



More information about the Zope3-Checkins mailing list