diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php index 0fd6466..1f8abd6 100644 --- a/DependencyInjection/Configuration.php +++ b/DependencyInjection/Configuration.php @@ -45,6 +45,7 @@ class Configuration implements ConfigurationInterface ->arrayNode('text_color')->prototype('scalar')->end()->end() ->arrayNode('background_color')->prototype('scalar')->end()->end() ->arrayNode('background_images')->prototype('scalar')->end()->end() + ->scalarNode('disabled')->defaultValue(false)->end() ->scalarNode('ignore_all_effects')->defaultValue(false)->end() ->end() ; diff --git a/README.md b/README.md index e71612e..2123d64 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.cs.yml b/Resources/translations/gregwar_captcha.cs.yml new file mode 100644 index 0000000..37ad7b0 --- /dev/null +++ b/Resources/translations/gregwar_captcha.cs.yml @@ -0,0 +1 @@ +Renew: Obnovit 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.cs.yml b/Resources/translations/validators.cs.yml new file mode 100644 index 0000000..7c0a6ca --- /dev/null +++ b/Resources/translations/validators.cs.yml @@ -0,0 +1 @@ +Bad code value: Špatný kontrolní kód 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 diff --git a/composer.json b/composer.json index 7b75481..81abbee 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ ], "require": { "php": ">=5.3.0", - "gregwar/captcha": "v1.0.8" + "gregwar/captcha": "v1.0.11" }, "autoload": { "psr-0": {