mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-23 08:06:33 +00:00
Merge pull request #1690 from wallabag/v2-translate-min
translate estimated time minutes
This commit is contained in:
commit
bbbcd6997b
3 changed files with 17 additions and 5 deletions
|
@ -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'
|
||||
|
|
|
@ -27,9 +27,17 @@
|
|||
<div id="entry-{{ entry.id|e }}" class="entry">
|
||||
<h2><a href="{{ path('view', { 'id': entry.id }) }}">{{ entry.title|raw }}</a></h2>
|
||||
{% if entry.readingTime > 0 %}
|
||||
<div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} {{ entry.readingTime }} min</span></div>
|
||||
<div class="estimatedTime">
|
||||
<span class="tool reading-time">
|
||||
{% trans with {'%readingTime%': entry.readingTime } %}estimated reading time: %readingTime% min{% endtrans %}
|
||||
</span>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="estimatedTime"><span class="tool reading-time">{% trans %}estimated reading time :{% endtrans %} <small class="inferieur"><</small> 1 min</span></div>
|
||||
<div class="estimatedTime">
|
||||
<span class="tool reading-time">
|
||||
{% trans with {'%inferior%': '<small class="inferieur"><</small>'} %}estimated reading time: %inferior% 1 min{% endtrans %}
|
||||
</span>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<ul class="tools links">
|
||||
|
|
|
@ -50,8 +50,11 @@
|
|||
|
||||
<div class="estimatedTime grey-text">
|
||||
<span class="tool reading-time">
|
||||
{% trans %}estimated reading time{% endtrans %}:
|
||||
{% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}<small class="inferieur"><</small> 1{% endif %} min
|
||||
{% if entry.readingTime > 0 %}
|
||||
{% trans with {'%readingTime%': entry.readingTime } %}estimated reading time: %readingTime% min{% endtrans %}
|
||||
{% else %}
|
||||
{% trans with {'%inferior%': '<small class="inferieur"><</small>'} %}estimated reading time: %inferior% 1 min{% endtrans %}
|
||||
{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue