forked from wallabag/wallabag
Merge pull request #1767 from wallabag/v2-setting-for-reading-time
Setting for reading time
This commit is contained in:
@ -38,6 +38,7 @@ RSS: 'RSS'
|
||||
Add a user: 'Créer un compte'
|
||||
Theme: 'Thème'
|
||||
Items per page: "Nombre d'articles par page"
|
||||
Reading speed: "Vitesse de lecture"
|
||||
Language: 'Langue'
|
||||
Save: 'Enregistrer'
|
||||
RSS token: 'Jeton RSS'
|
||||
@ -56,6 +57,12 @@ Repeat new password: 'Confirmez votre nouveau mot de passe'
|
||||
Username: "Nom d'utilisateur"
|
||||
Two factor authentication: "Double authentification"
|
||||
"Enabling two factor authentication means you'll receive an email with a code on every new untrusted connexion": "Activer l'authentification double-facteur veut dire que vous allez recevoir un code par email à chaque nouvelle connexion non approuvée."
|
||||
"I read ~100 words per minute": "Je lis environ 100 mots par minute"
|
||||
"I read ~200 words per minute": "Je lis environ 200 mots par minute"
|
||||
"I read ~300 words per minute": "Je lis environ 300 mots par minute"
|
||||
"I read ~400 words per minute": "Je lis environ 400 mots par minute"
|
||||
"You can use online tools to estimate your reading speed": "Vous pouvez utiliser un outil en ligne pour estimer votre vitesse de lecture"
|
||||
"like this one": "comme celui-ci"
|
||||
|
||||
# Tagging rules
|
||||
Tagging rules: "Règles de tag automatiques"
|
||||
|
||||
@ -24,6 +24,15 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="w500p inline">
|
||||
<div class="row">
|
||||
{{ form_label(form.config.reading_speed) }}
|
||||
{{ form_errors(form.config.reading_speed) }}
|
||||
{{ form_widget(form.config.reading_speed) }}
|
||||
<p>{% trans %}You can use online tools to estimate your reading speed{% endtrans %} (<a href="http://www.myreadspeed.com/calculate/">{% trans %}like this one{%endtrans%}</a>).</p>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="w500p inline">
|
||||
<div class="row">
|
||||
{{ form_label(form.config.language) }}
|
||||
|
||||
@ -42,6 +42,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
{{ form_label(form.config.reading_speed) }}
|
||||
{{ form_errors(form.config.reading_speed) }}
|
||||
{{ form_widget(form.config.reading_speed) }}
|
||||
<p>{% trans %}You can use online tools to estimate your reading speed{% endtrans %} (<a href="http://www.myreadspeed.com/calculate/">{% trans %}like this one{%endtrans%}</a>).</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="input-field col s12">
|
||||
{{ form_label(form.config.language) }}
|
||||
|
||||
@ -50,8 +50,9 @@
|
||||
|
||||
<div class="estimatedTime grey-text">
|
||||
<span class="tool reading-time">
|
||||
{% if entry.readingTime > 0 %}
|
||||
{% trans with {'%readingTime%': entry.readingTime } %}estimated reading time: %readingTime% min{% endtrans %}
|
||||
{% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
|
||||
{% if readingTime > 0 %}
|
||||
{% trans with {'%readingTime%': readingTime } %}estimated reading time: %readingTime% min{% endtrans %}
|
||||
{% else %}
|
||||
{% trans with {'%inferior%': '<small class="inferieur"><</small>'} %}estimated reading time: %inferior% 1 min{% endtrans %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user