{"action":"created","issue":{"url":"https://api.github.com/repos/jbalogh/jingo/issues/30","labels_url":"https://api.github.com/repos/jbalogh/jingo/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/jbalogh/jingo/issues/30/comments","events_url":"https://api.github.com/repos/jbalogh/jingo/issues/30/events","html_url":"https://github.com/jbalogh/jingo/issues/30","id":9719369,"number":30,"title":"Translations don't work","user":{"login":"martinsvoboda","id":558139,"avatar_url":"https://avatars.githubusercontent.com/u/558139?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsvoboda","html_url":"https://github.com/martinsvoboda","followers_url":"https://api.github.com/users/martinsvoboda/followers","following_url":"https://api.github.com/users/martinsvoboda/following{/other_user}","gists_url":"https://api.github.com/users/martinsvoboda/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsvoboda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsvoboda/subscriptions","organizations_url":"https://api.github.com/users/martinsvoboda/orgs","repos_url":"https://api.github.com/users/martinsvoboda/repos","events_url":"https://api.github.com/users/martinsvoboda/events{/privacy}","received_events_url":"https://api.github.com/users/martinsvoboda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-01-06T19:30:42Z","updated_at":"2015-10-23T14:22:06Z","closed_at":null,"body":"Hi,\r\njingo without any extra configuration doesn't translate texts in templates. In documentation isn't any notice about this behaviour. Issue arise because jingo in default config install null translation in jinja2 enviroment (https://github.com/jbalogh/jingo/blob/master/jingo/__init__.py#L70).\r\n\r\nFor resolving issue you must install gettext translation:\r\n\r\n```python\r\nfrom django.utils import translation\r\nfrom jingo import env\r\nenv.install_gettext_translations(translation)\r\n```\r\n\r\nComment before ```install_null_translations()``` says that call is important for testing, so we should choose cautious solution. May be create some optional setting for these cases and definitely write down documentation.\r\n"},"comment":{"url":"https://api.github.com/repos/jbalogh/jingo/issues/comments/150588373","html_url":"https://github.com/jbalogh/jingo/issues/30#issuecomment-150588373","issue_url":"https://api.github.com/repos/jbalogh/jingo/issues/30","id":150588373,"user":{"login":"jsocol","id":180459,"avatar_url":"https://avatars.githubusercontent.com/u/180459?v=3","gravatar_id":"","url":"https://api.github.com/users/jsocol","html_url":"https://github.com/jsocol","followers_url":"https://api.github.com/users/jsocol/followers","following_url":"https://api.github.com/users/jsocol/following{/other_user}","gists_url":"https://api.github.com/users/jsocol/gists{/gist_id}","starred_url":"https://api.github.com/users/jsocol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsocol/subscriptions","organizations_url":"https://api.github.com/users/jsocol/orgs","repos_url":"https://api.github.com/users/jsocol/repos","events_url":"https://api.github.com/users/jsocol/events{/privacy}","received_events_url":"https://api.github.com/users/jsocol/received_events","type":"User","site_admin":false},"created_at":"2015-10-23T14:22:06Z","updated_at":"2015-10-23T14:22:06Z","body":"Can anyone who ran into this try with Jingo 0.8? There are some changes (there's no `jingo.env` anymore, but `jingo.get_env()` will return the instance) but the upgrade shouldn't be too rough."}}