Fix admin localization

This commit is contained in:
Sulka Haro
2021-01-14 09:29:00 +02:00
parent 44c544a9ac
commit c0b96a714e
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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();
}
+2 -2
View File
@@ -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"
@@ -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"