diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index 67750bee8..c42ac6d38 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml @@ -88,7 +88,8 @@ Rule: "Règle" FAQ: "FAQ" # Entries -'estimated reading time': 'durée de lecture' +"estimated reading time: %readingTime% min": "durée de lecture : %readingTime% min" +"estimated reading time: %inferior% 1 min": "durée de lecture : %inferior% 1 min" original: "original" Toggle mark as read: 'Marquer comme lu/non lu' Toggle favorite: 'Marquer comme favori' 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 abbcb3899..7271bdaa2 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 %}