diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 9f9fbd5..0ef9877 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -44,6 +44,7 @@ class Configuration implements ConfigurationInterface ->scalarNode('interpolation')->defaultValue(true)->end() ->arrayNode('text_color')->prototype('scalar')->end()->end() ->arrayNode('background_color')->prototype('scalar')->end()->end() + ->scalarNode('disabled')->defaultValue(false)->end() ->end() ; diff --git a/README.md b/README.md index 9a81582..1febba6 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,8 @@ You can define the following configuration options globally or on the CaptchaTyp * **width**: the width of the captcha image (default=120) * **height**: the height of the captcha image (default=40) +* **disabled**: disable globally the CAPTCHAs (can be useful in dev environment), it will + still appear but won't be editable and won't be checked * **length**: the length of the captcha (number of chars, default 5) * **quality**: jpeg quality of captchas (default=15) * **charset**: the charset used for code generation (default=abcdefhjkmnprstuvwxyz23456789) diff --git a/Resources/translations/gregwar_captcha.en.yml b/Resources/translations/gregwar_captcha.en.yml new file mode 100644 index 0000000..11bcba7 --- /dev/null +++ b/Resources/translations/gregwar_captcha.en.yml @@ -0,0 +1 @@ +Renew: Renew diff --git a/Resources/translations/gregwar_captcha.nl.yml b/Resources/translations/gregwar_captcha.nl.yml new file mode 100644 index 0000000..b092bea --- /dev/null +++ b/Resources/translations/gregwar_captcha.nl.yml @@ -0,0 +1 @@ +Renew: Vernieuwen diff --git a/Resources/translations/gregwar_captcha.pt_BR.yml b/Resources/translations/gregwar_captcha.pt_BR.yml new file mode 100644 index 0000000..9bbcbe2 --- /dev/null +++ b/Resources/translations/gregwar_captcha.pt_BR.yml @@ -0,0 +1 @@ +Renew: Regerar diff --git a/Resources/translations/validators.en.yml b/Resources/translations/validators.en.yml new file mode 100644 index 0000000..f10da7e --- /dev/null +++ b/Resources/translations/validators.en.yml @@ -0,0 +1 @@ +Bad code value: Code does not match diff --git a/Resources/translations/validators.nl.yml b/Resources/translations/validators.nl.yml new file mode 100644 index 0000000..d0632d5 --- /dev/null +++ b/Resources/translations/validators.nl.yml @@ -0,0 +1 @@ +Bad code value: Code komt niet overeen diff --git a/Resources/translations/validators.pt_BR.yml b/Resources/translations/validators.pt_BR.yml new file mode 100644 index 0000000..a4e2ebd --- /dev/null +++ b/Resources/translations/validators.pt_BR.yml @@ -0,0 +1 @@ +Bad code value: Código de verificação inválido