aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEkaterina Vaartis <vaartis@cock.li>2018-12-21 09:53:04 +0300
committerEkaterina Vaartis <vaartis@cock.li>2018-12-21 15:12:46 +0300
commit10642df528ab0119055224e289f39ecd48e49dbd (patch)
treed0e074a620898570c9ba6e6b3791f471571817e4 /src
parent661efc51b79012c48cfb63748e0adb4b71f4517b (diff)
Add a translation to the captcha strings in the registration form
Diffstat (limited to 'src')
-rw-r--r--src/components/registration/registration.vue4
-rw-r--r--src/i18n/en.json2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/components/registration/registration.vue b/src/components/registration/registration.vue
index 785d691a..1455354e 100644
--- a/src/components/registration/registration.vue
+++ b/src/components/registration/registration.vue
@@ -76,12 +76,12 @@
</div>
<div class="form-group" id="captcha-group" v-if="captcha.type != 'none'">
- <label class='form--label' for='captcha-label'>CAPTCHA</label>
+ <label class='form--label' for='captcha-label'>$t('captcha')</label>
<template v-if="captcha.type == 'kocaptcha'">
<img v-bind:src="captcha.url" v-on:click="setCaptcha">
- <sub>Click the image to get a new captcha</sub>
+ <sub>{{$t('registration.new_captcha')}}</sub>
<input :disabled="isPending"
v-model='captcha.solution'
diff --git a/src/i18n/en.json b/src/i18n/en.json
index f445bfc2..3662c6f6 100644
--- a/src/i18n/en.json
+++ b/src/i18n/en.json
@@ -74,6 +74,8 @@
"password_confirm": "Password confirmation",
"registration": "Registration",
"token": "Invite token",
+ "captcha": "CAPTCHA",
+ "new_captcha": "Click the image to get a new captcha",
"validations": {
"username_required": "cannot be left blank",
"fullname_required": "cannot be left blank",