From 2210df269b023255e3ee16970c362cb60c9126c6 Mon Sep 17 00:00:00 2001 From: cod Date: Wed, 10 Jun 2020 21:38:03 +0200 Subject: [PATCH] Added ita/eng localization for field label (#1); --- resources-eng/strings/strings.xml | 3 +++ resources-ita/strings/strings.xml | 3 +++ source/lapElevationView.mc | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 resources-eng/strings/strings.xml create mode 100644 resources-ita/strings/strings.xml diff --git a/resources-eng/strings/strings.xml b/resources-eng/strings/strings.xml new file mode 100644 index 0000000..252fdb6 --- /dev/null +++ b/resources-eng/strings/strings.xml @@ -0,0 +1,3 @@ + + Lap Elevation + diff --git a/resources-ita/strings/strings.xml b/resources-ita/strings/strings.xml new file mode 100644 index 0000000..fb13aef --- /dev/null +++ b/resources-ita/strings/strings.xml @@ -0,0 +1,3 @@ + + Disl. Lap + diff --git a/source/lapElevationView.mc b/source/lapElevationView.mc index eac5704..9ec26f2 100644 --- a/source/lapElevationView.mc +++ b/source/lapElevationView.mc @@ -10,7 +10,7 @@ class lapElevationView extends WatchUi.SimpleDataField { function initialize() { SimpleDataField.initialize(); //label = "Lap Elevation"; //Rez.Strings.FieldName; - label = "Lap Elevation"; + label = WatchUi.loadResource(Rez.Strings.AppName); elevation = 0; prev_altitude = 0; record = false;