google-code-export / django-forum

Automatically exported from code.google.com/p/django-forum
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Template Syntax Error: 'blocktrans' doesn't allow other block tags... #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
After install via svn i get the following template error:
'blocktrans' doesn't allow other block tags (seen u'plural') inside it

Sorry, iam new in django, don't know if its realy a bug.

line:
{% blocktrans with forum.threads as thread_count and forum.posts as
post_count %}{{ thread_count }} thread, {{ post_count }} posts{% plural
%}{{ thread_count }} threads, {{ post_count }} posts{% endblock %}

fix:
{% blocktrans with forum.threads as thread_count and forum.posts as
post_count %}{{ thread_count }} thread, {{ thread_count }} threads, {{
post_count }} posts{% endblocktrans %}

I removed "{{ post_count }} posts{% plural %}" and changed "endblock" in
"endblocktrans".

Original issue reported on code.google.com by s.ko...@dms-arts.com on 28 May 2008 at 9:40

GoogleCodeExporter commented 9 years ago
ohhh i forgot the file:

It's the forum_list.html file in templates/forum.

Original comment by s.ko...@dms-arts.com on 28 May 2008 at 9:41

GoogleCodeExporter commented 9 years ago
Fixed, will be in SVN shortly. Thank you!

Original comment by rwpoul...@gmail.com on 28 May 2008 at 11:58