mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-04 01:09:47 +01:00
Made Mi Band preferences localizable
This commit is contained in:
parent
8112d4afd8
commit
ab5d5f6c6f
@ -92,5 +92,11 @@
|
||||
<string name="discovery_connected_devices_hint">Currently connected devices will likely not be discovered.</string>
|
||||
<string name="discovery_note">Note:</string>
|
||||
<string name="candidate_item_device_image">Device Image</string>
|
||||
<string name="miband_prefs_about_you">About You</string>
|
||||
<string name="miband_prefs_alias">Name/Alias</string>
|
||||
<string name="miband_prefs_year_birth">Year of Birth</string>
|
||||
<string name="miband_prefs_gender">Gender</string>
|
||||
<string name="miband_prefs_height_cm">Height in cm</string>
|
||||
<string name="miband_prefs_weight_kg">Weight in kg</string>
|
||||
|
||||
</resources>
|
||||
|
@ -2,37 +2,37 @@
|
||||
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<PreferenceCategory
|
||||
android:key="pref_category_miband_personal"
|
||||
android:title="About You">
|
||||
android:title="@string/miband_prefs_about_you">
|
||||
<EditTextPreference
|
||||
android:key="mi_user_alias"
|
||||
android:maxLength="17"
|
||||
android:title="Name/Alias" />
|
||||
android:title="@string/miband_prefs_alias" />
|
||||
|
||||
<EditTextPreference
|
||||
android:key="mi_user_year_of_birth"
|
||||
android:digits="0123456789"
|
||||
android:maxLength="4"
|
||||
android:title="Year of Birth" />
|
||||
android:title="@string/miband_prefs_year_birth" />
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="male"
|
||||
android:entries="@array/gender"
|
||||
android:entryValues="@array/gender_values"
|
||||
android:key="mi_user_gender"
|
||||
android:title="Gender" />
|
||||
android:title="@string/miband_prefs_gender" />
|
||||
|
||||
<!--TODO: support localized heights and weights -->
|
||||
<EditTextPreference
|
||||
android:key="mi_user_height_cm"
|
||||
android:digits="0123456789"
|
||||
android:maxLength="3"
|
||||
android:title="Height in cm" />
|
||||
android:title="@string/miband_prefs_height_cm" />
|
||||
|
||||
<EditTextPreference
|
||||
android:key="mi_user_weight_kg"
|
||||
android:digits="0123456789"
|
||||
android:maxLength="3"
|
||||
android:title="Weight in kg" />
|
||||
android:title="@string/miband_prefs_weight_kg" />
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user