mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
i18n admin strings
This commit is contained in:
parent
53297f7627
commit
4ab48cc67d
11 changed files with 65 additions and 34 deletions
|
@ -23,6 +23,7 @@ import Component from '@ember/component';
|
|||
export default Component.extend(ModalMixin, Notifier, {
|
||||
appMeta: service(),
|
||||
globalSvc: service('global'),
|
||||
i18n: service(),
|
||||
|
||||
isDocumizeProvider: computed('authProvider', function() {
|
||||
return this.get('authProvider') === this.get('constants').AuthProvider.Documize;
|
||||
|
@ -90,7 +91,7 @@ export default Component.extend(ModalMixin, Notifier, {
|
|||
let provider = this.get('authProvider');
|
||||
let constants = this.get('constants');
|
||||
|
||||
this.set('ldapPreview', {isError: true, message: 'Unable to connect'});
|
||||
this.set('ldapPreview', {isError: true, message: this.i18n.localize('auth_ldap_preview_error')});
|
||||
|
||||
switch (provider) {
|
||||
case constants.AuthProvider.Documize: {
|
||||
|
@ -176,7 +177,7 @@ export default Component.extend(ModalMixin, Notifier, {
|
|||
this.get('globalSvc').previewLDAP(config).then((preview) => {
|
||||
this.set('ldapPreview', preview);
|
||||
this.modalOpen("#ldap-preview-modal", {"show": true});
|
||||
this.notifySuccess('Saved');
|
||||
this.notifySuccess(this.i18n.localize('saved'));
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -314,7 +315,7 @@ export default Component.extend(ModalMixin, Notifier, {
|
|||
});
|
||||
}
|
||||
|
||||
this.notifySuccess('Saved');
|
||||
this.notifySuccess(this.i18n.localize('saved'));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue