From f37c9c3348c411cd1a4913b393f363c65a73a62d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 18 Feb 2016 01:36:02 +0100 Subject: translate estimated time minutes --- .../Resources/views/themes/material/Entry/entries.html.twig | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/material/Entry') 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 ac17ccee..c3fd4d28 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 @@ -50,8 +50,11 @@
- {% trans %}estimated reading time{% endtrans %}: - {% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}< 1{% endif %} min + {% if entry.readingTime > 0 %} + {% trans with {'%readingTime%': entry.readingTime } %}estimated reading time: %readingTime% min{% endtrans %} + {% else %} + {% trans with {'%inferior%': '<'} %}estimated reading time: %inferior% 1 min{% endtrans %} + {% endif %}
-- cgit v1.2.3