Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trans template tag from output of admin filter choice #162

Merged
merged 1 commit into from
Oct 25, 2013

Conversation

nliberg
Copy link
Contributor

@nliberg nliberg commented Oct 8, 2013

The django contrib admin uses: {% blocktrans with filter_title=title %} By {{ filter_title }} {% endblocktrans %}
whereas django-suit uses: {% trans title|capfirst %}

It seems to me that an attempt to translate the title is only attempted in the django-suit case. The django contrib admin just translates the context "By [...]" but not the filter title itself.

The current state of the django-suit template results in a DjangoUnicodeDecodeError when the filter title contains letters like "å", "ä" and "ö" (I'm not completely certain why this is).

darklow added a commit that referenced this pull request Oct 25, 2013
Remove trans template tag from output of admin filter choice
@darklow darklow merged commit acdf67e into darklow:develop Oct 25, 2013
@darklow darklow mentioned this pull request Oct 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants