[Zope3-checkins] CVS: Zope3/src/zope/i18n/tests -
test_negotiator.py:1.10
Sidnei da Silva
sidnei at x3ng.com.br
Mon Mar 1 08:08:21 EST 2004
Update of /cvs-repository/Zope3/src/zope/i18n/tests
In directory cvs.zope.org:/tmp/cvs-serv13200/tests
Modified Files:
test_negotiator.py
Log Message:
Fallback to base language in case the specific variation is not available.
=== Zope3/src/zope/i18n/tests/test_negotiator.py 1.9 => 1.10 ===
--- Zope3/src/zope/i18n/tests/test_negotiator.py:1.9 Fri Feb 27 17:27:24 2004
+++ Zope3/src/zope/i18n/tests/test_negotiator.py Mon Mar 1 08:08:20 2004
@@ -44,7 +44,8 @@
(('en','de'), ('en','de','fr'), 'en'),
(('en'), ('it','de','fr'), None),
(('pt-br','de'), ('pt_BR','de','fr'), 'pt_BR'),
- (('pt-br','en'), ('pt','en','fr'), 'en'),
+ (('pt-br','en'), ('pt', 'en', 'fr'), 'pt'),
+ (('pt-br','en-us', 'de'), ('de', 'en', 'fr'), 'en'),
)
for user_pref_langs, obj_langs, expected in _cases:
More information about the Zope3-Checkins
mailing list