From 23672be5c0b5079aa3a8197dfe62bbdb2fe568cf Mon Sep 17 00:00:00 2001 From: jovuit Date: Mon, 11 Feb 2019 09:43:57 +0100 Subject: [PATCH] #662: Resolve "Add contexts to translatable strings" --- front/src/views/auth/EmailConfirm.vue | 18 ++++++++--------- front/src/views/auth/PasswordReset.vue | 17 ++++++++-------- front/src/views/auth/PasswordResetConfirm.vue | 20 +++++++++---------- 3 files changed, 27 insertions(+), 28 deletions(-) diff --git a/front/src/views/auth/EmailConfirm.vue b/front/src/views/auth/EmailConfirm.vue index fd509272d..554b424ae 100644 --- a/front/src/views/auth/EmailConfirm.vue +++ b/front/src/views/auth/EmailConfirm.vue @@ -2,29 +2,29 @@
-

Confirm your e-mail address

+

Confirm your e-mail address

-
Could not confirm your e-mail address
+
Could not confirm your e-mail address
  • {{ error }}
- +
- Return to login + Return to login + Confirm your e-mail address
-
E-mail address confirmed
-

You can now use the service without limitations.

+
E-mail address confirmed
+

You can now use the service without limitations.

- Proceed to login + Proceed to login
@@ -48,7 +48,7 @@ export default { computed: { labels() { return { - confirm: this.$gettext("Confirm your e-mail address") + confirm: this.$pgettext('Head/Signup/Title', "Confirm your e-mail address") } } }, diff --git a/front/src/views/auth/PasswordReset.vue b/front/src/views/auth/PasswordReset.vue index 7940c170f..1cba54bce 100644 --- a/front/src/views/auth/PasswordReset.vue +++ b/front/src/views/auth/PasswordReset.vue @@ -2,17 +2,17 @@
-

Reset your password

+

Reset your password

-
Error while asking for a password reset
+
Error while asking for a password reset
  • {{ error }}
-

Use this form to request a password reset. We will send an email to the given address with instructions to reset your password.

+

Use this form to request a password reset. We will send an email to the given address with instructions to reset your password.

- +
- Back to login + Back to login + Ask for a password reset
@@ -50,9 +50,8 @@ export default { }, computed: { labels() { - let reset = this.$gettext("Reset your password") - let placeholder = this.$gettext( - "Input the email address binded to your account" + let reset = this.$pgettext('Head/Signup/Title', "Reset your password") + let placeholder = this.$pgettext('Content/Signup/Input.Placeholder', "Enter the email address binded to your account" ) return { reset, diff --git a/front/src/views/auth/PasswordResetConfirm.vue b/front/src/views/auth/PasswordResetConfirm.vue index df0589beb..22f06ddba 100644 --- a/front/src/views/auth/PasswordResetConfirm.vue +++ b/front/src/views/auth/PasswordResetConfirm.vue @@ -2,34 +2,34 @@
-

Change your password

+

Change your password

-
Error while changing your password
+
Error while changing your password
  • {{ error }}
-
Password updated successfully
-

Your password has been updated successfully.

+
Password updated successfully
+

Your password has been updated successfully.

- Proceed to login + Proceed to login
@@ -59,7 +59,7 @@ export default { computed: { labels() { return { - changePassword: this.$gettext("Change your password") + changePassword: this.$pgettext('Head/Signup/Title', "Change your password") } } },