diff --git a/package-lock.json b/package-lock.json index 94d3c33..5600cfa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7,7 +7,7 @@ "license": "UNLICENSED", "dependencies": { "add": "^2.0.6", - "altcha": "^1.0.0", + "altcha": "^2.0.0", "autoprefixer": "^10.4.4", "bootstrap": "^5.2.3", "jquery": "^3.6.1", @@ -2346,8 +2346,9 @@ } }, "node_modules/altcha": { - "version": "1.4.2", - "hasInstallScript": true, + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/altcha/-/altcha-2.0.3.tgz", + "integrity": "sha512-vrrolHI721LOegDSJYnf2oRYlP2VIi83N9wrJe+PrjkV1O7wlMcBxlp5uAch4RdsReCYgt6IJ7CAbbk/3esRoA==", "license": "MIT", "dependencies": { "@altcha/crypto": "^0.0.1" diff --git a/package.json b/package.json index d29fd8d..867b8a8 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,6 @@ "postcss-loader": "^7.0.2", "sass": "^1.56.2", "sass-loader": "^13.2.0", - "altcha": "^1.0.0" + "altcha": "^2.0.0" } } diff --git a/src/Altcha/Form/AltchaType.php b/src/Altcha/Form/AltchaType.php index 66e99c4..1a314d1 100644 --- a/src/Altcha/Form/AltchaType.php +++ b/src/Altcha/Form/AltchaType.php @@ -38,15 +38,6 @@ class AltchaType extends AbstractType public function buildView(FormView $view, FormInterface $form, array $options) { - $translations = [ - 'label' => $this->translator->trans('altcha.widget.label', [], 'form'), - 'verified' => $this->translator->trans('altcha.widget.verified', [], 'form'), - 'verifying' => $this->translator->trans('altcha.widget.verifying', [], 'form'), - 'waitAlert' => $this->translator->trans('altcha.widget.waitalert', [], 'form'), - 'error' => $this->translator->trans('altcha.widget.error', [], 'form'), - 'expired' => $this->translator->trans('altcha.widget.expired', [], 'form'), - ]; - $view->vars['translations'] = json_encode($translations); $view->vars['challengeJson'] = $this->requestChallenge(); $view->vars['debug'] = $this->altchaDebug; $view->vars['workers'] = $this->altchaWorkers; diff --git a/translations/form.en.xlf b/translations/form.en.xlf index b1ab7e2..26df8eb 100644 --- a/translations/form.en.xlf +++ b/translations/form.en.xlf @@ -21,38 +21,10 @@ altcha.validator.server_validation_error Verification failed. Try again later. - - altcha.widget.error - Verification failed. Try again later. - - - altcha.widget.expired - Verification expired. Try again. - - - altcha.widget.label - I'm not a robot - - - altcha.widget.verified - Verified - - - altcha.widget.verifying - Verifying... - - - altcha.widget.waitalert - Verifying... please wait. - altcha.widget.title Verification * - - altcha.widget.info - Please check the box above to validate that you are not a robot. If you encounter any problem while doing this, please update your browser. - diff --git a/translations/form.fr.xlf b/translations/form.fr.xlf index 137fe4f..e424496 100644 --- a/translations/form.fr.xlf +++ b/translations/form.fr.xlf @@ -21,38 +21,10 @@ altcha.validator.server_validation_error Échec de la vérification. Réessayez plus tard. - - altcha.widget.error - Échec de la vérification. Réesayez plus tard. - - - altcha.widget.expired - Vérification expirée. Réessayez. - - - altcha.widget.label - Je ne suis pas un robot - - - altcha.widget.verified - Vérifié - - - altcha.widget.verifying - Vérification en cours... - - - altcha.widget.waitalert - Vérification en cours... veuillez patienter. - altcha.widget.title Vérification * - - altcha.widget.info - Veuillez cocher la case ci dessus afin de valider que vous n'êtes pas un robot. Si vous rencontrez un problème lors de cette action, mettez à jour votre navigateur. -