mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 23:43:12 +00:00
Fix translation issues
This commit is contained in:
@@ -7,11 +7,15 @@
|
|||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<button class="close" data-dismiss="alert" type="button">×</button>
|
<button class="close" data-dismiss="alert" type="button">×</button>
|
||||||
{% set user_count = app['request'].get('user-updated') %}
|
{% set user_count = app['request'].get('user-updated') %}
|
||||||
|
{% if user_count == 1 %}
|
||||||
{% trans %}
|
{% trans %}
|
||||||
{{ user_count }} user has been created
|
The user has been created.
|
||||||
{% plural user_count %}
|
|
||||||
{{ user_count }} users have been created
|
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
|
{% else %}
|
||||||
|
{% trans %}
|
||||||
|
{{ user_count }} users have been created.
|
||||||
|
{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@@ -256,10 +256,18 @@
|
|||||||
{% if values.available > 0 %}
|
{% if values.available > 0 %}
|
||||||
<div class='well-small'>
|
<div class='well-small'>
|
||||||
{% set docs_orderable = values.available %}
|
{% set docs_orderable = values.available %}
|
||||||
{% trans %}{{docs_orderable}} documents commandes{% endtrans %}
|
{% if docs_orderable <= 1 %}
|
||||||
|
{% trans %}Un document commande{% endtrans %}
|
||||||
|
{% else %}
|
||||||
|
{% trans %}{{docs_orderable}} documents commandes{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
{% set docs_not_orderable = values.total - values.available %}
|
{% set docs_not_orderable = values.total - values.available %}
|
||||||
{% if docs_not_orderable > 0%}
|
{% if docs_not_orderable > 0%}
|
||||||
{% trans %}{{docs_not_orderable}} documents ne peuvent pas etre commandes{% endtrans %}
|
{% if docs_not_orderable == 1 %}
|
||||||
|
{% trans %}Un document ne peut etre commande{% endtrans %}
|
||||||
|
{% else %}
|
||||||
|
{% trans %}{{docs_not_orderable}} documents ne peuvent pas etre commandes{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if values.refused|length > 0 %}
|
{% if values.refused|length > 0 %}
|
||||||
{% set title%}
|
{% set title%}
|
||||||
|
@@ -1,14 +1,12 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
{% set nb_view = element.get_view_count|default(0) %}
|
{% set nb_view = element.get_view_count|default(0) %}
|
||||||
{% if nb_view == 0 %}
|
{% if nb_view <= 1 %}
|
||||||
{% trans %}
|
{% trans %}
|
||||||
{{ nb_view }} vue
|
{{ nb_view }} vue
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans %}
|
{% trans %}
|
||||||
{{ nb_view }} vue
|
|
||||||
{% plural nb_view %}
|
|
||||||
{{ nb_view }} vues
|
{{ nb_view }} vues
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -17,11 +15,15 @@
|
|||||||
{% set nb_rating = element.get_ratings|default(0) %}
|
{% set nb_rating = element.get_ratings|default(0) %}
|
||||||
{% if element.get_rating > 0 %}
|
{% if element.get_rating > 0 %}
|
||||||
<li>
|
<li>
|
||||||
{% trans %}
|
{% if nb_rating <= 1 %}
|
||||||
{{ nb_rating }} like
|
{% trans %}
|
||||||
{% plural nb_rating %}
|
{{ nb_rating }} like
|
||||||
{{ nb_rating }} likes
|
{% endtrans %}
|
||||||
{% endtrans %}
|
{% else %}
|
||||||
|
{% trans %}
|
||||||
|
{{ nb_rating }} likes
|
||||||
|
{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@@ -1,14 +1,12 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
{% set nb_view = element.get_view_count|default(0) %}
|
{% set nb_view = element.get_view_count|default(0) %}
|
||||||
{% if nb_view == 0 %}
|
{% if nb_view <= 1 %}
|
||||||
{% trans %}
|
{% trans %}
|
||||||
{{ nb_view }} vue
|
{{ nb_view }} vue
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans %}
|
{% trans %}
|
||||||
{{ nb_view }} vue
|
|
||||||
{% plural nb_view %}
|
|
||||||
{{ nb_view }} vues
|
{{ nb_view }} vues
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@@ -1,14 +1,12 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
{% set nb_view = element.get_view_count|default(0) %}
|
{% set nb_view = element.get_view_count|default(0) %}
|
||||||
{% if nb_view == 0 %}
|
{% if nb_view <= 1 %}
|
||||||
{% trans %}
|
{% trans %}
|
||||||
{{ nb_view }} vue
|
{{ nb_view }} vue
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% trans %}
|
{% trans %}
|
||||||
{{ nb_view }} vue
|
|
||||||
{% plural nb_view %}
|
|
||||||
{{ nb_view }} vues
|
{{ nb_view }} vues
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -16,11 +14,15 @@
|
|||||||
{% set value = element.get_rating|default(0) %}
|
{% set value = element.get_rating|default(0) %}
|
||||||
{% if value > 0 %}
|
{% if value > 0 %}
|
||||||
<li>
|
<li>
|
||||||
{% trans %}
|
{% if value <= 1 %}
|
||||||
{{ value }} like
|
{% trans %}
|
||||||
{% plural value %}
|
{{ value }} like
|
||||||
{{ value }} likes
|
{% endtrans %}
|
||||||
{% endtrans %}
|
{% else %}
|
||||||
|
{% trans %}
|
||||||
|
{{ value }} likes
|
||||||
|
{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@@ -16,21 +16,29 @@
|
|||||||
<div id='property-statut'>
|
<div id='property-statut'>
|
||||||
<p class="header">
|
<p class="header">
|
||||||
<h4 style='text-align:center;'>
|
<h4 style='text-align:center;'>
|
||||||
{% trans %}
|
{% if nbReceivedDocuments == 1 %}
|
||||||
You have selected one record.
|
{% trans %}
|
||||||
{% plural nbReceivedDocuments %}
|
You have selected one record.
|
||||||
You have selected {{ nbReceivedDocuments }} records.
|
{% endtrans %}
|
||||||
{% endtrans %}
|
{% else %}
|
||||||
|
{% trans %}
|
||||||
|
You have selected {{ nbReceivedDocuments }} records.
|
||||||
|
{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if nbEditableDocuments == 0 %}
|
{% if nbEditableDocuments == 0 %}
|
||||||
{% trans %}None of the records can be modified.{% endtrans %}
|
{% trans %}None of the records can be modified.{% endtrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if nbEditableDocuments < nbReceivedDocuments %}
|
{% if nbEditableDocuments < nbReceivedDocuments %}
|
||||||
{% trans %}
|
{% if nbEditableDocuments == 1 %}
|
||||||
Only one record can be modified.
|
{% trans %}
|
||||||
{% plural nbEditableDocuments %}
|
Only one record can be modified.
|
||||||
Only {{ nbEditableDocuments }} records can be modified.
|
{% endtrans %}
|
||||||
{% endtrans %}
|
{% else %}
|
||||||
|
{% trans %}
|
||||||
|
Only {{ nbEditableDocuments }} records can be modified.
|
||||||
|
{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h4>
|
</h4>
|
||||||
|
@@ -19,21 +19,29 @@
|
|||||||
{% if records | length != records.received() | length %}
|
{% if records | length != records.received() | length %}
|
||||||
<div class="well-small">
|
<div class="well-small">
|
||||||
{% set countable = records.received().count() - records.count() %}
|
{% set countable = records.received().count() - records.count() %}
|
||||||
{% trans %}
|
{% if countable == 1 %}
|
||||||
One document can not be modified.
|
{% trans %}
|
||||||
{% plural countable %}
|
One document can not be modified.
|
||||||
{{countable}} documents can not be modified.
|
{% endtrans %}
|
||||||
{% endtrans %}
|
{% else %}
|
||||||
|
{% trans %}
|
||||||
|
{{countable}} documents can not be modified.
|
||||||
|
{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="well-small">
|
<div class="well-small">
|
||||||
{% set countable = records | length %}
|
{% set countable = records | length %}
|
||||||
{% trans %}
|
{% if countable == 1 %}
|
||||||
Move one record to the chose collection in the list.
|
{% trans %}
|
||||||
{% plural countable %}
|
Move one record to the chosen collection in the list.
|
||||||
Move {{ countable }} records to the chosen collection in the list.
|
{% endtrans %}
|
||||||
{% endtrans %}
|
{% else %}
|
||||||
|
{% trans %}
|
||||||
|
Move {{ countable }} records to the chosen collection in the list.
|
||||||
|
{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="well-small">
|
<div class="well-small">
|
||||||
|
@@ -91,8 +91,8 @@
|
|||||||
|
|
||||||
<div class="form-actions" style="color:#333;">
|
<div class="form-actions" style="color:#333;">
|
||||||
{% trans 'Selectionnez des documents et ' %}
|
{% trans 'Selectionnez des documents et ' %}
|
||||||
<button class="btn btn-primary send">Envoyer</button>
|
<button class="btn btn-primary send">{% trans 'Send' %}</button>
|
||||||
<button class="btn deny">Refuser</button>
|
<button class="btn deny">{% trans 'Deny' %}</button>
|
||||||
<button class="order_launcher btn">{% trans 'Retour aux commandes' %}</button>
|
<button class="order_launcher btn">{% trans 'Retour aux commandes' %}</button>
|
||||||
<img src="/skins/icons/loader000000.gif" class="activity_indicator" style="display:none;"/>
|
<img src="/skins/icons/loader000000.gif" class="activity_indicator" style="display:none;"/>
|
||||||
<input name="order_id" type="hidden" value="{{ order.get_order_id() }}" />
|
<input name="order_id" type="hidden" value="{{ order.get_order_id() }}" />
|
||||||
|
@@ -306,11 +306,15 @@
|
|||||||
{% if record_count > 0 %}
|
{% if record_count > 0 %}
|
||||||
<div class="lazaret-proposals span8">
|
<div class="lazaret-proposals span8">
|
||||||
<h5>
|
<h5>
|
||||||
{% trans %}
|
{% if record_count <= 1 %}
|
||||||
{{ record_count }} record match the unique identifier :
|
{% trans %}
|
||||||
{% plural record_count %}
|
A record matches the unique identifier :
|
||||||
{{ record_count }} records match the unique identifier :
|
{% endtrans %}
|
||||||
{% endtrans %}
|
{% else %}
|
||||||
|
{% trans %}
|
||||||
|
{{ record_count }} records match the unique identifier :
|
||||||
|
{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
</h5>
|
</h5>
|
||||||
<ul class="thumbnails">
|
<ul class="thumbnails">
|
||||||
{% for record in records %}
|
{% for record in records %}
|
||||||
|
@@ -30,8 +30,19 @@
|
|||||||
<div style="clear:both;height:2px;"></div>
|
<div style="clear:both;height:2px;"></div>
|
||||||
<div class="right" style="font-weight:lighter;font-size:10px;">
|
<div class="right" style="font-weight:lighter;font-size:10px;">
|
||||||
{% set total_count = result.total %}
|
{% set total_count = result.total %}
|
||||||
{% if result.total > 0 and result.total != 0 %}
|
{% if total_count > 0 and total_count != 0 %}
|
||||||
<i>{% trans %} Number of result {% plural total_count %} Number of results {% endtrans %} : {{ result.total }}</i>
|
<i>
|
||||||
|
{% if total_count == 1 %}
|
||||||
|
{% trans %}
|
||||||
|
1 result
|
||||||
|
{% endtrans %}
|
||||||
|
{% else %}
|
||||||
|
{% trans %}
|
||||||
|
{{ total_count }} results
|
||||||
|
{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</i>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="spacer"></div>
|
<div class="spacer"></div>
|
||||||
|
Reference in New Issue
Block a user