From 4c6a4ddd1c333e82e7342287ca3ffaf102327cb2 Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:19:03 +0400 Subject: [PATCH] chore: Add comments for translations --- .../layout/hide/comments/CommentsPatch.kt | 7 +- .../resources/addresources/values/strings.xml | 123 ++++++++++++++---- 2 files changed, 101 insertions(+), 29 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt index 9cdb9c9b9..fdc90bf69 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/layout/hide/comments/CommentsPatch.kt @@ -55,9 +55,10 @@ object CommentsPatch : ResourcePatch() { PreferenceScreen( "revanced_comments_screen", preferences = setOf( - SwitchPreference("revanced_hide_comments_section"), - SwitchPreference("revanced_hide_preview_comment") - ) + SwitchPreference("revanced_hide_preview_comment"), + SwitchPreference("revanced_hide_comments_section") + ), + sorting = PreferenceScreen.Sorting.UNSORTED ) ) diff --git a/src/main/resources/addresources/values/strings.xml b/src/main/resources/addresources/values/strings.xml index 76390aec9..62e5dc3dc 100644 --- a/src/main/resources/addresources/values/strings.xml +++ b/src/main/resources/addresources/values/strings.xml @@ -13,9 +13,9 @@ Import failed: %s - + GmsCore is not installed. Install it. - + Follow the \"Don\'t kill my app\" guide for GmsCore. Action needed GmsCore is not whitelisted from battery optimization.\n\nFollow the \"Don\'t kill my app\" guide for GmsCore. @@ -62,24 +62,30 @@ Hide gray separator Gray separators are hidden Gray separators are shown - Hide \'Join\' button - Button is hidden - Button is shown Hide channel watermark Watermark is hidden Watermark is shown + + Hide \'Join\' button + Button is hidden + Button is shown + Hide \'For you\' shelf in channel page Shelf is hidden Shelf is shown + Hide \'Notify me\' button Button is hidden Button is shown - Hide timed reactions - Timed reactions are hidden - Timed reactions are shown + Hide \'People also watched\' recommendations Recommendations are hidden Recommendations are shown + Hide timed reactions + Timed reactions are hidden + Timed reactions are shown Hide search result shelf header Shelf header is hidden Shelf header is shown @@ -186,11 +192,14 @@ Search results are filtered by keywords Search results are not filtered by keywords Keywords to hide + Keywords and phrases to hide, separated by new lines\n\nWords with uppercase letters in the middle must be entered with the casing (ie: iPhone, TikTok, LeBlanc) About keyword filtering Home/Subscription/Search results are filtered to hide content that matches keyword phrases\n\nLimitations\n• Some Shorts may not be hidden\n• Some UI components may not be hidden\n• Searching for a keyword may show no results Invalid keyword. Cannot use: \'%s\' as a filter - Invalid keyword. \'%1$s\' is less than %2$s characters + Invalid keyword. \'%1$s\' is less than %2$d characters Hide general ads @@ -199,7 +208,7 @@ Hide fullscreen ads Fullscreen ads are hidden Fullscreen ads are shown - Hide buttoned ad + Hide buttoned ads Buttoned ads are hidden Buttoned ads are shown Hide paid content @@ -220,7 +229,7 @@ Hide merchandise banners Merchandise banners are hidden Merchandise banners are shown - Failed to hide full-screen ad. Disabling to prevent issues + Could not hide fullscreen ad. Hide setting disabled to prevent issues. Hide YouTube Premium promotions @@ -254,6 +263,7 @@ Show external download button Download button shown in player Download button not shown in player + Override download action button Download button opens your external downloader Download button opens the native in-app downloader @@ -307,27 +317,38 @@ Hide Like and Dislike Like and Dislike buttons are hidden Like and Dislike buttons are shown + Hide Share Share button is hidden Share button is shown + Hide Report Report button is hidden Report button is shown + Hide Remix Remix button is hidden Remix button is shown + Hide Download Download button is hidden Download button is shown + Hide Thanks Thanks button is hidden Thanks button is shown + Hide Clip Clip button is hidden Clip button is shown + Hide Save to playlist Save to playlist button is hidden Save to playlist button is shown + Hide Shop Shop button is hidden Shop button is shown @@ -338,6 +359,8 @@ Autoplay button is shown + Hide captions button Captions button is hidden Captions button is shown @@ -350,18 +373,23 @@ Navigation buttons Hide or change buttons in the navigation bar + Hide Home Home button is hidden Home button is shown + Hide Shorts Shorts button is hidden Shorts button is shown + Hide Create Create button is hidden Create button is shown + Hide Subscriptions Subscriptions button is hidden Subscriptions button is shown + Switch Create with Notifications Create button is switched with Notifications button Create button is not switched with Notifications button @@ -369,36 +397,49 @@ Flyout menu Hide or show player flyout menu items + Hide Captions Captions menu is hidden Captions menu is shown + Hide Additional settings Additional settings menu is hidden Additional settings menu is shown + Hide Loop video Loop video menu is hidden Loop video menu is shown + Hide Ambient mode Ambient mode menu is hidden Ambient mode menu is shown + Hide Report Report menu is hidden Report menu is shown + Hide Help & feedback Help & feedback menu is hidden Help & feedback menu is shown + Hide Playback speed Playback speed menu is hidden Playback speed menu is shown + Hide More info More info menu is hidden More info menu is shown + Hide Lock screen Lock screen menu is hidden Lock screen menu is shown + Hide Audio track Audio track menu is hidden Audio track menu is shown + Hide Watch in VR Watch in VR menu is hidden Watch in VR menu is shown @@ -421,12 +462,12 @@ Comments Hide or show comments section components - Hide comments section - Comment section is hidden - Comment section is shown Hide preview comment Preview comment is hidden Preview comment is shown + Hide comments section + Comment section is hidden + Comment section is shown Hide crowdfunding box @@ -467,6 +508,8 @@ Info cards are shown + Hide \'Load More\' button Button is hidden Button is shown @@ -488,21 +531,27 @@ Hide Shorts in home feed Shorts in home feed are hidden Shorts in home feed are shown + Hide Shorts in subscription feed Shorts in subscription feed are hidden Shorts in subscription feed are shown Hide Shorts in search results Shorts in search results are hidden Shorts in search results are shown + Hide join button Join button is hidden Join button is shown + Hide subscribe button Subscribe button is hidden Subscribe button is shown + Hide subscribe button when paused Subscribe button is hidden Subscribe button is shown + Hide thanks button Thanks button is hidden Thanks button is shown @@ -515,9 +564,11 @@ Hide comments button Comments button is hidden Comments button is shown + Hide remix button Remix button is hidden Remix button is shown + Hide share button Share button is hidden Share button is shown @@ -531,11 +582,11 @@ Title is hidden Title is shown Hide sound metadata label - Label is hidden - Label is shown + Metadata label is hidden + Metadata label is shown Hide full video link label - Label is hidden - Label is shown + Video link label is hidden + Video link label is shown Hide sound button Sound button is hidden Sound button is shown @@ -565,23 +616,28 @@ Return YouTube Dislike Hidden + Dislikes temporarily not available (API timed out) Dislikes not available (status %d) Dislikes not available (client API limit reached) Dislikes not available (%s) - + Reload video to vote using ReturnYouTubeDislike Return YouTube Dislike Dislikes are shown Dislikes are not shown Show dislikes on Shorts - + Dislikes shown on Shorts %s Dislikes hidden on Shorts + Limitation: Dislikes may not appear in incognito mode Dislikes as percentage Dislikes shown as percentage Dislikes shown as number + Compact like button Like button styled for minimum width Like button styled for best appearance @@ -591,7 +647,7 @@ About ReturnYouTubeDislike.com Data is provided by the Return YouTube Dislike API. Tap here to learn more - + ReturnYouTubeDislike API statistics of this device API response time, average API response time, minimum @@ -627,6 +683,7 @@ Show voting button Segment voting button is shown Segment voting button is not shown + Use compact skip button Skip button styled for minimum width Skip button styled for best appearance @@ -671,7 +728,10 @@ API URL changed Import/Export settings Copy + Your SponsorBlock JSON configuration that can be imported/exported to ReVanced and other SponsorBlock platforms %s + This includes your private user id. Be sure to share this wisely Settings imported successfully Failed to import: %s @@ -740,9 +800,11 @@ Can\'t submit the segment: %s Can\'t submit the segment.\nAlready exists Segment submitted successfully - SponsorBlock temporarily not available - SponsorBlock temporarily not available (status %d) + SponsorBlock temporarily not available (API timed out) + SponsorBlock temporarily not available (status %d) + SponsorBlock temporarily not available Unable to vote for segment (API timed out) Unable to vote for segment (status: %1$d %2$s) Unable to vote for segment: %s @@ -768,6 +830,7 @@ Do you want to edit the timing for the start or end of the segment? Invalid time given Stats + Stats temporarily not available (API is down) Loading... SponsorBlock is disabled @@ -805,7 +868,7 @@ Spoof app version target - + 18.33.40 - Restore RYD on Shorts incognito mode 18.20.39 - Restore wide video speed & quality menu 18.09.39 - Restore library tab @@ -815,13 +878,17 @@ Set start page Default + Home Search + Subscriptions Explore Shorts - Library + + You tab Liked videos + History Trending @@ -855,8 +922,11 @@ Invalid seekbar color value. Using default value. + Home tab + Subscription tab + You tab Player playlists, recommendations Search results @@ -901,7 +971,7 @@ Device dimensions spoofed Device dimensions not spoofed\n\nSpoofing the device dimensions can unlock higher video qualities but unknown side effects may occur - + Spoof app signature Spoof the app signature to prevent playback issues @@ -1027,6 +1097,7 @@ Channel Points are not claimed automatically + Enable Twitch debug mode Twitch debug mode is enabled (not recommended) Twitch debug mode is disabled