Issue #84, Remove template context variable 'object_name' to improve ease of translation
This commit is contained in:
@@ -318,11 +318,7 @@
|
||||
{% if object_navigation_links %}
|
||||
<div class="block">
|
||||
{% if navigation_object %}
|
||||
{% if object_name %}
|
||||
<h3>{% blocktrans %}Actions for {{ object_name }}: {{ navigation_object }}{% endblocktrans %}</h3>
|
||||
{% else %}
|
||||
<h3>{% blocktrans %}Actions for: {{ navigation_object }}{% endblocktrans %}</h3>
|
||||
{% endif %}
|
||||
<h3>{% blocktrans %}Actions for: {{ navigation_object }}{% endblocktrans %}</h3>
|
||||
{% else %}
|
||||
<h3>{% trans 'Actions' %}</h3>
|
||||
{% endif %}
|
||||
|
||||
@@ -4,24 +4,12 @@
|
||||
{{ title }}
|
||||
{% else %}
|
||||
{% if read_only %}
|
||||
{% if object_name %}
|
||||
{% blocktrans %}Details for {{ object_name }}: {{ object }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans %}Details for: {{ object }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% blocktrans %}Details for: {{ object }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% if object %}
|
||||
{% if object_name %}
|
||||
{% blocktrans with object as object and object_name as object_name %}Edit {{ object_name }}: {{ object }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% blocktrans with object as object %}Edit: {{ object }}{% endblocktrans %}
|
||||
{% endif %}
|
||||
{% blocktrans with object as object %}Edit: {{ object }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% if object_name %}
|
||||
{% blocktrans %}Create new {{ object_name }}{% endblocktrans %}
|
||||
{% else %}
|
||||
{% trans 'Create' %}
|
||||
{% endif %}
|
||||
{% trans 'Create' %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -38,11 +38,7 @@
|
||||
<h3>{{ title }}</h3>
|
||||
{% else %}
|
||||
{% if delete_view %}
|
||||
{% if object_name %}
|
||||
<h3>{% blocktrans %}Are you sure you wish to delete {{ object_name }}: {{ object }}?{% endblocktrans %}</h3>
|
||||
{% else %}
|
||||
<h3>{% blocktrans %}Are you sure you wish to delete: {{ object }}?{% endblocktrans %}</h3>
|
||||
{% endif %}
|
||||
<h3>{% blocktrans %}Are you sure you wish to delete: {{ object }}?{% endblocktrans %}</h3>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<h4>{{ message }}</h4>
|
||||
|
||||
Reference in New Issue
Block a user