From 4de010b1a270868faa04069297f0b87ebcba0a7e Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Thu, 19 Oct 2017 16:03:07 +0200 Subject: [PATCH] Strings reuse for pumps. --- .../plugins/Overview/OverviewFragment.java | 4 +- app/src/main/res/layout/danar_fragment.xml | 14 +++--- .../main/res/layout/danar_statsactivity.xml | 2 +- .../layout/overview_newtempbasal_dialog.xml | 2 +- .../main/res/layout/vitualpump_fragment.xml | 4 +- app/src/main/res/values-bg/strings.xml | 14 +++--- app/src/main/res/values-cs/strings.xml | 14 +++--- app/src/main/res/values-de/strings.xml | 14 +++--- app/src/main/res/values-es/strings.xml | 10 ++-- app/src/main/res/values-it/strings.xml | 14 +++--- app/src/main/res/values-ko/strings.xml | 48 ++++++++++++++++--- app/src/main/res/values-nl/strings.xml | 14 +++--- app/src/main/res/values-ru/strings.xml | 14 +++--- app/src/main/res/values-sv/strings.xml | 12 ++--- app/src/main/res/values/strings.xml | 14 +++--- 15 files changed, 114 insertions(+), 80 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index 589e887678..0328b95d2b 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -1053,9 +1053,9 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, baseBasalView.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { - String fullText = MainApp.sResources.getString(R.string.virtualpump_basebasalrate_label) + ": " + DecimalFormatter.to2Decimal(MainApp.getConfigBuilder().getProfile().getBasal()) + "U/h\n"; + String fullText = MainApp.sResources.getString(R.string.pump_basebasalrate_label) + ": " + DecimalFormatter.to2Decimal(MainApp.getConfigBuilder().getProfile().getBasal()) + "U/h\n"; if (activeTemp != null) { - fullText += MainApp.sResources.getString(R.string.virtualpump_tempbasal_label) + ": " + activeTemp.toStringFull(); + fullText += MainApp.sResources.getString(R.string.pump_tempbasal_label) + ": " + activeTemp.toStringFull(); } OKDialog.show(getActivity(), MainApp.sResources.getString(R.string.basal), fullText, null); } diff --git a/app/src/main/res/layout/danar_fragment.xml b/app/src/main/res/layout/danar_fragment.xml index 29c9398a04..028f065ae0 100644 --- a/app/src/main/res/layout/danar_fragment.xml +++ b/app/src/main/res/layout/danar_fragment.xml @@ -97,7 +97,7 @@ android:layout_weight="1" android:gravity="end" android:paddingRight="5dp" - android:text="@string/danar_bluetooth_status" + android:text="@string/pump_bluetooth_status" android:textSize="14sp" /> + android:text="@string/pump_history" />