Skip to content

Commit

Permalink
Various fixes to localization - #6516 #6523 #6524
Browse files Browse the repository at this point in the history
  • Loading branch information
sulkaharo committed Dec 15, 2020
1 parent 9e3d9a6 commit 0a2fee8
Show file tree
Hide file tree
Showing 6 changed files with 290 additions and 270 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ matrix:
include:
- node_js: "10"
<<: *node_js-steps
- node_js: "12" # Latest Node is not supported, and recommend, but we'll test it to know incompatibility issues
- node_js: "12"
<<: *node_js-steps
22 changes: 11 additions & 11 deletions lib/report_plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ function init(ctx) {
, ORDER_NEWESTONTOP: 1
}
, allPlugins = [
require('./daytoday')()
, require('./weektoweek')()
, require('./dailystats')()
, require('./glucosedistribution')()
, require('./hourlystats')()
, require('./percentile')()
, require('./success')()
, require('./calibrations')()
, require('./treatments')()
, require('./profiles')()
, require('./loopalyzer')()
require('./daytoday')(ctx)
, require('./weektoweek')(ctx)
, require('./dailystats')(ctx)
, require('./glucosedistribution')(ctx)
, require('./hourlystats')(ctx)
, require('./percentile')(ctx)
, require('./success')(ctx)
, require('./calibrations')(ctx)
, require('./treatments')(ctx)
, require('./profiles')(ctx)
, require('./loopalyzer')(ctx)
];

consts.scaleYFromSettings = function scaleYFromSettings (client) {
Expand Down
5 changes: 2 additions & 3 deletions lib/report_plugins/loopalyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,14 @@ loopalyzer.html = function html (client) {
var ret = '';
ret += '<h2>Loopalyzer&nbsp;&nbsp;<span id="loopalyzer-dateinfo"></span></h2>';
ret += '<span id="loopalyzer-help">' + translate('The primary purpose of Loopalyzer is to visualise how the Loop closed loop system performs. It may work with other setups as well, both closed and open loop, and non loop. However depending on which uploader you use, how frequent it is able to capture your data and upload, and how it is able to backfill missing data some graphs may have gaps or even be completely empty. Always ensure the graphs look reasonable. Best is to view one day at a time and scroll through a number of days first to see.');
ret += '<br/><br/>' + translate('Loopalyzer includes a time shift feature. If you for example have breakfast at 07:00 one day and at 08:00 the day after your average blood glucose curve these two days will most likely look flattened and not show the actual response after a breakfast. Time shift will compute the average time these meals were eaten and then shift all data (carbs, insulin, basal etc.) during both days the corresponding time difference so that both meals align with the average meal start time. ');
ret += '<br/><br/>' + translate('Loopalyzer includes a time shift feature. If you for example have breakfast at 07:00 one day and at 08:00 the day after your average blood glucose curve these two days will most likely look flattened and not show the actual response after a breakfast. Time shift will compute the average time these meals were eaten and then shift all data (carbs, insulin, basal etc.) during both days the corresponding time difference so that both meals align with the average meal start time.');
ret += '<br/>' + translate('In this example all data from first day is pushed 30 minutes forward in time and all data from second day 30 minutes backward in time so it appears as if you had had breakfast at 07:30 both days. This allows you to see your actual average blood glucose response from a meal.');
ret += '<br/></br>' + translate('Time shift highlights the period after the average meal start time in gray, for the duration of the DIA (Duration of Insulin Action). As all data points the entire day are shifted the curves outside the gray area may not be accurate.');
ret += '<br/></br>' + translate('Note that time shift is available only when viewing multiple days.');
ret += '<br/><br/><b>';
ret += translate('To see this report, press SHOW while in this view');
ret += '</b></span>';
ret += '<span id="loopalyzer-notenoughdata" style="display:none;"><b>' + translate('Please select a maximum of' +
' two weeks duration and click Show again.') + '</b><br/><br/></span>';
ret += '<span id="loopalyzer-notenoughdata" style="display:none;"><b>' + translate('Please select a maximum of two weeks duration and click Show again.') + '</b><br/><br/></span>';
ret += '<div id="loopalyzer-buttons" style="display:none;">';
ret += '<input type="checkbox" id="rp_loopalyzerprofiles">' + translate('Show profiles table') + '&nbsp;&nbsp;&nbsp;&nbsp;';
ret += '<input type="checkbox" id="rp_loopalyzerpredictions">' + translate('Show predictions');
Expand Down
Loading

0 comments on commit 0a2fee8

Please sign in to comment.