[Zope-Checkins] CVS: Zope3/lib/python/Zope/Publisher/Browser/tests - testBrowserLanguages.py:1.3
Stephan Richter
srichter@cbu.edu
Wed, 12 Jun 2002 20:03:58 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Publisher/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv26470/lib/python/Zope/Publisher/Browser/tests
Modified Files:
testBrowserLanguages.py
Log Message:
YEAH! The first translations work. If you switch your user language to 'de'
you can see two German phrases in the management screen of a Translation
Service.
I also made somce changes in the TALInterpretor, but I dunno whether my
changes were correct...lack of sleep... Fred and Barry, could you double
check?
=== Zope3/lib/python/Zope/Publisher/Browser/tests/testBrowserLanguages.py 1.2 => 1.3 ===
browser_languages = BrowserLanguages(request)
- self.assertEqual(list(browser_languages.getLanguages()),
+ self.assertEqual(list(browser_languages.getPreferredLanguages()),
['da', 'en-gb', 'en'])
# XXX Add support for quality statements