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/baggy/Entry/entries.html.twig | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry') diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig index abbcb389..7271bdaa 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig @@ -27,9 +27,17 @@

{{ entry.title|raw }}

{% if entry.readingTime > 0 %} -
{% trans %}estimated reading time :{% endtrans %} {{ entry.readingTime }} min
+
+ + {% trans with {'%readingTime%': entry.readingTime } %}estimated reading time: %readingTime% min{% endtrans %} + +
{% else %} -
{% trans %}estimated reading time :{% endtrans %} < 1 min
+
+ + {% trans with {'%inferior%': '<'} %}estimated reading time: %inferior% 1 min{% endtrans %} + +
{% endif %}