Commit 781064d8 authored by Claude Paroz's avatar Claude Paroz

Django now supports translator comments in templates

parent ea670b84
......@@ -114,6 +114,9 @@ $(document).ready(function() {
{% if level == 0 %}
{% trans "Actions" %}
{% else %}
{% comment %}Translators: human_level is an ordinal expression ('1st',' 2nd',...)
which should be localized in Django itself
{% endcomment %}
{% blocktrans with level|ordinal|safe as human_level %}Archived Actions ({{ human_level }} archived series){% endblocktrans %}
<a href="{% url vertimus_by_names module.name,branch.name,domain.name,language.locale %}">
{% trans "(Return to current actions)" %}
......
......@@ -781,9 +781,3 @@ def reactivate_role(sender, instance, **kwargs):
except Role.DoesNotExist:
pass
post_save.connect(reactivate_role)
""" The following string is just reproduced from a template so as a translator comment
can be added (comments are not supported in templates) """
# Translators: human_level is an ordinal expression ('1st',' 2nd',...)
# which should be localized in Django itself
dummy = ugettext("Archived Actions (%(human_level)s archived series)" % {'human_level':0})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment