[Zope-Checkins] CVS: Zope3/lib/python/Zope/I18n - metaConfigure.py:1.3
Barry Warsaw
barry@wooz.org
Tue, 18 Jun 2002 14:22:59 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/I18n
In directory cvs.zope.org:/tmp/cvs-serv3520/lib/python/Zope/I18n
Modified Files:
metaConfigure.py
Log Message:
Added defaultLanguages() hooked up to the gts:defaultLanguages directive.
=== Zope3/lib/python/Zope/I18n/metaConfigure.py 1.2 => 1.3 ===
callable = translationService.addCatalog,
args = (catalog,) ))
-
return actions
+
+def defaultLanguages(_context, languages):
+ langs = [L.strip() for L in languages.split()]
+ return [Action(discriminator = ('gts', languages),
+ callable = translationService.setLanguageFallbacks,
+ args = (langs,))]