chore: Clarify strings (#130)

* chore: Clarify string

* feat: Apply code review suggestions

* fix typo

* Make dislikes description consistent

* Revert removal of Shorts dislikes disclaimer

* feat: Apply code review suggestions

* feat: Apply code review suggestions

---------

Co-authored-by: inotia00 <108592928+inotia00@users.noreply.github.com>
This commit is contained in:
ILoveOpenSourceApplications
2025-01-19 13:16:03 +05:30
committed by GitHub
parent 4892b701e6
commit 181bcb1221
10 changed files with 53 additions and 51 deletions

View File

@ -31,7 +31,7 @@ internal enum class PatchList(
),
CUSTOM_BRANDING_NAME_FOR_YOUTUBE_MUSIC(
"Custom branding name for YouTube Music",
"Renames the YouTube Music app to the name specified in patch options."
"Changes the YouTube Music app name to the name specified in patch options."
),
CUSTOM_HEADER_FOR_YOUTUBE_MUSIC(
"Custom header for YouTube Music",
@ -63,7 +63,7 @@ internal enum class PatchList(
),
ENABLE_OPUS_CODEC(
"Enable OPUS codec",
"Adds an options to enable the OPUS audio codec if the player response includes it."
"Adds an option to enable the OPUS audio codec if the player response includes it."
),
ENABLE_DEBUG_LOGGING(
"Enable debug logging",

View File

@ -11,7 +11,7 @@ internal enum class PatchList(
),
CUSTOM_BRANDING_NAME_FOR_REDDIT(
"Custom branding name for Reddit",
"Renames the Reddit app to the name specified in patch options."
"Changes the Reddit app name to the name specified in patch options."
),
DISABLE_SCREENSHOT_POPUP(
"Disable screenshot popup",

View File

@ -6,7 +6,7 @@ import app.revanced.patcher.patch.bytecodePatch
import app.revanced.patches.shared.createPlayerRequestBodyWithModelFingerprint
import app.revanced.patches.youtube.utils.compatibility.Constants.COMPATIBLE_PACKAGE
import app.revanced.patches.youtube.utils.extension.Constants.GENERAL_PATH
import app.revanced.patches.youtube.utils.patch.PatchList.LAYOUT_SWITCH
import app.revanced.patches.youtube.utils.patch.PatchList.CHANGE_LAYOUT
import app.revanced.patches.youtube.utils.settings.ResourceUtils.addPreference
import app.revanced.patches.youtube.utils.settings.settingsPatch
import app.revanced.util.fingerprint.definingClassOrThrow
@ -24,8 +24,8 @@ private const val EXTENSION_CLASS_DESCRIPTOR =
@Suppress("unused")
val layoutSwitchPatch = bytecodePatch(
LAYOUT_SWITCH.title,
LAYOUT_SWITCH.summary,
CHANGE_LAYOUT.title,
CHANGE_LAYOUT.summary,
) {
compatibleWith(COMPATIBLE_PACKAGE)
@ -71,9 +71,9 @@ val layoutSwitchPatch = bytecodePatch(
arrayOf(
"PREFERENCE_SCREEN: GENERAL",
"PREFERENCE_CATEGORY: GENERAL_EXPERIMENTAL_FLAGS",
"SETTINGS: LAYOUT_SWITCH"
"SETTINGS: CHANGE_LAYOUT"
),
LAYOUT_SWITCH
CHANGE_LAYOUT
)
// endregion

View File

@ -1,4 +1,4 @@
package app.revanced.patches.youtube.general.channel
package app.revanced.patches.youtube.general.livering
import app.revanced.patches.youtube.utils.resourceid.elementsImage
import app.revanced.util.fingerprint.legacyFingerprint

View File

@ -1,4 +1,4 @@
package app.revanced.patches.youtube.general.channel
package app.revanced.patches.youtube.general.livering
import app.revanced.patcher.extensions.InstructionExtensions.addInstruction
import app.revanced.patcher.extensions.InstructionExtensions.addInstructions
@ -7,7 +7,7 @@ import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
import app.revanced.patcher.patch.bytecodePatch
import app.revanced.patches.youtube.utils.compatibility.Constants.COMPATIBLE_PACKAGE
import app.revanced.patches.youtube.utils.extension.Constants.GENERAL_PATH
import app.revanced.patches.youtube.utils.patch.PatchList.OPEN_CHANNEL_OF_LIVE_AVATAR
import app.revanced.patches.youtube.utils.patch.PatchList.CHANGE_LIVE_RING_CLICK_ACTION
import app.revanced.patches.youtube.utils.resourceid.sharedResourceIdPatch
import app.revanced.patches.youtube.utils.settings.ResourceUtils.addPreference
import app.revanced.patches.youtube.utils.settings.settingsPatch
@ -23,9 +23,9 @@ private const val EXTENSION_CLASS_DESCRIPTOR =
"$GENERAL_PATH/OpenChannelOfLiveAvatarPatch;"
@Suppress("unused")
val layoutSwitchPatch = bytecodePatch(
OPEN_CHANNEL_OF_LIVE_AVATAR.title,
OPEN_CHANNEL_OF_LIVE_AVATAR.summary,
val openChannelOfLiveAvatarPatch = bytecodePatch(
CHANGE_LIVE_RING_CLICK_ACTION.title,
CHANGE_LIVE_RING_CLICK_ACTION.summary,
) {
compatibleWith(COMPATIBLE_PACKAGE)
@ -79,9 +79,9 @@ val layoutSwitchPatch = bytecodePatch(
arrayOf(
"PREFERENCE_SCREEN: GENERAL",
"PREFERENCE_CATEGORY: GENERAL_EXPERIMENTAL_FLAGS",
"SETTINGS: OPEN_CHANNEL_OF_LIVE_AVATAR"
"SETTINGS: CHANGE_LIVE_RING_CLICK_ACTION"
),
OPEN_CHANNEL_OF_LIVE_AVATAR
CHANGE_LIVE_RING_CLICK_ACTION
)
// endregion

View File

@ -21,6 +21,14 @@ internal enum class PatchList(
"Bypass URL redirects",
"Adds an option to bypass URL redirects and open the original URL directly."
),
CHANGE_LAYOUT(
"Change layout",
"Adds an option to change the dp in order to use a tablet or phone layout."
),
CHANGE_LIVE_RING_CLICK_ACTION(
"Change live ring click action",
"Adds an option to open the channel instead of the live stream when clicking on the live ring."
),
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."
@ -43,7 +51,7 @@ internal enum class PatchList(
),
CUSTOM_BRANDING_NAME_FOR_YOUTUBE(
"Custom branding name for YouTube",
"Renames the YouTube app to the name specified in patch options."
"Changes the YouTube app name to the name specified in patch options."
),
CUSTOM_DOUBLE_TAP_LENGTH(
"Custom double tap length",
@ -83,7 +91,7 @@ internal enum class PatchList(
),
ENABLE_OPUS_CODEC(
"Enable OPUS codec",
"Adds an options to enable the OPUS audio codec if the player response includes it."
"Adds an option to enable the OPUS audio codec if the player response includes it."
),
ENABLE_DEBUG_LOGGING(
"Enable debug logging",
@ -153,10 +161,6 @@ internal enum class PatchList(
"Hook download actions",
"Adds support to download videos with an external downloader app using the in-app download button."
),
LAYOUT_SWITCH(
"Layout switch",
"Adds an option to spoof the dpi in order to use a tablet or phone layout."
),
MATERIALYOU(
"MaterialYou",
"Applies the MaterialYou theme for Android 12+ devices."
@ -169,13 +173,9 @@ internal enum class PatchList(
"Navigation bar components",
"Adds options to hide or change components related to the navigation bar."
),
OPEN_CHANNEL_OF_LIVE_AVATAR(
"Open channel of live avatar",
"Adds an option to open channel instead of video when clicking on live avatar."
),
OPEN_LINKS_EXTERNALLY(
"Open links externally",
"Adds an option to always open links in your browser instead of in the in-app-browser."
"Adds an option to always open links in your browser instead of the in-app browser."
),
OVERLAY_BUTTONS(
"Overlay buttons",