]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add reading time translation
authorJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 20 Mar 2016 21:09:00 +0000 (22:09 +0100)
committerJeremy Benoist <jbenoist@20minutes.fr>
Mon, 21 Mar 2016 09:00:41 +0000 (10:00 +0100)
12 files changed:
src/Wallabag/CoreBundle/Form/Type/ConfigType.php
src/Wallabag/CoreBundle/Resources/translations/messages.da.yml
src/Wallabag/CoreBundle/Resources/translations/messages.de.yml
src/Wallabag/CoreBundle/Resources/translations/messages.en.yml
src/Wallabag/CoreBundle/Resources/translations/messages.es.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fa.yml
src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
src/Wallabag/CoreBundle/Resources/translations/messages.pl.yml
src/Wallabag/CoreBundle/Resources/translations/messages.ro.yml
src/Wallabag/CoreBundle/Resources/translations/messages.tr.yml
src/Wallabag/CoreBundle/Resources/views/themes/baggy/Config/index.html.twig
src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig

index 25ea9efa2c9ea07ba3b14252b2db8bdb97a28160..b30b4706af4a750ae7548f413a5a4988b0392661 100644 (file)
@@ -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(
index d2a545361d1899da00c00375370f17b15727fb65..40ae4e5a25a84725614ad51f711f24f91baa5cb2 100644 (file)
@@ -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'
index 2029caec4a016e24b7ca06cc243152c6fb71b400..34f567b1e74c5e3c1fe41ebd1ba6d448c67d4e5f 100644 (file)
@@ -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'
index 3a65d4755dcc2693b4e88d7e1188f37f8d058d6d..1e49d4ba147dd2f324206b4f507af9f938578449 100644 (file)
@@ -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'
index 78b00b791515f1a78ff811f423f28a2b2e682fef..9b32d0386595bae6a3b29ee119862224691889c8 100644 (file)
@@ -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'
index de572d095a74caee1d07f85d35bef9d950fd7ed0..97f52a78415305ac5315198b9a4cc7b04d3427d1 100644 (file)
@@ -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: 'کد آر-اس-اس'
index e30de057db84e64cf4700b4b9a0bdd4e0ac43d6a..56172463848a493f6b792297d018cc40262749e6 100644 (file)
@@ -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'
index 7bda3204900ed1bc89203efae1afb0b01de85748..daeac4bf8148c776d78c9fcdc857f9bab5453645 100644 (file)
@@ -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'
index 08e9080f018ae5f80cbe1d89539d84f737ed7482..af4470b2fa20cfc5716b625b0bd65180b1a81f4b 100644 (file)
@@ -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'
index 02d424f9d2b1ef10520cbeeeece346ab376f9682..5d859950d858a190e9c64ed29c85895be893e638 100644 (file)
@@ -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)'
index 721948ef54605fd810b832d96596d361ad0723f6..89e6e0765ce4e76e6326de03440eff056cb6a9a6 100644 (file)
                 {{ 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>
+                <p>
+                    {{ 'config.form_settings.reading_speed.help_message'|trans }}
+                    <a href="http://www.myreadspeed.com/calculate/">myreadspeed</a>
+                </p>
             </div>
         </fieldset>
 
index 698219b9ea54c0d13a910b33ff46d394177e2038..3343a1d21f083ce67a55c2fa1965b99865043264 100644 (file)
                                     {{ 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>
+                                    <p>
+                                        {{ 'config.form_settings.reading_speed.help_message'|trans }}
+                                        <a href="http://www.myreadspeed.com/calculate/">myreadspeed</a>
+                                    </p>
                                 </div>
                             </div>