]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Replace slider with select
authorNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 14 Mar 2016 12:49:47 +0000 (13:49 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Mon, 14 Mar 2016 12:49:47 +0000 (13:49 +0100)
data/db/wallabag_test.sqlite-journal [deleted file]
src/Wallabag/CoreBundle/Controller/DeveloperController.php
src/Wallabag/CoreBundle/Form/Type/ConfigType.php
src/Wallabag/CoreBundle/Resources/translations/messages.fr.yml
src/Wallabag/CoreBundle/Resources/views/themes/material/Config/index.html.twig

diff --git a/data/db/wallabag_test.sqlite-journal b/data/db/wallabag_test.sqlite-journal
deleted file mode 100644 (file)
index 153aa18..0000000
Binary files a/data/db/wallabag_test.sqlite-journal and /dev/null differ
index f519bdbcc21ac87ce4bc9b3c3750714532a7cf99..e5cfd83c656b67209d3f78d87ae3b5d56543729f 100644 (file)
@@ -43,7 +43,7 @@ class DeveloperController extends Controller
         $clientForm->handleRequest($request);
 
         if ($clientForm->isValid()) {
-            $client->setAllowedGrantTypes(array('token', 'authorization_code', 'password','refresh_token'));
+            $client->setAllowedGrantTypes(array('token', 'authorization_code', 'password', 'refresh_token'));
             $em->persist($client);
             $em->flush();
 
index 1218a933106eef666df37bf018c05bf04df332ab..0a5ea6cc8f37397f0c7484dfe1d2962851c8a075 100644 (file)
@@ -4,7 +4,6 @@ namespace Wallabag\CoreBundle\Form\Type;
 
 use Symfony\Component\Form\AbstractType;
 use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
-use Symfony\Component\Form\Extension\Core\Type\RangeType;
 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
 use Symfony\Component\Form\FormBuilderInterface;
 use Symfony\Component\OptionsResolver\OptionsResolver;
@@ -36,11 +35,12 @@ class ConfigType extends AbstractType
                 'choices_as_values' => true,
             ))
             ->add('items_per_page')
-            ->add('reading_speed', RangeType::class, array(
-                'attr' => array(
-                    'min' => 0.5,
-                    'max' => 2,
-                    'step' => 0.5,
+            ->add('reading_speed', ChoiceType::class, array(
+                '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',
                 ),
             ))
             ->add('language', ChoiceType::class, array(
index f6ac34fd7c9b149892097837139ae8241d65e1e9..7c6ad07e8dc105d31bb45333dc79fcdd5939f1a3 100644 (file)
@@ -57,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"
index 31931ca2e728efc7cd1413f6b7cdf7a8f97fca52..2b0b08289e935e233648b5554ec0de5d536d420a 100644 (file)
@@ -47,6 +47,7 @@
                                     {{ 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>