carlxaeron / django-rosetta

Automatically exported from code.google.com/p/django-rosetta
MIT License
0 stars 0 forks source link

pofile.html brekas with Django1.3 {% blocktrans %} #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use Django 1.3 or current trunk
2. Go translate a .po file

The bug is in templates/rosetta/pofile.html:124

<strong>{% blocktrans count rosetta_i18n_pofile|length as message_number and 
paginator.object_list|length as hits %}{{hits}}/{{message_number}} message{% 
plural %}{{hits}}/{{message_number}} messages{% endblocktrans %}</strong>

In 1.3 the new syntax requires to add a 'with' keyword to separate from the 
'count' keyword

<strong>{% blocktrans count rosetta_i18n_pofile|length as message_number with 
paginator.object_list|length as hits %}{{hits}}/{{message_number}} message{% 
plural %}{{hits}}/{{message_number}} messages{% endblocktrans %}</strong>

Original issue reported on code.google.com by jjd...@gmail.com on 30 Jan 2011 at 7:57

Attachments:

GoogleCodeExporter commented 8 years ago
This seems to be a duplicate of issue 95, which was fixed on trunk.

If you're using Django 1.3 trunk, please also use Rosetta trunk: I'll release a 
point release of Rosetta as soon as Django hits 1.3 final.

Original comment by mbonetti on 30 Jan 2011 at 8:15