From 0eec76c15c9ea834f706facac86a32c8b8e6a5c6 Mon Sep 17 00:00:00 2001 From: Navid Date: Wed, 30 Oct 2024 09:56:10 -0400 Subject: [PATCH] Translate --- app/prod/release/output-metadata.json | 20 +++++++++++++++++++ .../dexdrip/utils/Preferences.java | 2 +- app/src/main/res/values/strings.xml | 2 ++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 app/prod/release/output-metadata.json diff --git a/app/prod/release/output-metadata.json b/app/prod/release/output-metadata.json new file mode 100644 index 0000000000..005a7be332 --- /dev/null +++ b/app/prod/release/output-metadata.json @@ -0,0 +1,20 @@ +{ + "version": 3, + "artifactType": { + "type": "APK", + "kind": "Directory" + }, + "applicationId": "com.eveningoutpost.dexdrip", + "variantName": "prodRelease", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "attributes": [], + "versionCode": 1603091400, + "versionName": "11710ebe5-Navid_2024_10_15b-2024.10.30", + "outputFile": "app-prod-release.apk" + } + ], + "elementType": "File" +} \ No newline at end of file diff --git a/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java b/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java index 2baf1acf18..380a6b2987 100644 --- a/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java +++ b/app/src/main/java/com/eveningoutpost/dexdrip/utils/Preferences.java @@ -761,7 +761,7 @@ public boolean onPreferenceChange(Preference preference, Object value) { final boolean domgdl = Pref.getString("units", "mgdl").equals("mgdl"); // Identify which unit is chosen double submissionMgdl = domgdl ? tolerantParseDouble(stringValue) : tolerantParseDouble(stringValue) * Constants.MMOLL_TO_MGDL; if (submissionMgdl > MAX_GLUCOSE_INPUT || submissionMgdl < MIN_GLUCOSE_INPUT) { - JoH.static_toast_long("The value must be between " + unitsConvert2Disp(domgdl, MIN_GLUCOSE_INPUT) + " and " + unitsConvert2Disp(domgdl, MAX_GLUCOSE_INPUT)); + JoH.static_toast_long(xdrip.gs(R.string.the_value_must_be_between_space) + unitsConvert2Disp(domgdl, MIN_GLUCOSE_INPUT) + xdrip.gs(R.string.space_and_space) + unitsConvert2Disp(domgdl, MAX_GLUCOSE_INPUT)); return false; } preference.setSummary(stringValue + " " + (domgdl ? "mg/dl" : "mmol/l")); // Set the summary to show the value followed by the chosen unit diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 124349aa02..90b7486e61 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -243,6 +243,8 @@ Persistent High Alert Enable Threshold + "The value must be between " + " and " Forecasted Low Alert Extrapolate data to try to predict lows Alarm at Forecasted Low mins