1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-24 15:49:44 +02:00

i18n admin strings

This commit is contained in:
McMatts 2022-03-03 19:42:37 -05:00
parent 53297f7627
commit 4ab48cc67d
11 changed files with 65 additions and 34 deletions

View file

@ -17,14 +17,20 @@ import Component from '@ember/component';
export default Component.extend(Notifier, {
appMeta: service(),
i18n: service(),
SMTPHostEmptyError: empty('model.smtp.host'),
SMTPPortEmptyError: empty('model.smtp.port'),
SMTPSenderEmptyError: empty('model.smtp.sender'),
senderNameError: empty('model.smtp.senderName'),
buttonText: 'Save & Test',
testSMTP: null,
init() {
this._super(...arguments);
this.buttonText = this.i18n.localize('smtp_save_test');
},
actions: {
saveSMTP() {
if (this.get('SMTPHostEmptyError')) {
@ -50,11 +56,11 @@ export default Component.extend(Notifier, {
},
);
this.set('buttonText', 'Please wait...');
this.notifyInfo('Sending test email to you');
this.set('buttonText', this.i18n.localize('please_test'));
this.notifyInfo(this.i18n.localize('smtp_sent_test_email'));
this.get('saveSMTP')().then((result) => {
this.set('buttonText', 'Save & Test');
this.set('buttonText', this.i18n.localize('smtp_save_test'));
this.set('testSMTP', result);
this.set('appMeta.configured', true);