From 1d4d1d18d85349b6f877fa5f1df82fe0d9dafe79 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Fri, 5 Mar 2021 18:23:52 +0100 Subject: [PATCH] Added translation keys ref #5 --- src/locales/en.json | 55 ++++++++++++++++++---------------- src/templates/runner_link.html | 12 ++++---- 2 files changed, 36 insertions(+), 31 deletions(-) diff --git a/src/locales/en.json b/src/locales/en.json index 627914c..4cd63bf 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1,26 +1,31 @@ { - "a-password-reset-for-your-account-got-requested": "A password reset for your account got requested.", - "all-rights-reserved": "All rights reserved.", - "event_name-registration": "{{event_name}} Registration", - "if-you-didnt-register-yourself-you-should-contact-us-to-get-your-data-removed-from-our-systems": "If you didn't register yourself you should contact us to get your data removed from our systems:", - "if-you-didnt-request-the-reset-please-ignore-this-mail": "If you didn't request the reset please ignore this mail.", - "if-you-ever-loose-the-link-you-can-request-a-new-one-by-visiting-our-website": "If you ever loose the link you can request a new one by visiting our website:", - "imprint": "Imprint", - "lfk-mail-test": "{{copyright_owner}} - Mail test", - "lfk-password-reset": "{{copyright_owner}} - Password reset", - "password-reset": "Password reset", - "privacy": "Privacy", - "reset-password": "Reset password", - "test-mail": "Test mail", - "thanks-for-registering-and-welcome-to-the-event_name": "Thanks for registering and welcome to the {{event_name}}!", - "the-only-thing-you-have-to-do-now-is-to-bring-your-registration-code-with-you": "The only thing you have to do now is to bring your registration code with you.", - "this-is-a-test-mail-triggered-by-an-admin-in-the-lfk-backend": "This is a test mail triggered by an admin in the LfK! backend.", - "this-mail-was-sent-to-recipient_mail-because-someone-request-a-mail-test-for-this-mail-address": "This mail was sent to you because someone request a mail test for this mail address.", - "this-mail-was-sent-to-you-because-someone-request-a-password-reset-for-a-account-linked-to-the-mail-address": "This mail was sent to you because someone request a password reset for a account linked to the mail address.", - "this-mail-was-sent-to-you-because-someone-used-your-mail-address-to-register-themselfes-for-the-event_name": "This mail was sent to you, because someone used your mail address to register themselfes for the {{event_name}}", - "view-my-data": "View my data", - "we-successfully-processed-your-registration": "We successfully processed your registration.", - "welcome": "Welcome", - "you-can-view-your-registration-code-lap-times-and-much-more-by-visiting-our-selfservice": "You can view your registration code, lap times and much more by visiting our selfservice:", - "your-password-wont-be-changed-until-you-click-the-reset-link-below-and-set-a-new-one": "Your password won't be changed until you click the reset link below and set a new one." -} \ No newline at end of file + "a-password-reset-for-your-account-got-requested": "A password reset for your account got requested.", + "all-rights-reserved": "All rights reserved.", + "event_name-registration": "{{event_name}} Registration", + "if-you-didnt-register-yourself-you-should-contact-us-to-get-your-data-removed-from-our-systems": "If you didn't register yourself you should contact us to get your data removed from our systems:", + "if-you-didnt-request-the-reset-please-ignore-this-mail": "If you didn't request the reset please ignore this mail.", + "if-you-ever-loose-the-link-you-can-request-a-new-one-by-visiting-our-website": "If you ever loose the link you can request a new one by visiting our website:", + "imprint": "Imprint", + "lfk-mail-test": "{{copyright_owner}} - Mail test", + "lfk-password-reset": "{{copyright_owner}} - Password reset", + "password-reset": "Password reset", + "privacy": "Privacy", + "reset-password": "Reset password", + "test-mail": "Test mail", + "thanks-for-registering-and-welcome-to-the-event_name": "Thanks for registering and welcome to the {{event_name}}!", + "the-only-thing-you-have-to-do-now-is-to-bring-your-registration-code-with-you": "The only thing you have to do now is to bring your registration code with you.", + "this-is-a-test-mail-triggered-by-an-admin-in-the-lfk-backend": "This is a test mail triggered by an admin in the LfK! backend.", + "this-mail-was-sent-to-recipient_mail-because-someone-request-a-mail-test-for-this-mail-address": "This mail was sent to you because someone request a mail test for this mail address.", + "this-mail-was-sent-to-you-because-someone-request-a-password-reset-for-a-account-linked-to-the-mail-address": "This mail was sent to you because someone request a password reset for a account linked to the mail address.", + "this-mail-was-sent-to-you-because-someone-used-your-mail-address-to-register-themselfes-for-the-event_name": "This mail was sent to you, because someone used your mail address to register themselfes for the {{event_name}}", + "view-my-data": "View my data", + "we-successfully-processed-your-registration": "We successfully processed your registration.", + "welcome": "Welcome", + "you-can-view-your-registration-code-lap-times-and-much-more-by-visiting-our-selfservice": "You can view your registration code, lap times and much more by visiting our selfservice:", + "your-password-wont-be-changed-until-you-click-the-reset-link-below-and-set-a-new-one": "Your password won't be changed until you click the reset link below and set a new one.", + "your-event_name-profile": "Your {{event_name}} profile", + "your-profile": "Your Profile", + "thank-you-for-requesting-a-new-link-to-your-event_name-runner-profile": "Thank you for requesting a new link to your {{event_name}} runner profile.", + "this-mail-was-sent-to-you-because-someone-requested-a-new-link-to-access-your-profile-for-the-event_name": "This mail was sent to you, because someone requested a new link to access your profile for the {{event_name}}.", + "to-prevent-spam-you-can-only-request-a-new-link-every-24hrs": "To prevent spam you can only request a new link every 24hrs." +} diff --git a/src/templates/runner_link.html b/src/templates/runner_link.html index 460b8e0..056f5b3 100644 --- a/src/templates/runner_link.html +++ b/src/templates/runner_link.html @@ -2,7 +2,7 @@ - Your {{event_name}} profile<title> <!-- The title tag shows in email notifications, like Android 4.4. --> + <title>{{__ "your-event_name-profile"}}<title> <!-- The title tag shows in email notifications, like Android 4.4. --> <meta charset="utf-8"> <!-- utf-8 works for most cases --> <meta http-equiv="Content-Type" content="text/html charset=UTF-8" /> <meta name="viewport" content="width=device-width"> <!-- Forcing initial-scale shouldn't be necessary --> @@ -285,7 +285,7 @@ <!-- Visually Hidden Preview Text : BEGIN --> <div style="display: none; font-size: 1px; line-height: 1px; max-height: 0px; max-width: 0px; opacity: 0; overflow: hidden; mso-hide: all; font-family: sans-serif;"> - Your {{event_name}} profile + {{__ "your-event_name-profile"}} </div> <!-- Visually Hidden Preview Text : END --> @@ -306,9 +306,9 @@ </tr> <tr> <td style="padding-bottom: 15px; font-family: arial, sans-serif; font-size: 15px; line-height: 21px; color: #3C3F44; text-align: left;"> - <h1 style="font-weight: bold; font-size: 21px; line-height: 21px; color: #0C0D0E; margin: 0 0 15px 0;">Your Profile</h1> + <h1 style="font-weight: bold; font-size: 21px; line-height: 21px; color: #0C0D0E; margin: 0 0 15px 0;">{{__ "your-profile"}}</h1> <p style="margin: 0 0 15px;" class="has-markdown"> - Thank you for requesting a new link to your {{event_name}} runner profile.<br> + {{__ "thank-you-for-requesting-a-new-link-to-your-event_name-runner-profile"}}<br> {{__ "you-can-view-your-registration-code-lap-times-and-much-more-by-visiting-our-selfservice"}} </p> </td> @@ -374,8 +374,8 @@ <!-- HR line : END --> <tr> <td style="padding-bottom: 5px; font-size: 12px; line-height: 15px; font-family: arial, sans-serif; color: #9199A1; text-align: left;"> - This mail was sent to you, because someone requested a new link to access your profile for the {{event_name}}.<br> - To prevent spam you can only request a new link every 24hrs.<br> + {{__ "this-mail-was-sent-to-you-because-someone-requested-a-new-link-to-access-your-profile-for-the-event_name"}}<br> + {{__ "to-prevent-spam-you-can-only-request-a-new-link-every-24hrs"}}<br> {{__ "if-you-didnt-register-yourself-you-should-contact-us-to-get-your-data-removed-from-our-systems"}} <a href="mailto:{{contact_mail}}">{{contact_mail}}</a> </td> </tr>