1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 14:52:25 +02:00

Fossil Hybrid HR: Make hardcoded strings translatable

This commit is contained in:
Arjan Schrijver 2021-07-16 12:24:33 +02:00 committed by Gitea
parent ceddaa0e8a
commit 3645e36ab6
5 changed files with 24 additions and 12 deletions

View File

@ -620,7 +620,7 @@
android:parentActivityName=".devices.qhybrid.HRConfigActivity" />
<activity
android:name=".devices.qhybrid.HybridHRWatchfaceDesignerActivity"
android:label="Watchface designer"
android:label="@string/qhybrid_title_watchface_designer"
android:parentActivityName=".activities.appmanager.AppManagerActivity" />
<activity
android:name=".devices.um25.Activity.DataActivity"

View File

@ -7,7 +7,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Type:" />
android:text="@string/watchface_dialog_widget_type" />
<Spinner
android:id="@+id/watchface_widget_type_spinner"
@ -17,7 +17,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="X coordinate (max 240):" />
android:text="@string/watchface_dialog_widget_x_coordinate" />
<EditText
android:id="@+id/watchface_widget_pos_x"
@ -28,7 +28,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Y coordinate (max 240):" />
android:text="@string/watchface_dialog_widget_y_coordinate" />
<EditText
android:id="@+id/watchface_widget_pos_y"
@ -39,7 +39,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Position presets:" />
android:text="@string/watchface_dialog_widget_presets" />
<LinearLayout
android:layout_width="match_parent"
@ -48,22 +48,22 @@
android:id="@+id/watchface_widget_preset_top"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Top"/>
android:text="@string/watchface_dialog_widget_preset_top"/>
<Button
android:id="@+id/watchface_widget_preset_bottom"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bottom"/>
android:text="@string/watchface_dialog_widget_preset_bottom"/>
<Button
android:id="@+id/watchface_widget_preset_left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Left"/>
android:text="@string/watchface_dialog_widget_preset_left"/>
<Button
android:id="@+id/watchface_widget_preset_right"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Right"/>
android:text="@string/watchface_dialog_widget_preset_right"/>
</LinearLayout>
</LinearLayout>

View File

@ -2,13 +2,13 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/button_preview_watchface"
android:title="Preview on watch"
android:title="@string/button_watchface_preview"
app:showAsAction="always"
android:icon="@drawable/ic_watch_bw"
/>
<item
android:id="@+id/button_save_watchface"
android:title="Save and apply"
android:title="@string/button_watchface_save_apply"
app:showAsAction="always"
android:icon="@drawable/ic_done"
/>

View File

@ -2,7 +2,7 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="@+id/appmanager_app_edit"
android:title="Edit"/>
android:title="@string/appmanager_app_edit"/>
<item
android:id="@+id/appmanager_app_reinstall"
android:title="@string/appmananger_app_reinstall"/>

View File

@ -1215,4 +1215,16 @@
<string name="watchface_widget_type_weather">Weather</string>
<string name="watchface_widget_type_steps">Steps</string>
<string name="watchface_widget_type_heart_rate">Heart rate</string>
<string name="button_watchface_preview">Preview on watch</string>
<string name="button_watchface_save_apply">Save and apply</string>
<string name="appmanager_app_edit">Edit</string>
<string name="watchface_dialog_widget_type">Type:</string>
<string name="watchface_dialog_widget_x_coordinate">X coordinate (max 240):</string>
<string name="watchface_dialog_widget_y_coordinate">Y coordinate (max 240):</string>
<string name="watchface_dialog_widget_presets">Position presets:</string>
<string name="watchface_dialog_widget_preset_top">Top</string>
<string name="watchface_dialog_widget_preset_bottom">Bottom</string>
<string name="watchface_dialog_widget_preset_left">Left</string>
<string name="watchface_dialog_widget_preset_right">Right</string>
<string name="qhybrid_title_watchface_designer">Watchface designer</string>
</resources>