malthe/chameleon — Issue #93: fast_translate method ignores context argument
Author: projekt01
Created: 2012-02-04 23:13:04+00:00
State: open

The fast_translate method hook ignores the context attribute. This ends in missing translation at all if the target _language is None. The zope translation domain works with target_language or a context (request). One of them needs to be given.
See the zope.i18n..translate method, this method is able to lookup the target_language based on a given context.

The fast_translate method should get changed

from:
if target_language is not None:

to:
if target_language is not None or context is not None:

in
chameleon/i18n.py line: 52