From f3e49264f23627df27d1e0b6964295a6d7899b85 Mon Sep 17 00:00:00 2001 From: Jeremy Benoist Date: Sun, 20 Mar 2016 22:09:00 +0100 Subject: [PATCH] Add reading time translation --- src/Wallabag/CoreBundle/Form/Type/ConfigType.php | 10 +++++----- .../CoreBundle/Resources/translations/messages.da.yml | 7 +++++++ .../CoreBundle/Resources/translations/messages.de.yml | 7 +++++++ .../CoreBundle/Resources/translations/messages.en.yml | 7 +++++++ .../CoreBundle/Resources/translations/messages.es.yml | 7 +++++++ .../CoreBundle/Resources/translations/messages.fa.yml | 7 +++++++ .../CoreBundle/Resources/translations/messages.fr.yml | 9 +++++++++ .../CoreBundle/Resources/translations/messages.pl.yml | 7 +++++++ .../CoreBundle/Resources/translations/messages.ro.yml | 7 +++++++ .../CoreBundle/Resources/translations/messages.tr.yml | 7 +++++++ .../views/themes/baggy/Config/index.html.twig | 5 ++++- .../views/themes/material/Config/index.html.twig | 5 ++++- 12 files changed, 78 insertions(+), 7 deletions(-) diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php index 25ea9efa..b30b4706 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php @@ -39,12 +39,12 @@ class ConfigType extends AbstractType 'label' => 'config.form_settings.items_per_page_label', )) ->add('reading_speed', ChoiceType::class, array( - 'label' => 'config.form_settings.reading_speed', + 'label' => 'config.form_settings.reading_speed.label', 'choices' => array( - 'I read ~100 words per minute' => '0.5', - 'I read ~200 words per minute' => '1', - 'I read ~300 words per minute' => '1.5', - 'I read ~400 words per minute' => '2', + 'config.form_settings.reading_speed.100_word' => '0.5', + 'config.form_settings.reading_speed.200_word' => '1', + 'config.form_settings.reading_speed.300_word' => '1.5', + 'config.form_settings.reading_speed.400_word' => '2', ), )) ->add('language', ChoiceType::class, array( diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml index d2a54536..40ae4e5a 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.da.yml @@ -61,6 +61,13 @@ config: theme_label: 'Tema' items_per_page_label: 'Poster pr. side' language_label: 'Sprog' + reading_speed: + # label: 'Reading speed' + # help_message: 'You can use online tools to estimate your reading speed:' + # 100_word: 'I read ~100 words per minute' + # 200_word: 'I read ~200 words per minute' + # 300_word: 'I read ~300 words per minute' + # 400_word: 'I read ~400 words per minute' form_rss: description: 'RSS-feeds fra wallabag gør det muligt at læse de artikler, der gemmes i wallabag, med din RSS-læser. Det kræver, at du genererer et token først.' token_label: 'RSS-Token' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml index 2029caec..34f567b1 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.de.yml @@ -61,6 +61,13 @@ config: theme_label: 'Theme' items_per_page_label: 'Einträge pro Seite' language_label: 'Sprache' + reading_speed: + # label: 'Reading speed' + # help_message: 'You can use online tools to estimate your reading speed:' + # 100_word: 'I read ~100 words per minute' + # 200_word: 'I read ~200 words per minute' + # 300_word: 'I read ~300 words per minute' + # 400_word: 'I read ~400 words per minute' form_rss: description: 'Die RSS-Feeds von wallabag erlauben es dir, deine gespeicherten Artikel mit deinem bevorzugten RSS-Reader zu lesen. Vorher musst du jedoch einen Token erstellen.' token_label: 'RSS-token' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml index 3a65d475..1e49d4ba 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.en.yml @@ -61,6 +61,13 @@ config: theme_label: 'Theme' items_per_page_label: 'Items per page' language_label: 'Language' + reading_speed: + label: 'Reading speed' + help_message: 'You can use online tools to estimate your reading speed:' + 100_word: 'I read ~100 words per minute' + 200_word: 'I read ~200 words per minute' + 300_word: 'I read ~300 words per minute' + 400_word: 'I read ~400 words per minute' form_rss: description: 'RSS feeds provided by wallabag allow you to read your saved articles with your favourite RSS reader. You need to generate a token first.' token_label: 'RSS token' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml index 78b00b79..9b32d038 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.es.yml @@ -61,6 +61,13 @@ config: theme_label: 'Tema' items_per_page_label: 'Número de artículos por página' language_label: 'Idioma' + reading_speed: + # label: 'Reading speed' + # help_message: 'You can use online tools to estimate your reading speed:' + # 100_word: 'I read ~100 words per minute' + # 200_word: 'I read ~200 words per minute' + # 300_word: 'I read ~300 words per minute' + # 400_word: 'I read ~400 words per minute' form_rss: description: 'Los feeds RSS de wallabag permiten leer los artículos guardados con su lector RSS favorito. Necesita generar un token primero' token_label: 'RSS token' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml index de572d09..97f52a78 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml @@ -61,6 +61,13 @@ config: theme_label: 'پوسته' items_per_page_label: 'تعداد مقاله در هر صفحه' language_label: 'زبان' + reading_speed: + # label: 'Reading speed' + # help_message: 'You can use online tools to estimate your reading speed:' + # 100_word: 'I read ~100 words per minute' + # 200_word: 'I read ~200 words per minute' + # 300_word: 'I read ~300 words per minute' + # 400_word: 'I read ~400 words per minute' form_rss: description: 'با خوراک آر-اس-اس که wallabag در اختیارتان می‌گذارد، می‌توانید مقاله‌های ذخیره‌شده را در نرم‌افزار آر-اس-اس دلخواه خود بخوانید. برای این کار نخست باید یک کد بسازید.' token_label: 'کد آر-اس-اس' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml index e30de057..56172463 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml @@ -46,6 +46,8 @@ footer: powered_by: 'propulsé par' about: 'À propos' page_title: 'Configuration' + +config: tab_menu: settings: 'Paramètres' rss: 'RSS' @@ -59,6 +61,13 @@ footer: theme_label: 'Thème' items_per_page_label: "Nombre d'articles par page" language_label: 'Langue' + reading_speed: + label: 'Vitesse de lecture' + help_message: 'Vous pouvez utiliser un outil en ligne pour estimer votre vitesse de lecture :' + 100_word: 'Je lis environ 100 mots par minute' + 200_word: 'Je lis environ 200 mots par minute' + 300_word: 'Je lis environ 300 mots par minute' + 400_word: 'Je lis environ 400 mots par minute' form_rss: description: "Les flux RSS fournis par wallabag vous permettent de lire vos articles sauvegardés dans votre lecteur de flux préféré. Pour pouvoir les utiliser, vous devez d'abord créer un jeton." token_label: 'Jeton RSS' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml index 7bda3204..daeac4bf 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml @@ -61,6 +61,13 @@ config: theme_label: 'Temat' items_per_page_label: 'Ilość elementóœ na stronie' language_label: 'Język' + reading_speed: + # label: 'Reading speed' + # help_message: 'You can use online tools to estimate your reading speed:' + # 100_word: 'I read ~100 words per minute' + # 200_word: 'I read ~200 words per minute' + # 300_word: 'I read ~300 words per minute' + # 400_word: 'I read ~400 words per minute' form_rss: description: 'Kanały RSS prowadzone przez wallabag pozwalają Ci na czytanie twoich zapisanych artykułów w twoium ulubionym czytniku RSS. Musisz najpierw wynegenerować tokena.‌' token_label: 'Token RSS' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml index 08e9080f..af4470b2 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml @@ -61,6 +61,13 @@ config: theme_label: 'Temă' items_per_page_label: 'Articole pe pagină' language_label: 'Limbă' + reading_speed: + # label: 'Reading speed' + # help_message: 'You can use online tools to estimate your reading speed:' + # 100_word: 'I read ~100 words per minute' + # 200_word: 'I read ~200 words per minute' + # 300_word: 'I read ~300 words per minute' + # 400_word: 'I read ~400 words per minute' form_rss: description: 'Feed-urile RSS oferite de wallabag îți permit să-ți citești articolele salvate în reader-ul tău preferat RSS.' token_label: 'RSS-Token' diff --git a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml index 02d424f9..5d859950 100644 --- a/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml +++ b/src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml @@ -61,6 +61,13 @@ config: theme_label: 'Tema' items_per_page_label: 'Sayfa başına makale sayısı' language_label: 'Dil' + reading_speed: + # label: 'Reading speed' + # help_message: 'You can use online tools to estimate your reading speed:' + # 100_word: 'I read ~100 words per minute' + # 200_word: 'I read ~200 words per minute' + # 300_word: 'I read ~300 words per minute' + # 400_word: 'I read ~400 words per minute' form_rss: description: 'wallabag RSS akışı kaydetmiş olduğunuz makalelerini favori RSS okuyucunuzda görüntülemenizi sağlar. Bunu yapabilmek için öncelikle belirteç (token) oluşturmalısınız.' token_label: 'RSS belirteci (token)' diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig index 721948ef..89e6e076 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig @@ -29,7 +29,10 @@ {{ form_label(form.config.reading_speed) }} {{ form_errors(form.config.reading_speed) }} {{ form_widget(form.config.reading_speed) }} -

{% trans %}You can use online tools to estimate your reading speed{% endtrans %} ({% trans %}like this one{%endtrans%}).

+

+ {{ 'config.form_settings.reading_speed.help_message'|trans }} + myreadspeed +

diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig index 698219b9..3343a1d2 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig @@ -47,7 +47,10 @@ {{ form_label(form.config.reading_speed) }} {{ form_errors(form.config.reading_speed) }} {{ form_widget(form.config.reading_speed) }} -

{% trans %}You can use online tools to estimate your reading speed{% endtrans %} ({% trans %}like this one{%endtrans%}).

+

+ {{ 'config.form_settings.reading_speed.help_message'|trans }} + myreadspeed +

-- 2.41.0