From 896503918c926b9e905d36555beecde890d0e72b Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Tue, 29 Nov 2016 15:01:00 +0100 Subject: [PATCH] wear extract strings --- .../androidaps/plugins/Wear/WearPlugin.java | 3 ++- app/src/main/res/layout/wear_fragment.xml | 4 ++-- app/src/main/res/values/strings.xml | 7 +++++++ app/src/main/res/xml/pref_others.xml | 8 ++++---- wear/wear.iml | 16 ++++++++-------- 5 files changed, 23 insertions(+), 15 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/WearPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/WearPlugin.java index a771607336..4685d3b634 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Wear/WearPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Wear/WearPlugin.java @@ -6,6 +6,7 @@ import android.content.Intent; import com.squareup.otto.Subscribe; import info.nightscout.androidaps.MainApp; +import info.nightscout.androidaps.R; import info.nightscout.androidaps.events.EventNewBG; import info.nightscout.androidaps.events.EventNewBasalProfile; import info.nightscout.androidaps.events.EventPreferenceChange; @@ -44,7 +45,7 @@ public class WearPlugin implements PluginBase { @Override public String getName() { - return "Wear"; + return ctx.getString(R.string.wear); } @Override diff --git a/app/src/main/res/layout/wear_fragment.xml b/app/src/main/res/layout/wear_fragment.xml index e8ab87bcf9..e07b818bd2 100644 --- a/app/src/main/res/layout/wear_fragment.xml +++ b/app/src/main/res/layout/wear_fragment.xml @@ -19,7 +19,7 @@ android:layout_marginRight="10dp" android:layout_marginTop="3dp" android:layout_weight="0.5" - android:text="Resend All Data" + android:text="@string/resend_all_data" android:textColor="@color/colorTreatmentButton" />