diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-02-18 06:40:46 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-02-18 06:40:46 +0100 |
commit | bbbcd6997be27f2bbf3638132575345733f3c235 (patch) | |
tree | 6e23536b7f393f73a28ca69ec55cfcb81f162c04 /src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry | |
parent | 93d0aa40bbdcdb3c9080fee3be6c521fb368bde0 (diff) | |
parent | f37c9c3348c411cd1a4913b393f363c65a73a62d (diff) | |
download | wallabag-bbbcd6997be27f2bbf3638132575345733f3c235.tar.gz wallabag-bbbcd6997be27f2bbf3638132575345733f3c235.tar.zst wallabag-bbbcd6997be27f2bbf3638132575345733f3c235.zip |
Merge pull request #1690 from wallabag/v2-translate-min
translate estimated time minutes
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entries.html.twig | 12 |
1 files changed, 10 insertions, 2 deletions
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 @@ | |||
27 | <div id="entry-{{ entry.id|e }}" class="entry"> | 27 | <div id="entry-{{ entry.id|e }}" class="entry"> |
28 | <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2> | 28 | <h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2> |
29 | {% if entry.readingTime > 0 %} | 29 | {% if entry.readingTime > 0 %} |
30 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.readingTime }} min</span></div> | 30 | <div class="estimatedTime"> |
31 | <span class="tool reading-time"> | ||
32 | {% trans with {'%readingTime%': entry.readingTime } %}estimated reading time: %readingTime% min{% endtrans %} | ||
33 | </span> | ||
34 | </div> | ||
31 | {% else %} | 35 | {% else %} |
32 | <div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur"><</small> 1 min</span></div> | 36 | <div class="estimatedTime"> |
37 | <span class="tool reading-time"> | ||
38 | {% trans with {'%inferior%': '<small class="inferieur"><</small>'} %}estimated reading time: %inferior% 1 min{% endtrans %} | ||
39 | </span> | ||
40 | </div> | ||
33 | {% endif %} | 41 | {% endif %} |
34 | 42 | ||
35 | <ul class="tools links"> | 43 | <ul class="tools links"> |