Skip to content

Commit b7b836e

Browse files
committed
Update the names of YT kiosks
1 parent d96c0ae commit b7b836e

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

app/src/main/java/org/schabi/newpipe/util/KioskTranslator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ public static String getTranslatedKioskName(final String kioskId, final Context
5353
case "Radio":
5454
return c.getString(R.string.radio);
5555
case "trending_gaming":
56-
return c.getString(R.string.gaming);
56+
return c.getString(R.string.trending_gaming);
5757
case "trending_music":
58-
return c.getString(R.string.music);
58+
return c.getString(R.string.trending_music);
5959
case "trending_movies_and_shows":
60-
return c.getString(R.string.movies);
60+
return c.getString(R.string.trending_movies);
6161
case "trending_podcasts_episodes":
62-
return c.getString(R.string.podcasts);
62+
return c.getString(R.string.trending_podcasts);
6363
default:
6464
return kioskId;
6565
}

app/src/main/java/org/schabi/newpipe/util/Localization.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,9 +388,10 @@ public static String relativeTime(@NonNull final OffsetDateTime offsetDateTime)
388388
* {@code parsed != null} and the relevant setting is enabled, {@code textual} will
389389
* be appended to the returned string for debugging purposes.
390390
*/
391+
@Nullable
391392
public static String relativeTimeOrTextual(@Nullable final Context context,
392393
@Nullable final DateWrapper parsed,
393-
final String textual) {
394+
@Nullable final String textual) {
394395
if (parsed == null) {
395396
return textual;
396397
} else if (DEBUG && context != null && PreferenceManager

app/src/main/res/values/strings.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -868,8 +868,8 @@
868868
<string name="migration_info_6_7_message">SoundCloud has discontinued the original Top 50 charts. The corresponding tab has been removed from your main page.</string>
869869
<string name="migration_info_7_8_title">YouTube combined trending removed</string>
870870
<string name="migration_info_7_8_message">YouTube has discontinued the combined trending page as of 21st July 2025. NewPipe replaced the default trending page with the trending livestreams.\n\nYou can also select different trending pages in \"Settings > Content > Content of main page\".</string>
871-
<string name="gaming">Gaming</string>
872-
<string name="music">Music</string>
873-
<string name="movies">Movies</string>
874-
<string name="podcasts">Podcasts</string>
871+
<string name="trending_gaming">Gaming trends</string>
872+
<string name="trending_podcasts">Trending podcasts</string>
873+
<string name="trending_movies">Trending movies and shows</string>
874+
<string name="trending_music">Trending music</string>
875875
</resources>

0 commit comments

Comments
 (0)