mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Fix translation issues
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
<ul>
|
||||
<li>
|
||||
{% set nb_view = element.get_view_count|default(0) %}
|
||||
{% if nb_view == 0 %}
|
||||
{% if nb_view <= 1 %}
|
||||
{% trans %}
|
||||
{{ nb_view }} vue
|
||||
{% endtrans %}
|
||||
{% else %}
|
||||
{% trans %}
|
||||
{{ nb_view }} vue
|
||||
{% plural nb_view %}
|
||||
{{ nb_view }} vues
|
||||
{% endtrans %}
|
||||
{% endif %}
|
||||
@@ -17,11 +15,15 @@
|
||||
{% set nb_rating = element.get_ratings|default(0) %}
|
||||
{% if element.get_rating > 0 %}
|
||||
<li>
|
||||
{% trans %}
|
||||
{{ nb_rating }} like
|
||||
{% plural nb_rating %}
|
||||
{{ nb_rating }} likes
|
||||
{% endtrans %}
|
||||
{% if nb_rating <= 1 %}
|
||||
{% trans %}
|
||||
{{ nb_rating }} like
|
||||
{% endtrans %}
|
||||
{% else %}
|
||||
{% trans %}
|
||||
{{ nb_rating }} likes
|
||||
{% endtrans %}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
<ul>
|
||||
<li>
|
||||
{% set nb_view = element.get_view_count|default(0) %}
|
||||
{% if nb_view == 0 %}
|
||||
{% if nb_view <= 1 %}
|
||||
{% trans %}
|
||||
{{ nb_view }} vue
|
||||
{% endtrans %}
|
||||
{% else %}
|
||||
{% trans %}
|
||||
{{ nb_view }} vue
|
||||
{% plural nb_view %}
|
||||
{{ nb_view }} vues
|
||||
{% endtrans %}
|
||||
{% endif %}
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
<ul>
|
||||
<li>
|
||||
{% set nb_view = element.get_view_count|default(0) %}
|
||||
{% if nb_view == 0 %}
|
||||
{% if nb_view <= 1 %}
|
||||
{% trans %}
|
||||
{{ nb_view }} vue
|
||||
{% endtrans %}
|
||||
{% else %}
|
||||
{% trans %}
|
||||
{{ nb_view }} vue
|
||||
{% plural nb_view %}
|
||||
{{ nb_view }} vues
|
||||
{% endtrans %}
|
||||
{% endif %}
|
||||
@@ -16,11 +14,15 @@
|
||||
{% set value = element.get_rating|default(0) %}
|
||||
{% if value > 0 %}
|
||||
<li>
|
||||
{% trans %}
|
||||
{{ value }} like
|
||||
{% plural value %}
|
||||
{{ value }} likes
|
||||
{% endtrans %}
|
||||
{% if value <= 1 %}
|
||||
{% trans %}
|
||||
{{ value }} like
|
||||
{% endtrans %}
|
||||
{% else %}
|
||||
{% trans %}
|
||||
{{ value }} likes
|
||||
{% endtrans %}
|
||||
{% endif %}
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user