4 Sep 23:26
locales and default language that is not English
Hi, I came across some unexpected behaviour where zope.i18n was translating a bit too enthusiastically, even when no translations were actually wanted. The situation ------------- I have a package xm.theme. The templates and python files are all in English of course. It has locales for Dutch. I am using that package on a Plone 3.1 site. That site has Dutch as default language and English as a second allowed language. No LinguaPlone. portal_languages is set to take the browser language preference into account. I visit the site with a browser that only wants Dutch. The complete UI is shown in Dutch. So translations are working fine in that case. I then visit the site with a browser that only wants English. Now most of the site UI is in English. But the msgids in the xm.theme domain remain shown in Dutch. The problem ----------- The problem here is that the xm.theme translationdomain from zope.i18n only has a catalog for the Dutch language (and some test catalog). The language negotiator (the code that decides what the target(Continue reading)
RSS Feed