diff options
author | nztqa <nztqa@users.noreply.github.com> | 2017-11-28 13:26:46 +0900 |
---|---|---|
committer | nztqa <nztqa@users.noreply.github.com> | 2017-11-28 13:26:46 +0900 |
commit | 44559b52a6d45df57f1ca8eeaae25d55eb7e8148 (patch) | |
tree | f8861d8e98d8846924eafbc90bd1377e940823c8 /client/components | |
parent | 332f12ce2806abcba84eec5b12ea33b26d3a3cd0 (diff) | |
download | wekan-44559b52a6d45df57f1ca8eeaae25d55eb7e8148.tar.gz wekan-44559b52a6d45df57f1ca8eeaae25d55eb7e8148.tar.bz2 wekan-44559b52a6d45df57f1ca8eeaae25d55eb7e8148.zip |
Add smtp test email translations
Diffstat (limited to 'client/components')
-rw-r--r-- | client/components/settings/settingBody.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/client/components/settings/settingBody.js b/client/components/settings/settingBody.js index e2d0383f..5b015918 100644 --- a/client/components/settings/settingBody.js +++ b/client/components/settings/settingBody.js @@ -128,11 +128,14 @@ BlazeComponent.extendComponent({ sendSMTPTestEmail() { Meteor.call('sendSMTPTestEmail', (err, ret) => { if (!err && ret) { /* eslint-disable no-console */ - console.log('Success:', ret.message, ret.email); - alert('Success'); + const message = `${TAPi18n.__(ret.message)}: ${ret.email}`; + console.log(message); + alert(message); } else { - console.log('Error: Sending test email', err); - alert(err); + const reason = err.reason || ''; + const message = `${TAPi18n.__(err.error)}\n${reason}`; + console.log(message, err); + alert(message); } /* eslint-enable no-console */ }); }, |