Skip to content

Commit

Permalink
chore(Settings): separate Reset to default part from toasts inotia0…
Browse files Browse the repository at this point in the history
  • Loading branch information
inotia00 committed Sep 25, 2024
1 parent 58fb699 commit 42d2846
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
9 changes: 5 additions & 4 deletions src/main/resources/music/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Shared PreferenceScreen -->
<!-- Shared -->
<string name="revanced_extended_settings_title">ReVanced Extended</string>
<string name="revanced_extended_reset_to_default_toast">Reset to default values.</string>

<!-- Shared Category -->
<string name="revanced_extended_restart_first_run">Restart to load the layout normally</string>
Expand Down Expand Up @@ -274,8 +275,8 @@ Some features may not work properly in the old player layout."</string>
<string name="revanced_remember_video_quality_last_selected_summary">Remembers the last video quality selected.</string>
<string name="revanced_remember_video_quality_last_selected_toast_title">Show a toast</string>
<string name="revanced_remember_video_quality_last_selected_toast_summary">Show a toast when changing the default video quality.</string>
<string name="revanced_custom_playback_speeds_invalid">Custom speeds must be less than %sx. Using default values.</string>
<string name="revanced_custom_playback_speeds_parse_exception">Invalid custom playback speeds. Using default values.</string>
<string name="revanced_custom_playback_speeds_invalid">Custom speeds must be less than %sx.</string>
<string name="revanced_custom_playback_speeds_parse_exception">Invalid custom playback speeds.</string>
<string name="revanced_remember_playback_speed_toast">Changing default speed to %s.</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set quality.</string>
Expand Down Expand Up @@ -358,7 +359,7 @@ Some features may not work properly in the old player layout."</string>
<string name="revanced_sb_color_dot_label">Color:</string>
<string name="revanced_sb_color_changed">Color changed.</string>
<string name="revanced_sb_color_reset">Color reset.</string>
<string name="revanced_sb_color_invalid">Invalid color code. Color reset to default.</string>
<string name="revanced_sb_color_invalid">Invalid color code.</string>
<string name="revanced_sb_reset_color">Reset color</string>
<string name="revanced_sb_about_api_sum">Data is provided by the SponsorBlock API. Tap here to learn more and see downloads for other platforms.</string>

Expand Down
20 changes: 11 additions & 9 deletions src/main/resources/youtube/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<!-- Shared -->
<string name="revanced_extended_settings_title">ReVanced Extended</string>
<string name="revanced_extended_settings_search_title">Search %s</string>
<string name="revanced_extended_reset_to_default_toast">Reset to default values.</string>

<string name="revanced_preference_category_experimental_flag">Experimental Flags</string>
<string name="revanced_extended_confirm_user_dialog_title">Do you wish to proceed?</string>
Expand Down Expand Up @@ -81,6 +82,7 @@ Tap here to learn more about DeArrow."</string>
<string name="revanced_alt_thumbnail_dearrow_connection_toast_summary_off">Toast is not shown if DeArrow is unavailable.</string>
<string name="revanced_alt_thumbnail_dearrow_api_url_title">DeArrow API endpoint</string>
<string name="revanced_alt_thumbnail_dearrow_api_url_summary">The URL of the DeArrow thumbnail cache endpoint.</string>
<string name="revanced_alt_thumbnail_dearrow_api_url_invalid_toast">Invalid DeArrow API URL.</string>
<string name="revanced_alt_thumbnail_stills_about_title">Still video captures</string>
<string name="revanced_alt_thumbnail_stills_about_summary">Still captures are taken from the beginning, middle, or end of each video. These images are built into YouTube and no external API is used.</string>
<string name="revanced_alt_thumbnail_stills_fast_title">Use fast still captures</string>
Expand Down Expand Up @@ -319,7 +321,6 @@ Limitations:
<string name="revanced_change_start_page_entry_subscriptions">Subscriptions</string>
<string name="revanced_change_start_page_entry_trending">Trending</string>
<string name="revanced_change_start_page_entry_watch_later">Watch later</string>
<string name="revanced_change_start_page_invalid_toast">Invalid start page, resetting to default.</string>
<string name="revanced_disable_auto_audio_tracks_title">Disable forced auto audio tracks</string>
<string name="revanced_disable_auto_audio_tracks_summary_on">Forced auto audio tracks are disabled.</string>
<string name="revanced_disable_auto_audio_tracks_summary_off">Forced auto audio tracks are enabled.</string>
Expand Down Expand Up @@ -454,7 +455,7 @@ Some components may not be hidden."</string>
<string name="revanced_miniplayer_hide_rewind_forward_summary_off">Skip forward and back are shown.</string>
<string name="revanced_miniplayer_opacity_title">Overlay opacity</string>
<string name="revanced_miniplayer_opacity_summary">Opacity value between 0-100, where 0 is transparent.</string>
<string name="revanced_miniplayer_opacity_invalid_toast">Miniplayer overlay opacity must be between 0-100. Reset to default values.</string>
<string name="revanced_miniplayer_opacity_invalid_toast">Miniplayer overlay opacity must be between 0-100.</string>

<!-- PreferenceScreen: General, PreferenceCategory: General, PreferenceScreen: Navigation buttons -->
<string name="revanced_preference_screen_navigation_buttons_title">Navigation buttons</string>
Expand Down Expand Up @@ -561,7 +562,7 @@ Tap and hold to open RVX settings."</string>

