Added two translator comments in contrib apps

Thanks GunChleoc for the suggestions.
This commit is contained in:
Claude Paroz 2015-11-27 09:37:25 +01:00
parent 11f10b70f3
commit 867faeda9e
2 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class LogEntry(models.Model):
blank=True, null=True, blank=True, null=True,
) )
object_id = models.TextField(_('object id'), blank=True, null=True) object_id = models.TextField(_('object id'), blank=True, null=True)
# Translators: 'repr' means representation (https://docs.python.org/3/library/functions.html#repr)
object_repr = models.CharField(_('object repr'), max_length=200) object_repr = models.CharField(_('object repr'), max_length=200)
action_flag = models.PositiveSmallIntegerField(_('action flag')) action_flag = models.PositiveSmallIntegerField(_('action flag'))
change_message = models.TextField(_('change message'), blank=True) change_message = models.TextField(_('change message'), blank=True)

View File

@ -15,6 +15,7 @@
{% block content %} {% block content %}
<h1>{% blocktrans %}Template: "{{ name }}"{% endblocktrans %}</h1> <h1>{% blocktrans %}Template: "{{ name }}"{% endblocktrans %}</h1>
{# Translators: Search is not a verb here, it qualifies path (a search path) #}
<h2>{% blocktrans %}Search path for template "{{ name }}":{% endblocktrans %}</h2> <h2>{% blocktrans %}Search path for template "{{ name }}":{% endblocktrans %}</h2>
<ol> <ol>
{% for template in templates|dictsort:"order" %} {% for template in templates|dictsort:"order" %}