diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-12-21 23:46:51 +0100 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-12-21 23:46:51 +0100 |
commit | e124ad8ed9ceb899ecc21bcc5e1ad1158a36453c (patch) | |
tree | 9f33b993fcae034e1b6a3c5dadf64a55517b9723 | |
parent | a762f6dc9d4c6ad541d9a5f44db2467f09f11b30 (diff) | |
download | wekan-e124ad8ed9ceb899ecc21bcc5e1ad1158a36453c.tar.gz wekan-e124ad8ed9ceb899ecc21bcc5e1ad1158a36453c.tar.bz2 wekan-e124ad8ed9ceb899ecc21bcc5e1ad1158a36453c.zip |
Fix invitation email subject
-rw-r--r-- | config/accounts.js | 10 | ||||
-rw-r--r-- | i18n/en.i18n.json | 6 |
2 files changed, 10 insertions, 6 deletions
diff --git a/config/accounts.js b/config/accounts.js index 3a6a116e..9ab26b33 100644 --- a/config/accounts.js +++ b/config/accounts.js @@ -53,9 +53,13 @@ if (Meteor.isServer) { } ['resetPassword-subject', 'resetPassword-text', 'verifyEmail-subject', 'verifyEmail-text', 'enrollAccount-subject', 'enrollAccount-text'].forEach((str) => { - const words = str.split('-'); - Accounts.emailTemplates[words[0]][words[1]] = (user, url) => { - return TAPi18n.__(`email-${str}`, { user: user.getName(), url }, user.getLanguage()); + const [templateName, field] = str.split('-'); + Accounts.emailTemplates[templateName][field] = (user, url) => { + return TAPi18n.__(`email-${str}`, { + url, + user: user.getName(), + siteName: Accounts.emailTemplates.siteName, + }, user.getLanguage()); }; }); } diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json index 6cc43f03..41e7ec88 100644 --- a/i18n/en.i18n.json +++ b/i18n/en.i18n.json @@ -126,17 +126,17 @@ "editLabelPopup-title": "Change Label", "editProfilePopup-title": "Edit Profile", "email": "Email", - "email-enrollAccount-subject": "An account created for you on __url__", + "email-enrollAccount-subject": "An account created for you on __siteName__", "email-enrollAccount-text": "Hello __user__,\n\nTo start using the service, simply click the link below.\n\n__url__\n\nThanks.\n", "email-fail": "Sending email failed", "email-invalid": "Invalid email", "email-invite": "Invite via Email", "email-invite-subject": "__inviter__ sent you an invitation", "email-invite-text": "Dear __user__,\n\n__inviter__ invites you to join board \"__board__\" for collaborations.\n\nPlease follow the link below:\n\n__url__\n\nThanks.\n", - "email-resetPassword-subject": "Reset your password on __url__", + "email-resetPassword-subject": "Reset your password on __siteName__", "email-resetPassword-text": "Hello __user__,\n\nTo reset your password, simply click the link below.\n\n__url__\n\nThanks.\n", "email-sent": "Email sent", - "email-verifyEmail-subject": "Verify your email address on __url__", + "email-verifyEmail-subject": "Verify your email address on __siteName__", "email-verifyEmail-text": "Hello __user__,\n\nTo verify your account email, simply click the link below.\n\n__url__\n\nThanks.\n", "error-board-doesNotExist": "This board does not exist", "error-board-notAdmin": "You need to be admin of this board to do that", |