translation works only partially in templates

With the new theme (don't know about the old one), translatable strings that are inside jinja macros appear in the language they were first requested after the server startup (it seems as if jinja optimizes/caches the contents of macros).

Possible fix is not to use translatable strings inside of macros.

Setup is apache+mod_wsgi, localization using the django built in LocaleMiddleware and independently when using django-localeurl.

alexwerner's avatar
51
alexwerner
asked 2011-11-29 12:49:38 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments