[Zope3-checkins] CVS: Zope3/src/zope/i18n/tests -
test_negotiator.py:1.6.16.3
Sidnei da Silva
sidnei at x3ng.com.br
Mon Mar 1 08:08:24 EST 2004
Update of /cvs-repository/Zope3/src/zope/i18n/tests
In directory cvs.zope.org:/tmp/cvs-serv13308/tests
Modified Files:
Tag: runyaga-sip-branch
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.6.16.2 => 1.6.16.3 ===
--- Zope3/src/zope/i18n/tests/test_negotiator.py:1.6.16.2 Mon Mar 1 07:16:00 2004
+++ Zope3/src/zope/i18n/tests/test_negotiator.py Mon Mar 1 08:08:23 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