Skip to content

Commit

Permalink
Fix admin localization
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkaharo authored and ivalkou committed Apr 8, 2021
1 parent 521b874 commit abe6252
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/admin_plugins/roles.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function createOrSaveRole (role, client, callback) {
reload(client, callback);
}).fail(function fail (err) {
console.error('Unable to ' + method + ' Role', err.responseText);
window.alert(client.translate('Unable to %1 Role', { params: [method] }));
window.alert(client.translate('Unable to save Role'));
if (callback) {
callback(err);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/admin_plugins/subjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function createOrSaveSubject (subject, client, callback) {
reload(client, callback);
}).fail(function fail (err) {
console.error('Unable to ' + method + ' Subject', err.responseText);
window.alert(client.translate('Unable to ' + method + ' Subject'));
window.alert(client.translate('Unable to save Subject'));
if (callback) {
callback();
}
Expand Down
4 changes: 2 additions & 2 deletions translations/en/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@
,"Negative temp basal insulin:":"Negative temp basal insulin:"
,"Total basal insulin:":"Total basal insulin:"
,"Total daily insulin:":"Total daily insulin:"
,"Unable to %1 Role":"Unable to %1 Role"
,"Unable to save Role":"Unable to save Role"
,"Unable to delete Role":"Unable to delete Role"
,"Database contains %1 roles":"Database contains %1 roles"
,"Edit Role":"Edit Role"
Expand All @@ -432,7 +432,7 @@
,"Subjects - People, Devices, etc":"Subjects - People, Devices, etc"
,"Each subject will have a unique access token and 1 or more roles. Click on the access token to open a new view with the selected subject, this secret link can then be shared.":"Each subject will have a unique access token and 1 or more roles. Click on the access token to open a new view with the selected subject, this secret link can then be shared."
,"Add new Subject":"Add new Subject"
,"Unable to %1 Subject":"Unable to %1 Subject"
,"Unable to save Subject":"Unable to save Subject"
,"Unable to delete Subject":"Unable to delete Subject"
,"Database contains %1 subjects":"Database contains %1 subjects"
,"Edit Subject":"Edit Subject"
Expand Down

0 comments on commit abe6252

Please sign in to comment.