aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Form/Type/ConfigType.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-21 12:47:57 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-03-21 12:47:57 +0100
commit439b36323e37f669b056cc5228c44bb91196256c (patch)
treeecd84477adf3e12819b26aff2a6d2e644e45ea72 /src/Wallabag/CoreBundle/Form/Type/ConfigType.php
parentbd46de6b25f982e1a0d3f975971fe8014db13833 (diff)
parent4083887afe4dd3f568b2dfea3392506b554c79b8 (diff)
downloadwallabag-439b36323e37f669b056cc5228c44bb91196256c.tar.gz
wallabag-439b36323e37f669b056cc5228c44bb91196256c.tar.zst
wallabag-439b36323e37f669b056cc5228c44bb91196256c.zip
Merge pull request #1774 from wallabag/v2-key-translation
Switch to keys in translated files
Diffstat (limited to 'src/Wallabag/CoreBundle/Form/Type/ConfigType.php')
-rw-r--r--src/Wallabag/CoreBundle/Form/Type/ConfigType.php19
1 files changed, 13 insertions, 6 deletions
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
33 ->add('theme', ChoiceType::class, array( 33 ->add('theme', ChoiceType::class, array(
34 'choices' => array_flip($this->themes), 34 'choices' => array_flip($this->themes),
35 'choices_as_values' => true, 35 'choices_as_values' => true,
36 'label' => 'config.form_settings.theme_label',
37 ))
38 ->add('items_per_page', null, array(
39 'label' => 'config.form_settings.items_per_page_label',
36 )) 40 ))
37 ->add('items_per_page')
38 ->add('reading_speed', ChoiceType::class, array( 41 ->add('reading_speed', ChoiceType::class, array(
42 'label' => 'config.form_settings.reading_speed.label',
39 'choices' => array( 43 'choices' => array(
40 'I read ~100 words per minute' => '0.5', 44 'config.form_settings.reading_speed.100_word' => '0.5',
41 'I read ~200 words per minute' => '1', 45 'config.form_settings.reading_speed.200_word' => '1',
42 'I read ~300 words per minute' => '1.5', 46 'config.form_settings.reading_speed.300_word' => '1.5',
43 'I read ~400 words per minute' => '2', 47 'config.form_settings.reading_speed.400_word' => '2',
44 ), 48 ),
45 )) 49 ))
46 ->add('language', ChoiceType::class, array( 50 ->add('language', ChoiceType::class, array(
47 'choices' => array_flip($this->languages), 51 'choices' => array_flip($this->languages),
48 'choices_as_values' => true, 52 'choices_as_values' => true,
53 'label' => 'config.form_settings.language_label',
54 ))
55 ->add('save', SubmitType::class, array(
56 'label' => 'config.form.save',
49 )) 57 ))
50 ->add('save', SubmitType::class)
51 ; 58 ;
52 } 59 }
53 60