mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
i18n notify strings
This commit is contained in:
parent
33a9cbb5b0
commit
7f66977ac1
8 changed files with 21 additions and 15 deletions
|
@ -74,13 +74,13 @@ export default Component.extend(Notifier, Modal, {
|
|||
let spec = this.get('backupSpec');
|
||||
|
||||
this.get('onBackup')(spec).then((filename) => {
|
||||
this.notifySuccess('Completed');
|
||||
this.notifySuccess(this.i18n.localize('completed'));
|
||||
this.set('backupLabel', this.i18n.localize('backup_start'));
|
||||
this.set('backupSuccess', true);
|
||||
this.set('backupFilename', filename);
|
||||
this.set('backupRunning', false);
|
||||
}, ()=> {
|
||||
this.notifyError('Failed');
|
||||
this.notifyError(this.i18n.localize('backup_failed'));
|
||||
this.set('backupLabel', this.i18n.localize('backup_run'));
|
||||
this.set('backupFailed', true);
|
||||
this.set('backupRunning', false);
|
||||
|
@ -156,7 +156,7 @@ export default Component.extend(Notifier, Modal, {
|
|||
this.set('restoreSuccess', true);
|
||||
this.get('router').transitionTo('auth.logout');
|
||||
}, ()=> {
|
||||
this.notifyError('Failed');
|
||||
this.notifyError(this.i18n.localize('backup_failed'));
|
||||
this.set('restorbackupLabel', this.i18n.localize('restore'));
|
||||
this.set('restoreFailed', true);
|
||||
});
|
||||
|
|
|
@ -21,6 +21,7 @@ import Component from '@ember/component';
|
|||
export default Component.extend(Notifier, {
|
||||
appMeta: service(),
|
||||
router: service(),
|
||||
i18n: service(),
|
||||
maxTags: 3,
|
||||
domain: '',
|
||||
titleEmpty: empty('model.general.title'),
|
||||
|
@ -186,7 +187,7 @@ export default Component.extend(Notifier, {
|
|||
this.set('model.general.domain', this.get('domain').toLowerCase());
|
||||
|
||||
this.get('onUpdate')().then(() => {
|
||||
this.notifySuccess('Saved');
|
||||
this.notifySuccess(this.i18n.localize('saved'));
|
||||
set(this, 'titleError', false);
|
||||
set(this, 'messageError', false);
|
||||
set(this, 'conversionEndpointError', false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue