Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Re-order and update strings #122

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6499b7d
ci: workflow to ping Discord users when patches are released (#72)
KobeW50 Aug 11, 2024
2e32741
Merge branch 'dev' into revanced-extended
inotia00 Aug 12, 2024
c57de97
Merge branch 'dev' into revanced-extended
inotia00 Sep 7, 2024
b725e54
Merge branch 'dev' into revanced-extended
inotia00 Sep 28, 2024
934c33a
Merge branch 'dev' into revanced-extended
inotia00 Oct 12, 2024
d8ae741
Merge branch 'dev' into revanced-extended
inotia00 Oct 21, 2024
807494f
Merge branch 'dev' into revanced-extended
inotia00 Nov 8, 2024
b5fe136
Merge branch 'dev' into revanced-extended
inotia00 Dec 8, 2024
5088daa
Merge branch 'dev' into revanced-extended
inotia00 Dec 8, 2024
2b0f12c
Merge branch 'dev' into revanced-extended
inotia00 Dec 9, 2024
0384907
Merge branch 'dev' into revanced-extended
inotia00 Dec 21, 2024
03c0826
Merge branch 'dev' into revanced-extended
inotia00 Dec 22, 2024
a9408b0
Merge branch 'dev' into revanced-extended
inotia00 Dec 22, 2024
ee0a7b5
Merge branch 'dev' into revanced-extended
inotia00 Dec 22, 2024
1aaf03d
Merge branch 'dev' into revanced-extended
inotia00 Jan 7, 2025
8db38af
Merge branch 'dev' into revanced-extended
inotia00 Jan 16, 2025
bca335f
chore: Re-order and update strings
ILoveOpenSourceApplications Jan 16, 2025
10245df
typo: change URL to link
ILoveOpenSourceApplications Jan 16, 2025
9022abe
Update patches/src/main/resources/music/settings/host/values/strings.xml
inotia00 Jan 17, 2025
bef9c9a
Update patches/src/main/resources/music/settings/host/values/strings.xml
inotia00 Jan 17, 2025
e43fe3d
feat: Apply code review suggestions
inotia00 Jan 17, 2025
43f6992
Update patches/src/main/resources/youtube/settings/host/values/string…
inotia00 Jan 17, 2025
e20ab3e
Update patches/src/main/resources/youtube/settings/host/values/string…
inotia00 Jan 17, 2025
0860f23
Update patches/src/main/resources/music/settings/host/values/strings.xml
inotia00 Jan 17, 2025
98ba99a
Update patches/src/main/resources/youtube/settings/host/values/string…
inotia00 Jan 17, 2025
f2c969b
feat: Apply code review suggestions
inotia00 Jan 17, 2025
78752c7
feat: Apply code review suggestions
inotia00 Jan 17, 2025
fbd8818
feat: Apply code review suggestions
inotia00 Jan 17, 2025
5272900
feat: Apply code review suggestions
inotia00 Jan 17, 2025
d18e87a
feat: Apply code review suggestions
inotia00 Jan 17, 2025
2040d76
feat: Apply code review suggestions
inotia00 Jan 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,15 @@ public class Settings extends BaseSettings {
PatchStatus.SpoofAppVersionDefaultString(), true);


// PreferenceScreen: Navigation bar
public static final BooleanSetting ENABLE_BLACK_NAVIGATION_BAR = new BooleanSetting("revanced_enable_black_navigation_bar", FALSE);
// PreferenceScreen: Navigation Bar
public static final BooleanSetting HIDE_NAVIGATION_HOME_BUTTON = new BooleanSetting("revanced_hide_navigation_home_button", FALSE, true);
public static final BooleanSetting HIDE_NAVIGATION_SAMPLES_BUTTON = new BooleanSetting("revanced_hide_navigation_samples_button", FALSE, true);
public static final BooleanSetting HIDE_NAVIGATION_EXPLORE_BUTTON = new BooleanSetting("revanced_hide_navigation_explore_button", FALSE, true);
public static final BooleanSetting HIDE_NAVIGATION_LIBRARY_BUTTON = new BooleanSetting("revanced_hide_navigation_library_button", FALSE, true);
public static final BooleanSetting HIDE_NAVIGATION_UPGRADE_BUTTON = new BooleanSetting("revanced_hide_navigation_upgrade_button", TRUE, true);
public static final BooleanSetting HIDE_NAVIGATION_BAR = new BooleanSetting("revanced_hide_navigation_bar", FALSE, true);
public static final BooleanSetting HIDE_NAVIGATION_LABEL = new BooleanSetting("revanced_hide_navigation_label", FALSE, true);
public static final BooleanSetting ENABLE_BLACK_NAVIGATION_BAR = new BooleanSetting("revanced_enable_black_navigation_bar", FALSE);


// PreferenceScreen: Player
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void addPreferences(Context context) {
addPreference(new TogglePreference(
context,
"Sanitize sharing links",
"Removes tracking query parameters from URLs when sharing links.",
"Sanitizes sharing links by removing tracking query parameters.",
Settings.SANITIZE_URL_QUERY
));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ public class Settings extends BaseSettings {
public static final BooleanSetting HIDE_MOVIE_SHELF = new BooleanSetting("revanced_hide_movie_shelf", FALSE);
public static final BooleanSetting HIDE_NOTIFY_ME_BUTTON = new BooleanSetting("revanced_hide_notify_me_button", FALSE);
public static final BooleanSetting HIDE_PLAYABLES = new BooleanSetting("revanced_hide_playables", TRUE);
public static final BooleanSetting HIDE_SHOW_MORE_BUTTON = new BooleanSetting("revanced_hide_show_more_button", TRUE, true);
public static final BooleanSetting HIDE_FEED_SEARCH_BAR = new BooleanSetting("revanced_hide_feed_search_bar", FALSE);
public static final BooleanSetting HIDE_FEED_SURVEY = new BooleanSetting("revanced_hide_feed_survey", TRUE);
public static final BooleanSetting HIDE_SHOW_MORE_BUTTON = new BooleanSetting("revanced_hide_show_more_button", TRUE, true);
public static final BooleanSetting HIDE_SUBSCRIPTIONS_CAROUSEL = new BooleanSetting("revanced_hide_subscriptions_carousel", FALSE, true);
public static final BooleanSetting HIDE_FEED_SURVEY = new BooleanSetting("revanced_hide_feed_survey", TRUE);
public static final BooleanSetting HIDE_TICKET_SHELF = new BooleanSetting("revanced_hide_ticket_shelf", TRUE);


Expand Down Expand Up @@ -181,7 +181,7 @@ public class Settings extends BaseSettings {
public static final IntegerSetting MINIPLAYER_WIDTH_DIP = new IntegerSetting("revanced_miniplayer_width_dip", 192, true, MINIPLAYER_ANY_MODERN);
public static final IntegerSetting MINIPLAYER_OPACITY = new IntegerSetting("revanced_miniplayer_opacity", 100, true, MINIPLAYER_TYPE.availability(MODERN_1));

// PreferenceScreen: General - Navigation bar
// PreferenceScreen: General - Navigation Bar
public static final BooleanSetting ENABLE_NARROW_NAVIGATION_BUTTONS = new BooleanSetting("revanced_enable_narrow_navigation_buttons", FALSE, true);
public static final BooleanSetting HIDE_NAVIGATION_CREATE_BUTTON = new BooleanSetting("revanced_hide_navigation_create_button", TRUE, true);
public static final BooleanSetting HIDE_NAVIGATION_HOME_BUTTON = new BooleanSetting("revanced_hide_navigation_home_button", FALSE, true);
Expand Down Expand Up @@ -550,8 +550,8 @@ public class Settings extends BaseSettings {


// PreferenceScreen: Miscellaneous
public static final BooleanSetting ENABLE_EXTERNAL_BROWSER = new BooleanSetting("revanced_enable_external_browser", TRUE, true);
public static final BooleanSetting ENABLE_OPEN_LINKS_DIRECTLY = new BooleanSetting("revanced_enable_open_links_directly", TRUE);
public static final BooleanSetting ENABLE_EXTERNAL_BROWSER = new BooleanSetting("revanced_enable_external_browser", TRUE, true);

// Experimental Flags
public static final BooleanSetting CHANGE_SHARE_SHEET = new BooleanSetting("revanced_change_share_sheet", FALSE, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ val navigationBarComponentsPatch = bytecodePatch(
}
}

addSwitchPreference(
CategoryType.NAVIGATION,
"revanced_enable_black_navigation_bar",
"true"
)
addSwitchPreference(
CategoryType.NAVIGATION,
"revanced_hide_navigation_home_button",
Expand Down Expand Up @@ -167,6 +162,11 @@ val navigationBarComponentsPatch = bytecodePatch(
"revanced_hide_navigation_label",
"false"
)
addSwitchPreference(
CategoryType.NAVIGATION,
"revanced_enable_black_navigation_bar",
"true"
)

updatePatchStatus(NAVIGATION_BAR_COMPONENTS)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ internal enum class PatchList(
),
SANITIZE_SHARING_LINKS(
"Sanitize sharing links",
"Adds an option to remove tracking query parameters from URLs when sharing links."
"Adds an option to sanitize sharing links by removing tracking query parameters."
),
SETTINGS_FOR_YOUTUBE_MUSIC(
"Settings for YouTube Music",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ internal enum class PatchList(
),
SANITIZE_SHARING_LINKS(
"Sanitize sharing links",
"Adds an option to remove tracking query parameters from URLs when sharing links."
"Adds an option to sanitize sharing links by removing tracking query parameters."
),
SETTINGS_FOR_REDDIT(
"Settings for Reddit",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ val miniplayerPatch = bytecodePatch(
"$EXTENSION_CLASS_DESCRIPTOR->setRoundedCorners(Z)Z"
)

settingArray += "SETTINGS: MINIPLAYER_ROUNDED_CONERS"
settingArray += "SETTINGS: MINIPLAYER_ROUNDED_CORNERS"
}

if (is_19_43_or_greater) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ internal enum class PatchList(
"Bypass image region restrictions",
"Adds an option to use a different host for static images, so that images blocked in some countries can be received."
),
ENABLE_OPEN_LINKS_DIRECTLY(
"Bypass link redirection",
"Adds an option to bypass redirection when opening external links."
),
CHANGE_PLAYER_FLYOUT_MENU_TOGGLES(
"Change player flyout menu toggles",
"Adds an option to use text toggles instead of switch toggles within the additional settings menu."
Expand Down Expand Up @@ -85,18 +89,10 @@ internal enum class PatchList(
"Enable debug logging",
"Adds an option to enable debug logging."
),
ENABLE_EXTERNAL_BROWSER(
"Enable external browser",
"Adds an option to always open links in your browser instead of in the in-app-browser."
),
ENABLE_GRADIENT_LOADING_SCREEN(
"Enable gradient loading screen",
"Adds an option to enable the gradient loading screen."
),
ENABLE_OPEN_LINKS_DIRECTLY(
"Enable open links directly",
"Adds an option to skip over redirection URLs in external links."
),
FORCE_HIDE_PLAYER_BUTTONS_BACKGROUND(
"Force hide player buttons background",
"Removes, at compile time, the dark background surrounding the video player controls."
Expand Down Expand Up @@ -173,6 +169,10 @@ internal enum class PatchList(
"Navigation bar components",
"Adds options to hide or change components related to the navigation bar."
),
ENABLE_EXTERNAL_BROWSER(
"Open links in browser",
"Adds an option to always open links in your browser instead of in the in-app-browser."
),
OVERLAY_BUTTONS(
"Overlay buttons",
"Adds options to display useful overlay buttons in the video player."
Expand All @@ -199,7 +199,7 @@ internal enum class PatchList(
),
SANITIZE_SHARING_LINKS(
"Sanitize sharing links",
"Adds an option to remove tracking query parameters from URLs when sharing links."
"Adds an option to sanitize sharing links by removing tracking query parameters."
),
SEEKBAR_COMPONENTS(
"Seekbar components",
Expand Down
30 changes: 15 additions & 15 deletions patches/src/main/resources/music/settings/host/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ Limitations:
<string name="revanced_hide_general_ads_title">Hide general ads</string>
<string name="revanced_hide_general_ads_summary">Hides general ads.</string>
<string name="revanced_hide_music_ads_title">Hide media ads</string>
<string name="revanced_hide_music_ads_summary">Hides ads before playing media.</string>
<string name="revanced_hide_music_ads_summary">Hides the ads that play during media playback.</string>
<string name="revanced_hide_paid_promotion_label_title">Hide paid promotion label</string>
<string name="revanced_hide_paid_promotion_label_summary">Hides the paid promotion label.</string>
<string name="revanced_hide_premium_promotion_title">Hide premium promotion popups</string>
<string name="revanced_hide_premium_promotion_summary">Hides premium promotion popups.</string>
<string name="revanced_hide_premium_promotion_summary">Hides the premium promotion popups.</string>
<string name="revanced_hide_premium_renewal_title">Hide premium renewal banner</string>
<string name="revanced_hide_premium_renewal_summary">Hides the premium renewal banner.</string>
<string name="revanced_hide_promotion_alert_banner_title">Hide promotion alert banner</string>
Expand Down Expand Up @@ -199,8 +199,6 @@ This does not bypass the age restriction. It just accepts it automatically."</st
<!-- PreferenceScreen: Navigation Bar -->
<string name="revanced_preference_screen_navigation_title">Navigation Bar</string>

<string name="revanced_enable_black_navigation_bar_title">Enable black navigation bar</string>
<string name="revanced_enable_black_navigation_bar_summary">Sets the navigation bar color to black.</string>
<string name="revanced_hide_navigation_home_button_title">Hide Home button</string>
<string name="revanced_hide_navigation_home_button_summary">Hides the Home button.</string>
<string name="revanced_hide_navigation_samples_button_title">Hide Samples button</string>
Expand All @@ -215,6 +213,8 @@ This does not bypass the age restriction. It just accepts it automatically."</st
<string name="revanced_hide_navigation_bar_summary">Hides the navigation bar.</string>
<string name="revanced_hide_navigation_label_title">Hide navigation labels</string>
<string name="revanced_hide_navigation_label_summary">Hides the label below each navigation buttons.</string>
<string name="revanced_enable_black_navigation_bar_title">Set navigation bar to black</string>
<string name="revanced_enable_black_navigation_bar_summary">Sets the navigation bar color to black.</string>


<!-- PreferenceScreen: Player -->
Expand Down Expand Up @@ -286,11 +286,11 @@ Some features may not work properly in the old player layout."</string>
<string name="revanced_remember_playback_speed_last_selected_title">Remember playback speed changes</string>
<string name="revanced_remember_playback_speed_last_selected_summary">Remembers the last playback speed selected.</string>
<string name="revanced_remember_playback_speed_last_selected_toast_title">Show a toast</string>
<string name="revanced_remember_playback_speed_last_selected_toast_summary">Show a toast when changing the default playback speed.</string>
<string name="revanced_remember_playback_speed_last_selected_toast_summary">Shows a toast when changing the default playback speed.</string>
<string name="revanced_remember_video_quality_last_selected_title">Remember video quality changes</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_remember_video_quality_last_selected_toast_summary">Shows a toast when changing the default video quality.</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>
Expand Down Expand Up @@ -340,7 +340,7 @@ Some features may not work properly in the old player layout."</string>

The daily quota for API keys on the free plan is 10,000, and 1 quota is used to replace a handle with a username for 1 comment.

Click to see how to issue a API key."</string>
Click to see how to issue an API key."</string>
<string name="revanced_return_youtube_username_youtube_data_api_v3_dialog_title">Issue YouTube Data API v3 developer key</string>
<string name="revanced_return_youtube_username_youtube_data_api_v3_dialog_message">1. Go to &lt;a href=%1$s>Create a new project&lt;/a>.&lt;br>2. Click the &lt;b>CREATE&lt;/b> button.&lt;br>3. Go to &lt;a href=%2$s>YouTube Data API v3&lt;/a>.&lt;br>4. Click the &lt;b>ENABLE&lt;/b> button.&lt;br>5. Click the &lt;b>CREATE CREDENTIALS&lt;/b> button.&lt;br>6. Select the &lt;b>Public data&lt;/b> option.&lt;br>7. Click the &lt;b>NEXT&lt;/b> button.&lt;br>8. Copy the API key.&lt;br>&lt;br>※ API key should never be shared with others, so it is not included in Import / Export settings.</string>

Expand All @@ -349,7 +349,7 @@ Click to see how to issue a API key."</string>
<string name="revanced_preference_screen_sb_title">SponsorBlock</string>

<string name="revanced_sb_enabled">Enable SponsorBlock</string>
<string name="revanced_sb_enabled_sum">SponsorBlock is a crowd-sourced system for skipping annoying parts of YouTube videos.</string>
<string name="revanced_sb_enabled_sum">SponsorBlock is a crowdsourced system for skipping annoying parts of YouTube videos.</string>
<string name="revanced_sb_toast_on_connection_error">Show a toast if API is unavailable</string>
<string name="revanced_sb_toast_on_connection_error_sum">Shows a toast if the SponsorBlock API is unavailable.</string>
<string name="revanced_sb_toast_on_skip">Show a toast when skipping automatically</string>
Expand Down Expand Up @@ -413,7 +413,7 @@ Click to see how to issue a API key."</string>
<string name="revanced_preference_screen_misc_title">Miscellaneous</string>

<string name="revanced_extended_settings_import_export_title">Import / Export settings</string>
<string name="revanced_extended_settings_import_export_summary">Import or export settings.</string>
<string name="revanced_extended_settings_import_export_summary">Import / Export RVX Music settings.</string>

<string name="revanced_extended_settings_export_as_file">Export settings to file</string>
<string name="revanced_extended_settings_import_as_file">Import settings from file</string>
Expand All @@ -430,9 +430,9 @@ Click to see how to issue a API key."</string>
<string name="revanced_share_copy_settings_success">Settings copied to clipboard.</string>

<string name="revanced_bypass_image_region_restrictions_title">Bypass image region restrictions</string>
<string name="revanced_bypass_image_region_restrictions_summary">Replaces the domain that is blocked in some regions so that playlist thumbnails, channel avatars, etc. can be received.</string>
<string name="revanced_bypass_image_region_restrictions_summary">Bypasses the domain that is blocked in some regions so that playlist thumbnails, channel avatars, etc. can be received.</string>
<string name="revanced_change_share_sheet_title">Change share sheet</string>
<string name="revanced_change_share_sheet_summary">Change from in-app share sheet to system share sheet.</string>
<string name="revanced_change_share_sheet_summary">Changes the in-app share sheet to system share sheet.</string>
<string name="revanced_disable_cairo_splash_animation_title">Disable Cairo splash animation</string>
<string name="revanced_disable_cairo_splash_animation_summary">Disables Cairo splash animation when the app starts up.</string>
<string name="revanced_disable_drc_audio_title">Disable DRC audio</string>
Expand All @@ -453,13 +453,13 @@ Find the official song if a music video is detected playing from an album.
<string name="revanced_enable_debug_buffer_logging_title">Enable debug buffer logging</string>
<string name="revanced_enable_debug_buffer_logging_summary">Includes the buffer in the debug log.</string>
<string name="revanced_enable_opus_codec_title">Enable OPUS codec</string>
<string name="revanced_enable_opus_codec_summary">"Enable the OPUS codec if the player response includes the OPUS codec.
<string name="revanced_enable_opus_codec_summary">"Enables the OPUS codec if the player response includes it.

Info:
• Latest YouTube Music clients use the OPUS audio codec by default.
• This is only valid for users spoofing with very old clients."</string>
<string name="revanced_sanitize_sharing_links_title">Sanitize sharing links</string>
<string name="revanced_sanitize_sharing_links_summary">Removes tracking query parameters from URLs when sharing links.</string>
<string name="revanced_sanitize_sharing_links_summary">Sanitizes sharing links by removing tracking query parameters.</string>
<string name="revanced_spoof_client_title">Spoof client</string>
<string name="revanced_spoof_client_summary">"Spoof the client to prevent playback issues.

Expand All @@ -484,10 +484,10 @@ Info:
<string name="revanced_spoof_streaming_data_type_entry_android_music">Android Music</string>

<string name="revanced_default_app_settings_title">Open default app settings</string>
<string name="revanced_default_app_settings_summary">To open YouTube Music links in RVX Music, enable \'Open supported links\' and enable the supported web addresses.</string>
<string name="revanced_default_app_settings_summary">To open YouTube Music links in RVX Music, enable Open supported links and enable all the Supported web addresses.</string>

<string name="gms_core_settings_title">Open GmsCore settings</string>
<string name="gms_core_settings_summary">Opens GmsCore settings. Then enable cloud messaging to receive notifications.</string>
<string name="gms_core_settings_summary">To receive notifications in RVX Music, enable Cloud Messaging.</string>
<string name="gms_core_toast_not_installed_message">GmsCore is not installed. Install it.</string>
<string name="gms_core_dialog_title">Action needed</string>
<string name="gms_core_dialog_not_whitelisted_not_allowed_in_background_message">"GmsCore does not have permission to run in the background.
Expand Down
Loading