Skip to content

Commit

Permalink
Merge pull request #226 from MikePlante1/max_carbs
Browse files Browse the repository at this point in the history
Prevent entries for Carbs, Fat, Protein, and Bolus that exceed Max settings
  • Loading branch information
bjornoleh committed Jun 7, 2024
2 parents e6d67ac + ae51591 commit 4d6e102
Show file tree
Hide file tree
Showing 30 changed files with 625 additions and 82 deletions.
2 changes: 2 additions & 0 deletions FreeAPS/Resources/json/defaults/freeaps/freeaps_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
"oneDimensionalGraph" : false,
"rulerMarks" : true,
"maxCarbs": 250,
"maxFat": 250,
"maxProtein": 250,
"displayFatAndProteinOnWatch": false,
"lockScreenView": "simple"
}
27 changes: 24 additions & 3 deletions FreeAPS/Sources/Localizations/Main/ar.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,30 @@ Enact a temp Basal or a temp target */
/* Max setting */
"Max Carbs" = "Max Carbs";

/* Max setting */
"Max Fat" = "Max Fat";

/* Max setting */
"Max Protein" = "Max Protein";

/* Max setting */
"Limit Per Entry" = "Limit Per Entry";

/* Max Carbs limit exceeded */
"Max Carbs of" = "Max Carbs of";

/* Max Fat limit exceeded */
"Max Fat of" = "Max Fat of";

/* Max Protein limit exceeded */
"Max Protein of" = "Max Protein of";

/* Max Bolus limit exceeded */
"Max Bolus of" = "Max Bolus of";

/* Limit Exceeded label */
"exceeded" = "exceeded";

/* */
"Pump Settings" = "Pump Settings";

Expand Down Expand Up @@ -1052,9 +1076,6 @@ Enact a temp Basal or a temp target */
/* */
"Bolus failed" = "Bolus failed";

/* "Max Bolus Exceeded label" */
"Max Bolus exceeded!" = "Max Bolus exceeded!";

/* */
"Bolus failed or inaccurate. Check pump history before repeating." = "Bolus failed or inaccurate. Check pump history before repeating.";

Expand Down
27 changes: 27 additions & 0 deletions FreeAPS/Sources/Localizations/Main/ca.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,33 @@ Enact a temp Basal or a temp target */
/* Max setting */
"Max Bolus" = "Max Bolus";

/* Max setting */
"Max Carbs" = "Max Carbs";

/* Max setting */
"Max Fat" = "Max Fat";

/* Max setting */
"Max Protein" = "Max Protein";

/* Max setting */
"Limit Per Entry" = "Limit Per Entry";

/* Max Carbs limit exceeded */
"Max Carbs of" = "Max Carbs of";

/* Max Fat limit exceeded */
"Max Fat of" = "Max Fat of";

/* Max Protein limit exceeded */
"Max Protein of" = "Max Protein of";

/* Max Bolus limit exceeded */
"Max Bolus of" = "Max Bolus of";

/* Limit Exceeded label */
"exceeded" = "exceeded";

/* */
"Pump Settings" = "Pump Settings";

Expand Down
27 changes: 24 additions & 3 deletions FreeAPS/Sources/Localizations/Main/da.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,30 @@ Enact a temp Basal or a temp target */
/* Max setting */
"Max Carbs" = "Maks Kulhydrater";

/* Max setting */
"Max Fat" = "Max Fat";

/* Max setting */
"Max Protein" = "Max Protein";

/* Max setting */
"Limit Per Entry" = "Limit Per Entry";

/* Max Carbs limit exceeded */
"Max Carbs of" = "Max Carbs of";

/* Max Fat limit exceeded */
"Max Fat of" = "Max Fat of";

/* Max Protein limit exceeded */
"Max Protein of" = "Max Protein of";

/* Max Bolus limit exceeded */
"Max Bolus of" = "Max Bolus of";

/* Limit Exceeded label */
"exceeded" = "exceeded";

/* */
"Pump Settings" = "Pumpe Indstillinger";

Expand Down Expand Up @@ -1052,9 +1076,6 @@ Enact a temp Basal or a temp target */
/* */
"Bolus failed" = "Bolus failed";

