mozilla/zamboni — comment on commit 4dfa2502e65a65bbe0f2e15d20cbcaf5b9cb53ac
File: apps/amo/utils.py line 706
By andymckay:

This looks awfully useful. Wonder if we could make this def activate_translation(lang=None): and if lang isn't given just goes to the default as above. Optionally you could throw in URL prefix fixing:

https://github.com/mozilla/zamboni/blob/master/apps/amo/tests/__init__.py#L180

Then we could remove / conflate that code in amo/tests/__init__.py