extract strings from overview preferences

This commit is contained in:
Milos Kozak 2018-04-21 21:37:50 +02:00
parent cab592efb5
commit 1f55078aa3
2 changed files with 17 additions and 10 deletions

View file

@ -1006,4 +1006,11 @@
<string name="overview_show_notes_field_in_dialogs_title">Show notes field in treatment dialogs</string>
<string name="key_openapsama_min_5m_carbimpact" translatable="false">openapsama_min_5m_carbimpact</string>
<string name="boluserrorcode">Asked: %.2fU Delivered: %.2fU Error code: %d</string>
<string name="firstinsulinincrement">First insulin increment</string>
<string name="secondinsulinincrement">Second insulin increment</string>
<string name="thirdinsulinincrement">Third insulin increment</string>
<string name="firstcarbsincrement">First carbs increment</string>
<string name="secondcarbsincrement">Second carbs increment</string>
<string name="thirdcarbsincrement">Third carbs increment</string>
<string name="cgm">CGM</string>
</resources>

View file

@ -9,7 +9,7 @@
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_show_treatment_button"
android:title="Treatments" />
android:title="@string/treatments" />
<SwitchPreference
android:defaultValue="true"
@ -19,7 +19,7 @@
<SwitchPreference
android:defaultValue="true"
android:key="@string/key_show_insulin_button"
android:title="Insulin" />
android:title="@string/configbuilder_insulin" />
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="0.5"
@ -30,7 +30,7 @@
android:maxLines="20"
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="First insulin increment"
android:title="@string/firstinsulinincrement"
validate:floatmaxNumber="5.0"
validate:floatminNumber="-5.0"
validate:testType="floatNumericRange" />
@ -44,7 +44,7 @@
android:maxLines="20"
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="Second insulin increment"
android:title="@string/secondinsulinincrement"
validate:floatmaxNumber="5.0"
validate:floatminNumber="-5.0"
validate:testType="floatNumericRange" />
@ -58,7 +58,7 @@
android:maxLines="20"
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="Third insulin increment"
android:title="@string/thirdinsulinincrement"
validate:floatmaxNumber="5.0"
validate:floatminNumber="-5.0"
validate:testType="floatNumericRange" />
@ -66,7 +66,7 @@
<SwitchPreference
android:defaultValue="true"
android:key="@string/key_show_carbs_button"
android:title="Carbs" />
android:title="@string/carbs" />
<com.andreabaccega.widget.ValidatingEditTextPreference
android:defaultValue="5"
@ -77,7 +77,7 @@
android:maxLines="20"
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="First carbs increment"
android:title="@string/firstcarbsincrement"
validate:maxNumber="50"
validate:minNumber="-50"
validate:testType="numericRange" />
@ -91,7 +91,7 @@
android:maxLines="20"
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="Second carbs increment"
android:title="@string/secondcarbsincrement"
validate:maxNumber="50"
validate:minNumber="-50"
validate:testType="numericRange" />
@ -105,7 +105,7 @@
android:maxLines="20"
android:selectAllOnFocus="true"
android:singleLine="true"
android:title="Third carbs increment"
android:title="@string/thirdcarbsincrement"
validate:maxNumber="50"
validate:minNumber="-50"
validate:testType="numericRange" />
@ -114,7 +114,7 @@
android:defaultValue="false"
android:key="@string/key_show_cgm_button"
android:summary="@string/show_cgm_button_summary"
android:title="CGM" />
android:title="@string/cgm" />
<SwitchPreference
android:defaultValue="true"