1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 20:36:51 +01:00

Made Mi Band preferences localizable

This commit is contained in:
cpfeiffer 2015-05-09 21:43:04 +02:00
parent 8112d4afd8
commit ab5d5f6c6f
2 changed files with 12 additions and 6 deletions

View File

@ -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>

View File

@ -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>