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 @@