Localize duration strings used in feed settings using plurals
This commit is contained in:
parent
b62142db82
commit
ac44ed0862
7 changed files with 119 additions and 14 deletions
|
|
@ -182,8 +182,9 @@
|
|||
<string name="enable_lock_screen_video_thumbnail_key" translatable="false">enable_lock_screen_video_thumbnail</string>
|
||||
|
||||
<string name="feed_update_threshold_key" translatable="false">feed_update_threshold_key</string>
|
||||
<string name="feed_update_threshold_default_value" translatable="false">5</string>
|
||||
<string name="feed_update_threshold_default_value" translatable="false">300</string>
|
||||
|
||||
<!-- Values will be localized in runtime -->
|
||||
<string-array name="feed_update_threshold_options" translatable="false">
|
||||
<item>@string/feed_update_threshold_option_always_update</item>
|
||||
<item>5 minutes</item>
|
||||
|
|
@ -193,14 +194,15 @@
|
|||
<item>12 hours</item>
|
||||
<item>1 day</item>
|
||||
</string-array>
|
||||
<!-- Threshold values in seconds -->
|
||||
<string-array name="feed_update_threshold_values" translatable="false">
|
||||
<item>0</item>
|
||||
<item>5</item>
|
||||
<item>15</item>
|
||||
<item>60</item>
|
||||
<item>360</item>
|
||||
<item>720</item>
|
||||
<item>1440</item>
|
||||
<item>300</item>
|
||||
<item>900</item>
|
||||
<item>3600</item>
|
||||
<item>21600</item>
|
||||
<item>43200</item>
|
||||
<item>86400</item>
|
||||
</string-array>
|
||||
<string name="feed_use_dedicated_fetch_method_key" translatable="false">feed_use_dedicated_fetch_method</string>
|
||||
|
||||
|
|
|
|||
|
|
@ -598,6 +598,27 @@
|
|||
<item quantity="other">%s seconds</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Time duration plurals -->
|
||||
<plurals name="seconds">
|
||||
<item quantity="one">%d second</item>
|
||||
<item quantity="other">%d seconds</item>
|
||||
</plurals>
|
||||
|
||||
<plurals name="minutes">
|
||||
<item quantity="one">%d minute</item>
|
||||
<item quantity="other">%d minutes</item>
|
||||
</plurals>
|
||||
|
||||
<plurals name="hours">
|
||||
<item quantity="one">%d hour</item>
|
||||
<item quantity="other">%d hours</item>
|
||||
</plurals>
|
||||
|
||||
<plurals name="days">
|
||||
<item quantity="one">%d day</item>
|
||||
<item quantity="other">%d days</item>
|
||||
</plurals>
|
||||
|
||||
<!-- Feed -->
|
||||
<string name="fragment_feed_title">What\'s New</string>
|
||||
<string name="feed_groups_header_title">Feed groups</string>
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@
|
|||
android:layout="@layout/settings_category_header_layout"
|
||||
android:title="@string/settings_category_feed_title">
|
||||
|
||||
<ListPreference
|
||||
<org.schabi.newpipe.settings.custom.DurationListPreference
|
||||
app:iconSpaceReserved="false"
|
||||
android:key="@string/feed_update_threshold_key"
|
||||
android:defaultValue="@string/feed_update_threshold_default_value"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue