From ada41866460c88911a7083cd1209e059697b93d4 Mon Sep 17 00:00:00 2001 From: David Luhmer Date: Fri, 2 Mar 2018 14:21:22 -0400 Subject: [PATCH] Fix #618 - Extract strings in string-arrays as variables in order to prevent app crashes and translation issues with transifex --- .../src/main/res/values/strings.xml | 202 ++++++++++++------ 1 file changed, 135 insertions(+), 67 deletions(-) diff --git a/News-Android-App/src/main/res/values/strings.xml b/News-Android-App/src/main/res/values/strings.xml index 17bcacbf..c35b5afe 100644 --- a/News-Android-App/src/main/res/values/strings.xml +++ b/News-Android-App/src/main/res/values/strings.xml @@ -114,15 +114,20 @@ General Sort Order - - New -> Old - Old -> New + + New -> Old + Old -> New + + + @string/pref_general_sort_order_new_old + @string/pref_general_sort_order_old_new 1 0 + Clearing cache Clearing cacheā€¦ Please wait. There are unsynchronized changes. Would you like to reset the cache anyway? @@ -156,7 +161,12 @@ Line Count for title Browser + + + + Action icons (Detail View) + @string/action_openInBrowser @string/action_Share @@ -173,10 +183,17 @@ - - Dark - Dark (for OLED Screens) - Light + + + + Dark + Dark (for OLED Screens) + Light + + + @string/pref_display_apptheme_dark + @string/pref_display_apptheme_dark_oled + @string/pref_display_apptheme_light 0 @@ -184,33 +201,10 @@ 1 - - Built-in Chrome-Custom-Tabs - Built-in Browser - External browser - - - 0 - 2 - 1 - - - Simple - Extended - Extended (full text) - Extended with Webview - Extended with Cardview - - - 0 - 1 - 3 - 2 - 4 - - + + 1 2 3 @@ -224,6 +218,73 @@ + + + + Built-in Chrome-Custom-Tabs + Built-in Browser + External Browser + + + @string/pref_display_browser_cct + @string/pref_display_browser_built_in + @string/pref_display_browser_external + + + 0 + 2 + 1 + + + + + + + Simple + Extended + Extended (full text) + Extended with Webview + Extended with Cardview + + + @string/pref_display_feed_list_layout_simple + @string/pref_display_feed_list_layout_extended + @string/pref_display_feed_list_layout_extended_full_text + @string/pref_display_feed_list_layout_extended_webview + @string/pref_display_feed_list_layout_extended_cardview + + + 0 + 1 + 3 + 2 + 4 + + + + + + + + + @null + play + pause + rewind + forward + expand + collapse + mark as read + mark as unread + tap to refresh + add to favorites + remove from favorites + show password + delete + download + + + Notifications Show notification when new articles are available @@ -244,11 +305,19 @@ Cache images offline Max Cache Size - - Never - Over WiFi only - Over WiFi & Mobile - Ask when not connected to WiFi + + + + Never + Over WiFi only + Over WiFi & Mobile + Ask when not connected to WiFi + + + @string/pref_data_sync_image_cache_never + @string/pref_data_sync_image_cache_wifi_only + @string/pref_data_sync_image_cache_wifi_and_mobile + @string/pref_data_sync_image_cache_ask 0 @@ -257,7 +326,10 @@ 3 - + + + + 250 MB 500 MB 750 MB @@ -276,17 +348,31 @@ 10000 - - 5 Minutes - 15 Minutes - 30 Minutes - 45 Minutes - 1 Hour - 2 Hours - 3 Hours - 6 Hours - 12 Hours - 24 Hours + + + + 5 Minutes + 15 Minutes + 30 Minutes + 45 Minutes + 1 Hour + 2 Hours + 3 Hours + 6 Hours + 12 Hours + 24 Hours + + + @string/array_sync_interval_min_5 + @string/array_sync_interval_min_15 + @string/array_sync_interval_min_30 + @string/array_sync_interval_min_45 + @string/array_sync_interval_hour_1 + @string/array_sync_interval_hour_2 + @string/array_sync_interval_hour_3 + @string/array_sync_interval_hour_6 + @string/array_sync_interval_hour_12 + @string/array_sync_interval_hour_24 5 @@ -300,22 +386,4 @@ 720 1440 - - - - @null - play - pause - rewind - forward - expand - collapse - mark as read - mark as unread - tap to refresh - add to favorites - remove from favorites - show password - delete - download