problem in translation

8 views
Skip to first unread message

Emanuel

unread,
May 13, 2014, 6:09:56 AM5/13/14
to django...@googlegroups.com
Hello!

I have a template with two block trans.

the template code:

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

{% block pageTitle %}
    {% trans "MyTitle" %}
{% endblock %}

{% block short_description %}
    {% blocktrans %}
        My short description
    {% endblocktrans %}
{% endblock short_description %}

{% block description %}
    {% blocktrans %}
         My ful body document
         By the way, can I add two lines in blocktrans? Of course I mean separated with the ENTER key.
         Once I used easymode and it throws an error when using the carret symbol in the database
    {% endblocktrans %}
{% endblock description %}
        

Translated and compiled. Everthing works. When rendering, one show translated and the other dont.
The short description and title works and the description dont :(

And I have another template that inherits from a.html, and it works fine. I simply can get it

Thanks in advanced


Reply all
Reply to author
Forward
0 new messages