Skip to content

Conversation

@mcastle
Copy link
Contributor

@mcastle mcastle commented Oct 29, 2015

Trans template tag requires {% load i18n %} at top of template.

Trans template tag requires `{% load i18n %}` at top of template.
@mcastle mcastle changed the title Fix trans template tag error Fix trans template tag error on admin Oct 29, 2015
@jpadilla
Copy link
Contributor

@mcastle thanks! What's the error that not having this raises?

@mcastle
Copy link
Contributor Author

mcastle commented Oct 29, 2015

No prob and thanks for another great release! The error, caused by {% trans "Filters" %} at line 117, is:

TemplateSyntaxError ...

Invalid block tag: 'trans', expected 'elif', 'else' or 'endif'

@jpadilla jpadilla added this to the 3.3.1 Release milestone Oct 30, 2015
jpadilla added a commit that referenced this pull request Oct 30, 2015
Fix trans template tag error on admin
@jpadilla jpadilla merged commit 08e4a98 into encode:master Oct 30, 2015
nikolas added a commit to ccnmtl/brownfield_django that referenced this pull request Feb 10, 2016
Should fix this error in rolf:
site-packages/rest_framework/templates/rest_framework/admin.html:
Invalid block tag: 'trans', expected 'elif', 'else' or 'endif'

https://rolf.ccnmtl.columbia.edu/push/24072/
encode/django-rest-framework#3564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants