mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue