Skip to content

Commit

Permalink
Add translation for "ms" strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan committed Oct 23, 2023
1 parent 68d67a8 commit 7a97406
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class SlidePreferences(context: Context, attrs: AttributeSet) : DialogPreference

init {
data = SliderData(
suffix = attrs.getAttributeValue(ATTRIBUTE_NAMESPACE, "text"),
suffix = context.getString(attrs.getAttributeResourceValue(ATTRIBUTE_NAMESPACE, "text", -1)),
default = attrs.getAttributeIntValue(ATTRIBUTE_NAMESPACE, "defaultValue", 30),
minimum = attrs.getAttributeIntValue(ATTRIBUTE_NAMESPACE, "min", 0),
maximum = attrs.getAttributeIntValue(ATTRIBUTE_NAMESPACE, "max", 80),
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ Russian by Ivan Karev (karev.ivan@gmail.com)\n
<string name="animation_interval_duration_summary">Временной отрезок анимации, час</string>
<string name="ok">Ок</string>
<string name="cancel">Отмена</string>
<string name="ms">мс</string>
<string-array name="animation_interval_durations">
<item>2 часа</item>
<item>4 часа</item>
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ Russian by Ivan Karev (karev.ivan@gmail.com)\n
<string name="animation_cycle_sleep_duration_summary">Sleep time after animation cycle has finished (in milliseconds)</string>
<string name="animation_interval_duration">Animation interval</string>
<string name="animation_interval_duration_summary">Size of the interval of the animation cycle in hours</string>
<string name="ms">ms</string>
<string name="percent" translatable="false">%</string>
<string-array name="animation_interval_durations">
<item>2 h</item>
<item>4 h</item>
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
android:persistent="true"
android:selectable="true"
android:summary="@string/map_scale_summary"
android:text="%"
android:text="@string/percent"
android:title="@string/map_scale" />
<org.blitzortung.android.preferences.SlidePreferences
android:defaultValue="55"
Expand All @@ -73,7 +73,7 @@
android:persistent="true"
android:selectable="true"
android:summary="@string/map_fade_summary"
android:text="%"
android:text="@string/percent"
android:title="@string/map_fade" />
<ListPreference
android:defaultValue="BLITZORTUNG"
Expand Down Expand Up @@ -105,7 +105,7 @@
android:max="400"
android:selectable="true"
android:persistent="true"
android:text="%"
android:text="@string/percent"
min="50"
/>
</PreferenceScreen>
Expand Down Expand Up @@ -140,7 +140,7 @@
android:max="500"
android:selectable="true"
android:persistent="true"
android:text="ms"
android:text="@string/ms"
android:min="100"
step="50"
/>
Expand All @@ -152,7 +152,7 @@
android:max="5000"
android:selectable="true"
android:persistent="true"
android:text="ms"
android:text="@string/ms"
android:min="0"
step="500"
/>
Expand Down Expand Up @@ -298,7 +298,7 @@
android:persistent="true"
android:selectable="true"
android:summary="@string/alarm_vibration_signal_summary"
android:text=""
android:text="@string/ms"
android:title="@string/alarm_vibration_signal" />
</PreferenceScreen>
<ListPreference
Expand Down

0 comments on commit 7a97406

Please sign in to comment.