From a1d93b0d68a5cf2a680742f015a2a7ca189b7319 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 8 Apr 2019 12:06:34 +0200 Subject: [PATCH] LINT: fix errors in strings --- app/src/main/res/values/strings.xml | 22 +++++++++++----------- app/src/test/java/info/AAPSMocker.java | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3476d14b88..79d626f9be 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -8,7 +8,7 @@ Reset Databases Do you really want to reset the databases? Exit - Use extended boluses for >200% + Use extended boluses for >200%% DanaR Bluetooth device Always use basal absolute values Please reboot your phone or restart AndroidAPS from the System Settings \notherwise Android APS will not have logging (important to track and verify that the algorithms are working correctly)! @@ -342,7 +342,7 @@ Stop STOP PRESSED Waiting for pump - Going to deliver %.2fU + Going to deliver %1$.2fU Setting up visualization and monitoring, and analyzing basals and ratios Verify that BG is available in Nightscout, and pump insulin data is being uploaded Starting on an open loop @@ -365,7 +365,7 @@ Loop is disabled Loop is enabled %1$.2f limited to %2$.2f - Value %s is out of hard limits + Value %1$s is out of hard limits Remote command is not allowed Remote bolus not available. Try again later. To start basal %1$.2fU/h for %2$d min reply with code %3$s @@ -496,7 +496,7 @@ Default value: 3 This is a key OpenAPS safety cap. What this does is limit your basals to be 3x (in this people) your biggest basal rate. You likely will not need to change this, but you should be aware that’s what is discussed about “3x max daily; 4x current” for safety caps. Default value: 4 This is the other half of the key OpenAPS safety caps, and the other half of “3x max daily; 4x current” of the safety caps. This means your basal, regardless of max basal set on your pump, cannot be any higher than this number times the current level of your basal. This is to prevent people from getting into dangerous territory by setting excessively high max basals before understanding how the algorithm works. Again, the default is 4x; most people will never need to adjust this and are instead more likely to need to adjust other settings if they feel like they are “running into” this safety cap. autosens_max - Default value: 1.2\nThis is a multiplier cap for autosens (and soon autotune) to set a 20% max limit on how high the autosens ratio can be, which in turn determines how high autosens can adjust basals, how low it can adjust ISF, and how low it can set the BG target. + Default value: 1.2\nThis is a multiplier cap for autosens (and soon autotune) to set a 20%% max limit on how high the autosens ratio can be, which in turn determines how high autosens can adjust basals, how low it can adjust ISF, and how low it can set the BG target. autosens_min Default value: 0.7\nThe other side of the autosens safety limits, putting a cap on how low autosens can adjust basals, and how high it can adjust ISF and BG targets. autosens_adjust_targets @@ -514,7 +514,7 @@ Phone number not valid Invalid SMS phone number Calibration - Send calibration %.1f to xDrip? + Send calibration %1$.1f to xDrip? xDrip+ not installed Calibration sent to xDrip Calibration sent. Receiving must be enabled in xDrip. @@ -695,7 +695,7 @@ Meal max absorption time [h] Time in hours where is expected all carbs from meal will be absorbed rangetodisplay - Visualize extended bolus as % + Visualize extended bolus as %% SAGE IAGE CAGE @@ -835,8 +835,8 @@ dexcomg5_xdripupload In xDrip+ select 640g/Eversense data source NSClient BG - Basal value replaced by minimal supported value: %s - Basal value replaced by maximum supported value: %s + Basal value replaced by minimal supported value: %1$s + Basal value replaced by maximum supported value: %1$s BG calculation Bolus IOB calculation Basal IOB calculation @@ -854,8 +854,8 @@ Closed mode enabled Maximal IOB set properly BG available from selected source - Basal values not aligned to hours: %s - Invalid profile: %s + Basal values not aligned to hours: %1$s + Invalid profile: %1$s Programming pump for bolusing Refresh State @@ -1258,7 +1258,7 @@ Log operating mode changes Log alerts Enable TBR emulation - Use extended boluses instead of TBRs to bypass the 250% limit + Use extended boluses instead of TBRs to bypass the 250%% limit Disconnect delay [s] Serial number Release software version diff --git a/app/src/test/java/info/AAPSMocker.java b/app/src/test/java/info/AAPSMocker.java index 7d4884bb96..850affa224 100644 --- a/app/src/test/java/info/AAPSMocker.java +++ b/app/src/test/java/info/AAPSMocker.java @@ -103,7 +103,7 @@ public class AAPSMocker { when(MainApp.gs(R.string.absolute)).thenReturn("Absolute"); when(MainApp.gs(R.string.waitingforpumpresult)).thenReturn("Waiting for result"); when(MainApp.gs(R.string.insulin_unit_shortname)).thenReturn("U"); - when(MainApp.gs(R.string.minimalbasalvaluereplaced)).thenReturn("Basal value replaced by minimal supported value"); + when(MainApp.gs(R.string.minimalbasalvaluereplaced)).thenReturn("Basal value replaced by minimal supported value: %1$s"); when(MainApp.gs(R.string.basalprofilenotaligned)).thenReturn("Basal values not aligned to hours: %s"); when(MainApp.gs(R.string.minago)).thenReturn("%d min ago"); when(MainApp.gs(R.string.hoursago)).thenReturn("%.1fh ago");