X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FForm%2FType%2FConfigType.php;h=b30b4706af4a750ae7548f413a5a4988b0392661;hb=439b36323e37f669b056cc5228c44bb91196256c;hp=0a5ea6cc8f37397f0c7484dfe1d2962851c8a075;hpb=6432b9277ed5dcf269590e421bd0aac4ad66f09c;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php index 0a5ea6cc..b30b4706 100644 --- a/src/Wallabag/CoreBundle/Form/Type/ConfigType.php +++ b/src/Wallabag/CoreBundle/Form/Type/ConfigType.php @@ -33,21 +33,28 @@ class ConfigType extends AbstractType ->add('theme', ChoiceType::class, array( 'choices' => array_flip($this->themes), 'choices_as_values' => true, + 'label' => 'config.form_settings.theme_label', + )) + ->add('items_per_page', null, array( + 'label' => 'config.form_settings.items_per_page_label', )) - ->add('items_per_page') ->add('reading_speed', ChoiceType::class, array( + '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( 'choices' => array_flip($this->languages), 'choices_as_values' => true, + 'label' => 'config.form_settings.language_label', + )) + ->add('save', SubmitType::class, array( + 'label' => 'config.form.save', )) - ->add('save', SubmitType::class) ; }