Skip to content

Commit 37df614

Browse files
KobeW50anddea
authored andcommitted
refactor(YouTube - Settings): Remove quotations from proper nouns
1 parent e9ff3c9 commit 37df614

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

src/main/kotlin/app/revanced/patches/youtube/layout/doubletaplength/DoubleTapLengthPatch.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ import java.nio.file.Files
1414
@Suppress("DEPRECATION", "unused")
1515
object DoubleTapLengthPatch : BaseResourcePatch(
1616
name = "Custom double tap length",
17-
description = "Adds 'double-tap to seek' values that are specified in options.json.",
17+
description = "Adds Double-tap to seek values that are specified in options.json.",
1818
dependencies = setOf(SettingsPatch::class),
1919
compatiblePackages = COMPATIBLE_PACKAGE
2020
) {
2121
private val DoubleTapLengthArrays by stringPatchOption(
2222
key = "DoubleTapLengthArrays",
2323
default = "3, 5, 10, 15, 20, 30, 60, 120, 180",
24-
title = "Double-tap to seek Values",
25-
description = "A list of custom double-tap to seek lengths to be added, separated by commas.",
24+
title = "Double-tap to seek values",
25+
description = "A list of custom Double-tap to seek lengths to be added, separated by commas.",
2626
required = true
2727
)
2828

src/main/kotlin/app/revanced/patches/youtube/player/ambientmode/AmbientModeSwitchPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import com.android.tools.smali.dexlib2.iface.reference.MethodReference
2525
@Suppress("unused")
2626
object AmbientModeSwitchPatch : BaseBytecodePatch(
2727
name = "Ambient mode control",
28-
description = "Adds options to disable ambient mode and to bypass ambient mode restrictions.",
28+
description = "Adds options to disable Ambient mode and to bypass Ambient mode restrictions.",
2929
dependencies = setOf(SettingsPatch::class),
3030
compatiblePackages = COMPATIBLE_PACKAGE,
3131
fingerprints = setOf(

src/main/resources/music/settings/host/values/strings.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ Info:
167167
<string name="revanced_hide_category_bar_summary">Hides the category bar.</string>
168168
<string name="revanced_hide_floating_button_title">Hide floating button</string>
169169
<string name="revanced_hide_floating_button_summary">Hides the floating button in the Library tab.</string>
170-
<string name="revanced_hide_tap_to_update_button_title">Hide \'Tap to update\' button</string>
171-
<string name="revanced_hide_tap_to_update_button_summary">Hides the \'Tap to update\' button.</string>
170+
<string name="revanced_hide_tap_to_update_button_title">Hide Tap to update button</string>
171+
<string name="revanced_hide_tap_to_update_button_summary">Hides the Tap to update button.</string>
172172
<string name="revanced_hide_history_button_title">Hide History button</string>
173173
<string name="revanced_hide_history_button_summary">Hides the History button in the toolbar.</string>
174174
<string name="revanced_hide_notification_button_title">Hide Notifications button</string>
@@ -310,7 +310,7 @@ Some features may not work properly in the old player layout."</string>
310310
<string name="revanced_sb_segments_sponsor">Sponsor</string>
311311
<string name="revanced_sb_segments_sponsor_sum">Paid promotion, paid referrals, and direct advertisements. Not for self-promotion or free shout-outs to causes / creators / websites / products they like.</string>
312312
<string name="revanced_sb_segments_selfpromo">Unpaid / Self Promotion</string>
313-
<string name="revanced_sb_segments_selfpromo_sum">Similar to \'Sponsor\' except for unpaid or self promotion. Includes sections about merchandise, donations, or information about who they collaborated with.</string>
313+
<string name="revanced_sb_segments_selfpromo_sum">Similar to Sponsor, except for unpaid or self promotion. Includes sections about merchandise, donations, or information about who they collaborated with.</string>
314314
<string name="revanced_sb_segments_interaction">Interaction Reminder (Subscribe)</string>
315315
<string name="revanced_sb_segments_interaction_sum">A short reminder to like, subscribe, or follow them in the middle of content. If it is long or about something specific, it should instead be under self promotion.</string>
316316
<string name="revanced_sb_segments_intro">Intermission / Intro Animation</string>
@@ -380,7 +380,7 @@ Info:
380380
<string name="gms_core_dialog_title">Action needed</string>
381381
<string name="gms_core_dialog_not_whitelisted_not_allowed_in_background_message">"GmsCore does not have permission to run in the background.
382382

383-
Follow the 'Don't kill my app!' guide for your device, and apply the instructions to your GmsCore installation.
383+
Follow the Don't kill my app! guide for your device, and apply the instructions to your GmsCore installation.
384384

385385
This is required for the app to work."</string>
386386
<string name="gms_core_dialog_open_website_text">Open website</string>

src/main/resources/youtube/settings/xml/revanced_prefs.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
<SwitchPreference android:title="@string/revanced_hide_notify_me_button_title" android:key="revanced_hide_notify_me_button" android:defaultValue="false" android:summaryOn="@string/revanced_hide_notify_me_button_summary_on" android:summaryOff="@string/revanced_hide_notify_me_button_summary_off" />
213213
<SwitchPreference android:title="@string/revanced_hide_playables_title" android:key="revanced_hide_playables" android:defaultValue="true" android:summaryOn="@string/revanced_hide_playables_summary_on" android:summaryOff="@string/revanced_hide_playables_summary_off" />
214214
<SwitchPreference android:title="@string/revanced_hide_show_more_button_title" android:key="revanced_hide_show_more_button" android:defaultValue="true" android:summaryOn="@string/revanced_hide_show_more_button_summary_on" android:summaryOff="@string/revanced_hide_show_more_button_summary_off" />
215-
<SwitchPreference android:title="@string/revanced_hide_subscriptions_channel_section_title" android:key="revanced_hide_subscriptions_channel_section" android:defaultValue="false" android:summaryOn="@string/revanced_hide_subscriptions_channel_section_summary_on" android:summaryOff="@string/revanced_hide_subscriptions_channel_section_summary_off" />
215+
<SwitchPreference android:title="@string/revanced_hide_subscriptions_carousel_title" android:key="revanced_hide_subscriptions_carousel" android:summaryOn="@string/revanced_hide_subscriptions_carousel_summary_on" android:summaryOff="@string/revanced_hide_subscriptions_carousel_summary_off" />
216216
<SwitchPreference android:title="@string/revanced_hide_ticket_shelf_title" android:key="revanced_hide_ticket_shelf" android:defaultValue="true" android:summaryOn="@string/revanced_hide_ticket_shelf_summary_on" android:summaryOff="@string/revanced_hide_ticket_shelf_summary_off" />SETTINGS: HIDE_FEED_COMPONENTS -->
217217
<!-- PREFERENCE_SCREEN: FEED
218218
</PreferenceScreen>PREFERENCE_SCREEN: FEED -->
@@ -239,8 +239,8 @@
239239
<!-- SETTINGS: AMBIENT_MODE_CONTROLS
240240
<PreferenceScreen android:title="@string/revanced_preference_screen_ambient_mode_title" android:key="revanced_preference_screen_ambient_mode" android:summary="@string/revanced_preference_screen_ambient_mode_summary">
241241
<SwitchPreference android:title="@string/revanced_bypass_ambient_mode_restrictions_title" android:key="revanced_bypass_ambient_mode_restrictions" android:defaultValue="false" android:summaryOn="@string/revanced_bypass_ambient_mode_restrictions_summary_on" android:summaryOff="@string/revanced_bypass_ambient_mode_restrictions_summary_off" />
242-
<SwitchPreference android:title="@string/revanced_disable_ambient_mode_title" android:key="revanced_disable_ambient_mode" android:defaultValue="false" android:summary="@string/revanced_disable_ambient_mode_summary" />
243-
<SwitchPreference android:title="@string/revanced_disable_ambient_mode_in_fullscreen_title" android:key="revanced_disable_ambient_mode_in_fullscreen" android:defaultValue="false" android:summary="@string/revanced_disable_ambient_mode_in_fullscreen_summary" />
242+
<SwitchPreference android:title="@string/revanced_disable_ambient_mode_title" android:key="revanced_disable_ambient_mode" android:summaryOn="@string/revanced_disable_ambient_mode_summary_on" android:summaryOff="@string/revanced_disable_ambient_mode_summary_off" />
243+
<SwitchPreference android:title="@string/revanced_disable_ambient_mode_in_fullscreen_title" android:key="revanced_disable_ambient_mode_in_fullscreen" android:summaryOn="@string/revanced_disable_ambient_mode_in_fullscreen_summary_on" android:summaryOff="@string/revanced_disable_ambient_mode_in_fullscreen_summary_off" />
244244
</PreferenceScreen>SETTINGS: AMBIENT_MODE_CONTROLS -->
245245

246246
<!-- SETTINGS: PLAYER_COMPONENTS
@@ -389,11 +389,12 @@
389389
<!-- SETTINGS: DISABLE_ROLLING_NUMBER_ANIMATIONS
390390
<SwitchPreference android:title="@string/revanced_disable_rolling_number_animations_title" android:key="revanced_disable_rolling_number_animations" android:defaultValue="false" android:summaryOn="@string/revanced_disable_rolling_number_animations_summary_on" android:summaryOff="@string/revanced_disable_rolling_number_animations_summary_off" />SETTINGS: DISABLE_ROLLING_NUMBER_ANIMATIONS -->
391391
<!-- SETTINGS: DESCRIPTION_COMPONENTS
392+
<SwitchPreference android:title="@string/revanced_hide_attributes_section_title" android:key="revanced_hide_attributes_section" android:summaryOn="@string/revanced_hide_attributes_section_summary_on" android:summaryOff="@string/revanced_hide_attributes_section_summary_off" />
392393
<SwitchPreference android:title="@string/revanced_hide_chapters_section_title" android:key="revanced_hide_chapters_section" android:defaultValue="false" android:summaryOn="@string/revanced_hide_chapters_section_summary_on" android:summaryOff="@string/revanced_hide_chapters_section_summary_off" />
393394
<SwitchPreference android:title="@string/revanced_hide_info_cards_section_title" android:key="revanced_hide_info_cards_section" android:defaultValue="false" android:summaryOn="@string/revanced_hide_info_cards_section_summary_on" android:summaryOff="@string/revanced_hide_info_cards_section_summary_off" />
395+
<SwitchPreference android:title="@string/revanced_hide_key_concepts_section_title" android:key="revanced_hide_key_concepts_section" android:summaryOn="@string/revanced_hide_key_concepts_section_summary_on" android:summaryOff="@string/revanced_hide_key_concepts_section_summary_off" />
394396
<SwitchPreference android:title="@string/revanced_hide_podcast_section_title" android:key="revanced_hide_podcast_section" android:defaultValue="false" android:summaryOn="@string/revanced_hide_podcast_section_summary_on" android:summaryOff="@string/revanced_hide_podcast_section_summary_off" />
395397
<SwitchPreference android:title="@string/revanced_hide_shopping_links_title" android:key="revanced_hide_shopping_links" android:defaultValue="true" android:summaryOn="@string/revanced_hide_shopping_links_summary_on" android:summaryOff="@string/revanced_hide_shopping_links_summary_off" />
396-
<SwitchPreference android:title="@string/revanced_hide_suggestions_section_title" android:key="revanced_hide_suggestions_section" android:defaultValue="false" android:summaryOn="@string/revanced_hide_suggestions_section_summary_on" android:summaryOff="@string/revanced_hide_suggestions_section_summary_off" />
397398
<SwitchPreference android:title="@string/revanced_hide_transcript_section_title" android:key="revanced_hide_transcript_section" android:defaultValue="false" android:summaryOn="@string/revanced_hide_transcript_section_summary_on" android:summaryOff="@string/revanced_hide_transcript_section_summary_off" />SETTINGS: DESCRIPTION_COMPONENTS -->
398399

399400
<!-- SETTINGS: DESCRIPTION_INTERACTION
@@ -464,7 +465,7 @@
464465
<PreferenceCategory android:title="@string/revanced_preference_category_experimental_flag" android:layout="@layout/revanced_settings_preferences_category"/>
465466
<SwitchPreference android:title="@string/revanced_hide_shorts_toolbar_title" android:key="revanced_hide_shorts_toolbar" android:defaultValue="false" android:summaryOn="@string/revanced_hide_shorts_toolbar_summary_on" android:summaryOff="@string/revanced_hide_shorts_toolbar_summary_off" />
466467
<SwitchPreference android:title="@string/revanced_hide_shorts_navigation_bar_title" android:key="revanced_hide_shorts_navigation_bar" android:defaultValue="false" android:summaryOn="@string/revanced_hide_shorts_navigation_bar_summary_on" android:summaryOff="@string/revanced_hide_shorts_navigation_bar_summary_off" />
467-
<SwitchPreference android:title="@string/revanced_return_shorts_channel_name_title" android:key="revanced_return_shorts_channel_name" android:defaultValue="false" android:summaryOn="@string/revanced_return_shorts_channel_name_summary_on" android:summaryOff="@string/revanced_return_shorts_channel_name_summary_off" />
468+
<SwitchPreference android:title="@string/revanced_replace_channel_handle_title" android:key="revanced_replace_channel_handle" android:summaryOn="@string/revanced_replace_channel_handle_summary_on" android:summaryOff="@string/revanced_replace_channel_handle_summary_off" />
468469
<SwitchPreference android:title="@string/revanced_return_shorts_channel_name_fetch_title" android:key="revanced_return_shorts_channel_name_fetch" android:defaultValue="false" android:summaryOn="@string/revanced_return_shorts_channel_name_fetch_summary_on" android:summaryOff="@string/revanced_return_shorts_channel_name_fetch_summary_off" />
469470
</PreferenceScreen>SETTINGS: SHORTS_COMPONENTS -->
470471

0 commit comments

Comments
 (0)