Adding message when spokien languages is not specified

This commit is contained in:
Marc Ducobu 2014-11-27 14:18:45 +01:00
parent b3fb1ba662
commit 6834ebc610
3 changed files with 15 additions and 6 deletions

View File

@ -23,6 +23,7 @@
'Phonenumber': Numéro de téléphone
'{0} Born the %date% | {1} Born the %date%': '{0} Né le %date% | {1} Née le %date%'
'Spoken languages': Langues parlées
'Unknown spoken languages': Langues parlées inconnues
#Gender
'Male': Homme

View File

@ -96,9 +96,13 @@ This view should receive those arguments:
<dl>
<dt class="inline">{{'Spoken languages'|trans}}</dt>
<dd>
{% for lang in person.spokenLanguages %}
{{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}
{% endfor %}
{% if person.spokenLanguages|length == 0 %}
{{ 'Unknown spoken languages'|trans }}
{% else %}
{% for lang in person.spokenLanguages %}
{{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}
{% endfor %}
{% endif %}
</dd>
</dl>
</figure>

View File

@ -55,9 +55,13 @@
{% endif %}
<p><i class="fa fa-bullhorn"></i>
{% for lang in person.spokenLanguages %}
{{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}
{% endfor %}
{% if person.spokenLanguages|length == 0 %}
{{ 'Unknown spoken languages'|trans }}
{% else %}
{% for lang in person.spokenLanguages %}
{{ lang.name|localize_translatable_string }}{% if not loop.last %},{% endif %}
{% endfor %}
{% endif %}
</p>
</div>
</div>