Refactoring translation

This commit is contained in:
Marc Ducobu
2014-11-19 09:43:53 +01:00
parent 4c2a3c3624
commit 87b4cb65e4
18 changed files with 209 additions and 261 deletions

View File

@@ -22,8 +22,8 @@
<thead>
<tr>
<th>{% trans %}Name{% endtrans %}</th>
<th>{% trans %}person.dateOfBirth{% endtrans %}</th>
<th>{% trans %}person.nationality{% endtrans %}</th>
<th>{% trans %}Date of birth{% endtrans %}</th>
<th>{% trans %}Nationality{% endtrans %}</th>
</tr>
</thead>
<tbody>
@@ -40,13 +40,13 @@
</a>
</td>
<td>
<span class="personDateOfBirth">{{person.dateOfBirth.format(date_format)|default( 'person.without_date_of_birth'|trans )}}</span>
<span class="personDateOfBirth">{{person.dateOfBirth.format(date_format)|default( 'Unknown date of birth'|trans )}}</span>
</td>
<td>
{% if person.nationality is not null %}
<span class="personNationality">{{person.nationality.label}}</span>
{% else %}
{{ 'views.Person.list.without_nationality'|trans }}
{{ 'Without nationality'|trans }}
{% endif %}
</td>
</tr>