mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Fix admin localization
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user