/* "Max Bolus Exceeded label" */
"Max Bolus exceeded!" = "Max Bolus exceeded!";

/* */
"Bolus failed or inaccurate. Check pump history before repeating." = "Bolus failed or inaccurate. Check pump history before repeating.";

Expand Down
27 changes: 24 additions & 3 deletions FreeAPS/Sources/Localizations/Main/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,30 @@ Enact a temp Basal or a temp target */
/* Max setting */
"Max Carbs" = "Max Kohlenhydrate";

/* Max setting */
"Max Fat" = "Max Fat";

/* Max setting */
"Max Protein" = "Max Protein";

/* Max setting */
"Limit Per Entry" = "Limit Per Entry";

/* Max Carbs limit exceeded */
"Max Carbs of" = "Max Carbs of";

/* Max Fat limit exceeded */
"Max Fat of" = "Max Fat of";

/* Max Protein limit exceeded */
"Max Protein of" = "Max Protein of";

/* Max Bolus limit exceeded */
"Max Bolus of" = "Max Bolus of";

/* Limit Exceeded label */
"exceeded" = "exceeded";

/* */
"Pump Settings" = "Pumpeneinstellungen";

Expand Down Expand Up @@ -1055,9 +1079,6 @@ Enact a temp Basal or a temp target */
/* */
"Bolus failed" = "Bolus fehlgeschlagen";

/* "Max Bolus Exceeded label" */
"Max Bolus exceeded!" = "Maximaler Bolus überschritten!";

/* */
"Bolus failed or inaccurate. Check pump history before repeating." = "Bolus ist fehlgeschlagen oder ungenau. Prüfe den Pumpenverlauf vor einer erneuten Abgabe.";

Expand Down
27 changes: 24 additions & 3 deletions FreeAPS/Sources/Localizations/Main/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,30 @@ Enact a temp Basal or a temp target */
/* Max setting */
"Max Carbs" = "Max Carbs";

/* Max setting */
"Max Fat" = "Max Fat";

/* Max setting */
"Max Protein" = "Max Protein";

/* Max setting */
"Limit Per Entry" = "Limit Per Entry";

/* Max Carbs limit exceeded */
"Max Carbs of" = "Max Carbs of";

/* Max Fat limit exceeded */
"Max Fat of" = "Max Fat of";

/* Max Protein limit exceeded */
"Max Protein of" = "Max Protein of";

/* Max Bolus limit exceeded */
"Max Bolus of" = "Max Bolus of";

/* Limit Exceeded label */
"exceeded" = "exceeded";

/* */
"Pump Settings" = "Pump Settings";

Expand Down Expand Up @@ -1052,9 +1076,6 @@ Enact a temp Basal or a temp target */
/* */
"Bolus failed" = "Bolus failed";

/* "Max Bolus Exceeded label" */
"Max Bolus exceeded!" = "Max Bolus exceeded!";

/* */
"Bolus failed or inaccurate. Check pump history before repeating." = "Bolus failed or inaccurate. Check pump history before repeating.";

Expand Down
27 changes: 24 additions & 3 deletions FreeAPS/Sources/Localizations/Main/es.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,30 @@ Enact a temp Basal or a temp target */
/* Max setting */
"Max Carbs" = "Max Carbs";

/* Max setting */
"Max Fat" = "Max Fat";

/* Max setting */
"Max Protein" = "Max Protein";

/* Max setting */
"Limit Per Entry" = "Limit Per Entry";

/* Max Carbs limit exceeded */
"Max Carbs of" = "Max Carbs of";

/* Max Fat limit exceeded */
"Max Fat of" = "Max Fat of";

/* Max Protein limit exceeded */
"Max Protein of" = "Max Protein of";

/* Max Bolus limit exceeded */
"Max Bolus of" = "Max Bolus of";

/* Limit Exceeded label */
"exceeded" = "exceeded";

/* */
"Pump Settings" = "Configuración de la bomba";

Expand Down Expand Up @@ -1051,9 +1075,6 @@ Enact a temp Basal or a temp target */
/* */
"Bolus failed" = "Bolus failed";

/* "Max Bolus Exceeded label" */
"Max Bolus exceeded!" = "¡Bolo máximo superado!";

