From 26829acecacd9d782755bff60aa1e77e9c632453 Mon Sep 17 00:00:00 2001
From: inotia00 <108592928+inotia00@users.noreply.github.com>
Date: Sat, 20 Apr 2024 22:51:14 +0900
Subject: [PATCH] chore: add string format indexes, to allow more flexible
translations
---
.../music/settings/host/values/strings.xml | 18 ++---
.../youtube/settings/host/values/strings.xml | 67 ++++++++++---------
2 files changed, 43 insertions(+), 42 deletions(-)
diff --git a/src/main/resources/music/settings/host/values/strings.xml b/src/main/resources/music/settings/host/values/strings.xml
index f69ab5d9b..6640648d9 100644
--- a/src/main/resources/music/settings/host/values/strings.xml
+++ b/src/main/resources/music/settings/host/values/strings.xml
@@ -26,18 +26,18 @@
Change start page
Configure which components to filter, separated by new lines.
Edit custom filter
- Invalid custom filter: %s.
+ Invalid custom filter: %s.
Enables the custom filter to hide layout components.
Enable custom filter
Invalid custom playback speeds. Speeds reset to default.
Configure the available playback speeds.
Edit custom playback speeds
- Custom speeds can\'t be more than %sx.
+ Custom speeds can\'t be more than %sx.
Disables captions from being automatically enabled.
Disable forced auto captions
Disables redirection to the next track when clicking dislike button.
Disable dislike redirection
- %s is not installed. Please install it.
+ %s is not installed. Please install it.
Sets the navigation bar color to black.
Enable black navigation bar
Matches the color of the miniplayer to the fullscreen player.
@@ -92,7 +92,7 @@ Some features may not work properly in the old player layout."
Settings reset to default.
Imported %d settings.
Reset
- %s is not installed. Please install it.
+ %s is not installed. Please install it.
Package name of your installed external downloader app, such as NewPipe or YTDLnis.
External downloader package name
Watch on YouTube
@@ -229,7 +229,7 @@ Known issue: If one or more music that cannot be played in the playlist, it does
Dislikes as percentage
Shows the dislike count of videos.
Dislikes are temporarily unavailable (API timed out).
- Dislikes are unavailable (status %d).
+ Dislikes are unavailable (status %d).
Dislikes are unavailable (client API limit reached).
Dislikes are unavailable (%s).
Shows a toast if the Return YouTube Dislike API is unavailable.
@@ -237,10 +237,10 @@ Known issue: If one or more music that cannot be played in the playlist, it does
Hidden
Removes tracking query parameters from URLs when sharing links.
Sanitize sharing links
- Changing default speed to %s.
- Changing default mobile data quality to %s.
+ Changing default speed to %s.
+ Changing default mobile data quality to %s.
Failed to set quality.
- Changing default Wi-Fi quality to %s.
+ Changing default Wi-Fi quality to %s.
Settings copied to clipboard.
"Spoofs the client version to an older version.
@@ -303,7 +303,7 @@ Known issue: If one or more music that cannot be played in the playlist, it does
Disable
SponsorBlock is temporarily unavailable.
- SponsorBlock is temporarily unavailable (status %d).
+ SponsorBlock is temporarily unavailable (status %d).
SponsorBlock is temporarily unavailable (API timed out).
Color:
diff --git a/src/main/resources/youtube/settings/host/values/strings.xml b/src/main/resources/youtube/settings/host/values/strings.xml
index ce5175d7d..716afa842 100644
--- a/src/main/resources/youtube/settings/host/values/strings.xml
+++ b/src/main/resources/youtube/settings/host/values/strings.xml
@@ -335,13 +335,13 @@ Some components may not be hidden."
Custom filter
Hide components using custom filters.
-
Enable custom filter
Custom filter is enabled.
Custom filter is disabled.
Custom filter
+
List of component path builder strings to filter separated by new line.
- Invalid custom filter: %s.
+ Invalid custom filter: %s.
Navigation buttons
@@ -715,14 +715,14 @@ Tap and hold to set playback speed to 1.0x."
Package name of your installed external downloader app, such as NewPipe or YTDLnis.
External downloader
Warning
- "%s is not installed.
-Please download %s from the website."
- %s is not installed. Please install it.
+ "%1$s is not installed.
+Please download %2$s from the website."
+ %s is not installed. Please install it.
Override download action button
Download button opens your external downloader
Download button opens the native in-app downloader
- Time stamp copied to clipboard. (%s)
+ Time stamp copied to clipboard. (%s)
URL copied to clipboard.
URL with timestamp copied to clipboard.
@@ -952,12 +952,12 @@ Limitation: Official headers in search results will be hidden."
Show a toast when skipped
Toast is shown.
Toast is not shown.
- Changing default speed to %s.
- Changing default mobile data quality to %s.
+ Changing default speed to %s.
+ Changing default mobile data quality to %s.
Failed to set video quality.
- Changing default Wi-Fi quality to %s.
+ Changing default Wi-Fi quality to %s.
Invalid custom playback speeds. Reset to default values.
- Custom speeds can\'t be more than %sx. Reset to default values.
+ Custom speeds can\'t be more than %sx. Reset to default values.
@@ -976,6 +976,9 @@ Limitation: Official headers in search results will be hidden."
Compact like button
Like button styled for minimum width.
Like button styled for best appearance.
+ Show a toast if API is not available
+ Toast is shown if Return YouTube Dislike is not available.
+ Toast is not shown if Return YouTube Dislike is not available.
About
@@ -983,12 +986,10 @@ Limitation: Official headers in search results will be hidden."
Dislike data is provided by the Return YouTube Dislike API. Tap here to learn more.
Dislikes temporarily not available (API timed out).
- Dislikes not available (status %d).
+ Dislikes not available (status %d).
Dislikes not available (client API limit reached).
Dislikes not available (%s).
- Show a toast if API is not available
- Toast is not shown if Return YouTube Dislike is not available.
- Toast is shown if Return YouTube Dislike is not available.
+ Reload video to vote using Return YouTube Dislike
Hidden
@@ -1128,20 +1129,20 @@ Limitation: Official headers in search results will be hidden."
Do not show again
SponsorBlock temporarily not available.
- SponsorBlock temporarily not available (status %d).
+ SponsorBlock temporarily not available (status %d).
SponsorBlock temporarily not available (API timed out).
- Unable to submit segment: %s.
+ Unable to submit segment: %s.
SponsorBlock is temporarily down.
- Unable to submit segment (status: %d %s).
+ Unable to submit segment (status: %1$d %2$s).
Unable to submit segment.\nRate Limited (too many from the same user or IP).
- Can\'t submit the segment: %s.
+ Can\'t submit the segment: %s.
Can\'t submit the segment.\nAlready exists.
Segment submitted successfully.
Unable to vote for segment (API timed out).
- Unable to vote for segment (status: %d %s).
- Unable to vote for segment: %s.
+ Unable to vote for segment (status: %1$d %2$s).
+ Unable to vote for segment: %s.
Upvote
Downvote
Change category
@@ -1150,14 +1151,14 @@ Limitation: Official headers in search results will be hidden."
Choose the segment category
Category is disabled in settings. Enable category to submit.
New SponsorBlock segment
- Set %02d:%02d:%03d as the start or end of a new segment?
+ Set %1$02d:%2$02d:%3$03d as the start or end of a new segment?
start
end
now
Time the segment begins at
Time the segment ends at
Are the times correct?
- The segment lasts from %02d:%02d to %02d:%02d (%d minutes %02d seconds)\nIs it ready to submit?
+ The segment lasts from %1$02d:%2$02d to %3$02d:%4$02d (%5$d minutes %6$02d seconds)\nIs it ready to submit?
Start must be before the end.
Mark two locations on the time bar first.
Preview the segment, and ensure it skips smoothly.
@@ -1170,22 +1171,22 @@ Limitation: Official headers in search results will be hidden."
Stats temporarily not available (API is down).
Loading...
SponsorBlock is disabled.
- Your username: <b>%s</b>
+ Your username: <b>%s</b>
Tap here to change your username
- Unable to change username: Status: %d %s.
+ Unable to change username: Status: %1$d %2$s.
Username successfully changed.
- Your reputation is <b>%.2f</b>
- You\'ve created <b>%s</b> segments
+ Your reputation is <b>%.2f</b>
+ You\'ve created <b>%s</b> segments
SponsorBlock leaderboard
- You\'ve saved people from <b>%s</b> segments
+ You\'ve saved people from <b>%s</b> segments
Tap here to see the global stats and top contributors.
- That\'s <b>%s</b> of their lives.<br>Tap here to see the leaderboard.
- You\'ve skipped <b>%s</b> segments
- That\'s <b>%s</b>.
+ That\'s <b>%s</b> of their lives.<br>Tap here to see the leaderboard.
+ You\'ve skipped <b>%s</b> segments
+ That\'s <b>%s</b>.
Reset skipped segments counter?
- %s hours %s minutes
- %s minutes %s seconds
- %s seconds
+ %1$s hours %2$s minutes
+ %1$s minutes %2$s seconds
+ %s seconds
About