<string name="revanced_custom_player_overlay_opacity_title">Custom player overlay opacity</string>
<string name="revanced_custom_player_overlay_opacity_summary">Opacity value between 0-100, where 0 is transparent.</string>
<string name="revanced_custom_player_overlay_opacity_invalid_toast">Player overlay opacity must be between 0-100. Reset to default values.</string>
<string name="revanced_custom_player_overlay_opacity_invalid_toast">Player overlay opacity must be between 0-100.</string>
<string name="revanced_disable_auto_player_popup_panels_title">Disable player popup panels</string>
<string name="revanced_disable_auto_player_popup_panels_summary_on">Auto player popup panels are disabled.</string>
<string name="revanced_disable_auto_player_popup_panels_summary_off">Auto player popup panels are enabled.</string>
Expand All @@ -580,7 +581,7 @@ Note:
• Disabling this setting does not forcefully enable the speed overlay."</string>
<string name="revanced_speed_overlay_value_title">Speed overlay value</string>
<string name="revanced_speed_overlay_value_summary">Speed overlay value between 0-8.0.</string>
<string name="revanced_speed_overlay_value_invalid_toast">Speed overlay value must be between 0-8.0. Reset to default values.</string>
<string name="revanced_speed_overlay_value_invalid_toast">Speed overlay value must be between 0-8.0.</string>
<string name="revanced_hide_channel_watermark_title">Hide channel watermark</string>
<string name="revanced_hide_channel_watermark_summary_on">Channel watermark is hidden.</string>
<string name="revanced_hide_channel_watermark_summary_off">Channel watermark is shown.</string>
Expand Down Expand Up @@ -851,7 +852,7 @@ Limitation: Video title disappears when clicked."</string>
<string name="revanced_hide_quick_actions_share_button_summary_off">Share button is shown.</string>
<string name="revanced_quick_actions_top_margin_title">Quick actions top margin</string>
<string name="revanced_quick_actions_top_margin_summary">Configure the spacing from the seekbar to the quick action container, between 0-32.</string>
<string name="revanced_quick_actions_top_margin_invalid_toast">Quick actions top margin must be between 0-32. Reset to default values.</string>
<string name="revanced_quick_actions_top_margin_invalid_toast">Quick actions top margin must be between 0-32.</string>

<!-- PreferenceScreen: Player, PreferenceCategory: Player, PreferenceScreen: Fullscreen, PreferenceCategory: Experimental Flags -->
<string name="revanced_disable_landscape_mode_title">Disable landscape mode</string>
Expand Down Expand Up @@ -1202,7 +1203,7 @@ Limitations:
<string name="revanced_shorts_time_stamp_change_repeat_state_summary">Press and hold the timestamp to change the Shorts repeat status.</string>
<string name="revanced_shorts_meta_panel_bottom_margin_title">Meta panel bottom margin</string>
<string name="revanced_shorts_meta_panel_bottom_margin_summary">Configure the spacing from the seekbar to the meta panel, between 0-64.</string>
<string name="revanced_shorts_meta_panel_bottom_margin_invalid_toast">Meta panel bottom margin must be between 0-64. Reset to default values.</string>
<string name="revanced_shorts_meta_panel_bottom_margin_invalid_toast">Meta panel bottom margin must be between 0-64.</string>
<string name="revanced_hide_shorts_toolbar_title">Hide toolbar</string>
<string name="revanced_hide_shorts_toolbar_summary_on">Toolbar is hidden.</string>
<string name="revanced_hide_shorts_toolbar_summary_off">Toolbar is shown.</string>
Expand All @@ -1213,6 +1214,7 @@ Limitations:
<string name="revanced_replace_channel_handle_summary_on">Channel name is used.</string>
<string name="revanced_replace_channel_handle_summary_off">Channel handle is used.</string>


<!-- PreferenceScreen: Swipe controls -->
<string name="revanced_preference_screen_swipe_controls_title">Swipe controls</string>

Expand Down Expand Up @@ -1245,7 +1247,7 @@ Limitations:
<string name="revanced_swipe_overlay_text_size_summary">The text size for swipe overlay.</string>
<string name="revanced_swipe_overlay_rect_size_title">Swipe overlay screen size</string>
<string name="revanced_swipe_overlay_rect_size_summary">Percentage of swipeable screen area.\n\nNote: This will also change the size of the screen area for the double-tap-to-seek gesture.</string>
<string name="revanced_swipe_overlay_rect_size_invalid_toast">Swipeable area size cannot be more than 50. Reset to default value.</string>
<string name="revanced_swipe_overlay_rect_size_invalid_toast">Swipeable area size cannot be more than 50.</string>
<string name="revanced_swipe_overlay_timeout_title">Swipe overlay timeout</string>
<string name="revanced_swipe_overlay_timeout_summary">The amount of milliseconds the overlay is visible.</string>
<string name="revanced_disable_hdr_auto_brightness_title">Disable auto HDR brightness</string>
Expand Down Expand Up @@ -1334,8 +1336,8 @@ A different codec will be applied after about 20 seconds of buffering."</string>
<string name="revanced_remember_video_quality_mobile">Changing default mobile data quality to %s.</string>
<string name="revanced_remember_video_quality_none">Failed to set video quality.</string>
<string name="revanced_remember_video_quality_wifi">Changing default Wi-Fi quality to %s.</string>
<string name="revanced_custom_playback_speeds_invalid">Custom speeds must be less than %sx. Using default values.</string>
<string name="revanced_custom_playback_speeds_parse_exception">Invalid custom playback speeds. Using default values.</string>
<string name="revanced_custom_playback_speeds_invalid">Custom speeds must be less than %sx.</string>
<string name="revanced_custom_playback_speeds_parse_exception">Invalid custom playback speeds.</string>


<!-- PreferenceScreen: Return YouTube Dislike -->
Expand Down

0 comments on commit 42d2846

Please sign in to comment.