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.

0

Any ideas about this?

0

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

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

added issue on YouTrack

0

请先登录再写评论。