Unresolved tag 'trans'

Hi!

When editing my template i get error "unresolved tag 'trans'", but this tag works when i run development server.

How do i fix it?

Thank you.

4 comments
Comment actions Permalink

Any ideas about this?

0
Comment actions Permalink

Hello Leo,

Do you have {% load i18n %} in the template where you use the 'trans' tag?

When editing my template i get error "unresolved tag 'trans'", but

this tag works when i run development server.

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

1
Comment actions Permalink

Yes, i have the following lines in my template

{% extends "base.html" %}
{% load i18n %}

and if i press Ctrl Key and click on i18n c:\python27\Lib\site-packages\django\templatetags\i18n.py file is opened, and i can find there the following lines

...

@register.tag("trans")
def do_translate(parser, token):

...

0
Comment actions Permalink

added issue on YouTrack

0

Please sign in to leave a comment.