From 428af5a8c368f27ef7f1027a6bbd37b6f9cded60 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 18 Aug 2015 08:32:50 +0200 Subject: [PATCH] usage of transchoice --- .../themes/material/Entry/entries.html.twig | 78 +++++++++---------- 1 file changed, 36 insertions(+), 42 deletions(-) diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index cb34c3f3..b2e2e8d0 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig @@ -15,52 +15,46 @@ {% block content %} {% block pager %} - {% if entries is not empty %} -
-
{{ entries.count }} {% trans %}entrie{% endtrans %}{% if entries.nbPages > 1 %}s{% endif %}
-
+
+
{% transchoice entries.count %}{0} There is no entry.|{1} There is one entry.|]1,Inf[ There are %count% entries.{% endtranschoice %}
+
- {% endif %} + {% endblock %} -
- {% if entries is empty %} -

{% trans %}No articles found.{% endtrans %}

- {% else %} - -- 2.41.0