/* */
"Bolus failed or inaccurate. Check pump history before repeating." = "Bolus failed or inaccurate. Check pump history before repeating.";

Expand Down
27 changes: 24 additions & 3 deletions FreeAPS/Sources/Localizations/Main/fi.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,30 @@ Enact a temp Basal or a temp target */
/* Max setting */
"Max Carbs" = "Max Carbs";

/* Max setting */
"Max Fat" = "Max Fat";

/* Max setting */
"Max Protein" = "Max Protein";

/* Max setting */
"Limit Per Entry" = "Limit Per Entry";

/* Max Carbs limit exceeded */
"Max Carbs of" = "Max Carbs of";

/* Max Fat limit exceeded */
"Max Fat of" = "Max Fat of";

/* Max Protein limit exceeded */
"Max Protein of" = "Max Protein of";

/* Max Bolus limit exceeded */
"Max Bolus of" = "Max Bolus of";

/* Limit Exceeded label */
"exceeded" = "exceeded";

/* */
"Pump Settings" = "Pump Settings";

Expand Down Expand Up @@ -1052,9 +1076,6 @@ Enact a temp Basal or a temp target */
/* */
"Bolus failed" = "Bolus failed";

/* "Max Bolus Exceeded label" */
"Max Bolus exceeded!" = "Max Bolus exceeded!";

/* */
"Bolus failed or inaccurate. Check pump history before repeating." = "Bolus failed or inaccurate. Check pump history before repeating.";

Expand Down
27 changes: 24 additions & 3 deletions FreeAPS/Sources/Localizations/Main/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,30 @@ Enact a temp Basal or a temp target */
/* Max setting */
"Max Carbs" = "Glucides max";

/* Max setting */
"Max Fat" = "Max Fat";

/* Max setting */
"Max Protein" = "Max Protein";

/* Max setting */
"Limit Per Entry" = "Limit Per Entry";

/* Max Carbs limit exceeded */
"Max Carbs of" = "Max Carbs of";

/* Max Fat limit exceeded */
"Max Fat of" = "Max Fat of";

/* Max Protein limit exceeded */
"Max Protein of" = "Max Protein of";

/* Max Bolus limit exceeded */
"Max Bolus of" = "Max Bolus of";

/* Limit Exceeded label */
"exceeded" = "exceeded";

/* */
"Pump Settings" = "Paramètres de la pompe";

Expand Down Expand Up @@ -1052,9 +1076,6 @@ Enact a temp Basal or a temp target */
/* */
"Bolus failed" = "Échec du Bolus";

/* "Max Bolus Exceeded label" */
"Max Bolus exceeded!" = "Bolus max dépassé!";

/* */
"Bolus failed or inaccurate. Check pump history before repeating." = "Bolus échoué ou imprécis. Vérifier l’historique de la pompe avant recommencer.";

Expand Down
27 changes: 24 additions & 3 deletions FreeAPS/Sources/Localizations/Main/he.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,30 @@ Enact a temp Basal or a temp target */
/* Max setting */
"Max Carbs" = "Max Carbs";

/* Max setting */
"Max Fat" = "Max Fat";

/* Max setting */
"Max Protein" = "Max Protein";

/* Max setting */
"Limit Per Entry" = "Limit Per Entry";

/* Max Carbs limit exceeded */
"Max Carbs of" = "Max Carbs of";

/* Max Fat limit exceeded */
"Max Fat of" = "Max Fat of";

/* Max Protein limit exceeded */
"Max Protein of" = "Max Protein of";

/* Max Bolus limit exceeded */
"Max Bolus of" = "Max Bolus of";

/* Limit Exceeded label */
"exceeded" = "exceeded";

/* */
"Pump Settings" = "Pump Settings";

Expand Down Expand Up @@ -1052,9 +1076,6 @@ Enact a temp Basal or a temp target */
/* */
"Bolus failed" = "Bolus failed";

/* "Max Bolus Exceeded label" */
"Max Bolus exceeded!" = "Max Bolus exceeded!";

/* */
"Bolus failed or inaccurate. Check pump history before repeating." = "Bolus failed or inaccurate. Check pump history before repeating.";

Expand Down
Loading

0 comments on commit 4d6e102

Please sign in to comment.