From 3b75286f605bf4c9b5b8c51345068718905fcba9 Mon Sep 17 00:00:00 2001
From: ScrubN <72096833+ScrubN@users.noreply.github.com>
Date: Mon, 22 Apr 2024 14:52:51 -0400
Subject: [PATCH] Update translations
---
TwitchDownloaderWPF/PageChatDownload.xaml.cs | 4 +--
TwitchDownloaderWPF/PageChatUpdate.xaml.cs | 4 +--
TwitchDownloaderWPF/PageClipDownload.xaml.cs | 4 +--
TwitchDownloaderWPF/PageVodDownload.xaml.cs | 2 +-
.../Translations/Strings.Designer.cs | 27 +++++++++++++++++++
.../Translations/Strings.es.resx | 9 +++++++
.../Translations/Strings.fr.resx | 9 +++++++
.../Translations/Strings.it.resx | 9 +++++++
.../Translations/Strings.ja.resx | 9 +++++++
.../Translations/Strings.pl.resx | 9 +++++++
.../Translations/Strings.pt-br.resx | 9 +++++++
TwitchDownloaderWPF/Translations/Strings.resx | 9 +++++++
.../Translations/Strings.ru.resx | 9 +++++++
.../Translations/Strings.tr.resx | 9 +++++++
.../Translations/Strings.uk.resx | 9 +++++++
.../Translations/Strings.zh.resx | 9 +++++++
.../WindowMassDownload.xaml.cs | 4 +--
TwitchDownloaderWPF/WindowUrlList.xaml.cs | 4 +--
18 files changed, 137 insertions(+), 11 deletions(-)
diff --git a/TwitchDownloaderWPF/PageChatDownload.xaml.cs b/TwitchDownloaderWPF/PageChatDownload.xaml.cs
index df342f9f..d0af3315 100644
--- a/TwitchDownloaderWPF/PageChatDownload.xaml.cs
+++ b/TwitchDownloaderWPF/PageChatDownload.xaml.cs
@@ -133,7 +133,7 @@ private async Task GetVideoInfo()
currentVideoTime = Settings.Default.UTCVideoTime ? videoTime : videoTime.ToLocalTime();
streamerId = int.Parse(videoInfo.data.video.owner.id);
viewCount = videoInfo.data.video.viewCount;
- game = videoInfo.data.video.game?.displayName ?? "Unknown";
+ game = videoInfo.data.video.game?.displayName ?? Translations.Strings.UnknownGame;
var urlTimeCodeMatch = TwitchRegex.UrlTimeCode.Match(textUrl.Text);
if (urlTimeCodeMatch.Success)
{
@@ -172,7 +172,7 @@ private async Task GetVideoInfo()
imgThumbnail.Source = image;
TimeSpan clipLength = TimeSpan.FromSeconds(clipInfo.data.clip.durationSeconds);
- textStreamer.Text = clipInfo.data.clip.broadcaster?.displayName ?? "Unknown User";
+ textStreamer.Text = clipInfo.data.clip.broadcaster?.displayName ?? Translations.Strings.UnknownUser;
var clipCreatedAt = clipInfo.data.clip.createdAt;
textCreatedAt.Text = Settings.Default.UTCVideoTime ? clipCreatedAt.ToString(CultureInfo.CurrentCulture) : clipCreatedAt.ToLocalTime().ToString(CultureInfo.CurrentCulture);
currentVideoTime = Settings.Default.UTCVideoTime ? clipCreatedAt : clipCreatedAt.ToLocalTime();
diff --git a/TwitchDownloaderWPF/PageChatUpdate.xaml.cs b/TwitchDownloaderWPF/PageChatUpdate.xaml.cs
index 793b3819..f47b5b78 100644
--- a/TwitchDownloaderWPF/PageChatUpdate.xaml.cs
+++ b/TwitchDownloaderWPF/PageChatUpdate.xaml.cs
@@ -107,11 +107,11 @@ private async void btnBrowse_Click(object sender, RoutedEventArgs e)
VideoLength = TimeSpan.FromSeconds(double.IsNegative(ChatJsonInfo.video.length) ? 0.0 : ChatJsonInfo.video.length);
labelLength.Text = VideoLength.Seconds > 0
? VideoLength.ToString("c")
- : Translations.Strings.Unknown;
+ : Translations.Strings.UnknownVideoLength;
VideoId = ChatJsonInfo.video.id ?? ChatJsonInfo.comments.FirstOrDefault()?.content_id ?? "-1";
ViewCount = ChatJsonInfo.video.viewCount;
- Game = ChatJsonInfo.video.game ?? ChatJsonInfo.video.chapters.FirstOrDefault()?.gameDisplayName ?? "Unknown";
+ Game = ChatJsonInfo.video.game ?? ChatJsonInfo.video.chapters.FirstOrDefault()?.gameDisplayName ?? Translations.Strings.UnknownGame;
try
{
diff --git a/TwitchDownloaderWPF/PageClipDownload.xaml.cs b/TwitchDownloaderWPF/PageClipDownload.xaml.cs
index e9d3251a..f4c5d8ff 100644
--- a/TwitchDownloaderWPF/PageClipDownload.xaml.cs
+++ b/TwitchDownloaderWPF/PageClipDownload.xaml.cs
@@ -71,14 +71,14 @@ private async Task GetClipInfo()
imgThumbnail.Source = image;
clipLength = TimeSpan.FromSeconds(taskClipInfo.Result.data.clip.durationSeconds);
- textStreamer.Text = clipData.data.clip.broadcaster?.displayName ?? "Unknown User";
+ textStreamer.Text = clipData.data.clip.broadcaster?.displayName ?? Translations.Strings.UnknownUser;
var clipCreatedAt = clipData.data.clip.createdAt;
textCreatedAt.Text = Settings.Default.UTCVideoTime ? clipCreatedAt.ToString(CultureInfo.CurrentCulture) : clipCreatedAt.ToLocalTime().ToString(CultureInfo.CurrentCulture);
currentVideoTime = Settings.Default.UTCVideoTime ? clipCreatedAt : clipCreatedAt.ToLocalTime();
textTitle.Text = clipData.data.clip.title;
labelLength.Text = clipLength.ToString("c");
viewCount = taskClipInfo.Result.data.clip.viewCount;
- game = taskClipInfo.Result.data.clip.game?.displayName ?? "Unknown";
+ game = taskClipInfo.Result.data.clip.game?.displayName ?? Translations.Strings.UnknownGame;
foreach (var quality in taskLinks.Result.data.clip.videoQualities)
{
diff --git a/TwitchDownloaderWPF/PageVodDownload.xaml.cs b/TwitchDownloaderWPF/PageVodDownload.xaml.cs
index ce79f332..075a30af 100644
--- a/TwitchDownloaderWPF/PageVodDownload.xaml.cs
+++ b/TwitchDownloaderWPF/PageVodDownload.xaml.cs
@@ -163,7 +163,7 @@ private async Task GetVideoInfo()
numEndSecond.Value = vodLength.Seconds;
labelLength.Text = vodLength.ToString("c");
viewCount = taskVideoInfo.Result.data.video.viewCount;
- game = taskVideoInfo.Result.data.video.game?.displayName ?? "Unknown";
+ game = taskVideoInfo.Result.data.video.game?.displayName ?? Translations.Strings.UnknownGame;
UpdateVideoSizeEstimates();
diff --git a/TwitchDownloaderWPF/Translations/Strings.Designer.cs b/TwitchDownloaderWPF/Translations/Strings.Designer.cs
index d6f759d0..956a54a0 100644
--- a/TwitchDownloaderWPF/Translations/Strings.Designer.cs
+++ b/TwitchDownloaderWPF/Translations/Strings.Designer.cs
@@ -2111,6 +2111,33 @@ public static string UnknownErrorOccurred {
}
}
+ ///
+ /// Looks up a localized string similar to Unknown Game.
+ ///
+ public static string UnknownGame {
+ get {
+ return ResourceManager.GetString("UnknownGame", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Unknown User.
+ ///
+ public static string UnknownUser {
+ get {
+ return ResourceManager.GetString("UnknownUser", resourceCulture);
+ }
+ }
+
+ ///
+ /// Looks up a localized string similar to Unknown.
+ ///
+ public static string UnknownVideoLength {
+ get {
+ return ResourceManager.GetString("UnknownVideoLength", resourceCulture);
+ }
+ }
+
///
/// Looks up a localized string similar to Update.
///
diff --git a/TwitchDownloaderWPF/Translations/Strings.es.resx b/TwitchDownloaderWPF/Translations/Strings.es.resx
index d5f05071..6ad12bb7 100644
--- a/TwitchDownloaderWPF/Translations/Strings.es.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.es.resx
@@ -862,4 +862,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
diff --git a/TwitchDownloaderWPF/Translations/Strings.fr.resx b/TwitchDownloaderWPF/Translations/Strings.fr.resx
index bcdd5216..f5460f90 100644
--- a/TwitchDownloaderWPF/Translations/Strings.fr.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.fr.resx
@@ -861,4 +861,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
\ No newline at end of file
diff --git a/TwitchDownloaderWPF/Translations/Strings.it.resx b/TwitchDownloaderWPF/Translations/Strings.it.resx
index ff19b1c5..2e2473b1 100644
--- a/TwitchDownloaderWPF/Translations/Strings.it.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.it.resx
@@ -862,4 +862,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
diff --git a/TwitchDownloaderWPF/Translations/Strings.ja.resx b/TwitchDownloaderWPF/Translations/Strings.ja.resx
index fbae71ff..1b0f6ff4 100644
--- a/TwitchDownloaderWPF/Translations/Strings.ja.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.ja.resx
@@ -860,4 +860,13 @@
フォルダを開く
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
\ No newline at end of file
diff --git a/TwitchDownloaderWPF/Translations/Strings.pl.resx b/TwitchDownloaderWPF/Translations/Strings.pl.resx
index 71e17bcd..c2da5a9a 100644
--- a/TwitchDownloaderWPF/Translations/Strings.pl.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.pl.resx
@@ -861,4 +861,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
\ No newline at end of file
diff --git a/TwitchDownloaderWPF/Translations/Strings.pt-br.resx b/TwitchDownloaderWPF/Translations/Strings.pt-br.resx
index 0ad6326d..594f330f 100644
--- a/TwitchDownloaderWPF/Translations/Strings.pt-br.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.pt-br.resx
@@ -860,4 +860,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
\ No newline at end of file
diff --git a/TwitchDownloaderWPF/Translations/Strings.resx b/TwitchDownloaderWPF/Translations/Strings.resx
index 9faba130..c4f2b47c 100644
--- a/TwitchDownloaderWPF/Translations/Strings.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.resx
@@ -860,4 +860,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
\ No newline at end of file
diff --git a/TwitchDownloaderWPF/Translations/Strings.ru.resx b/TwitchDownloaderWPF/Translations/Strings.ru.resx
index 3d8d579c..ef340029 100644
--- a/TwitchDownloaderWPF/Translations/Strings.ru.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.ru.resx
@@ -861,4 +861,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
\ No newline at end of file
diff --git a/TwitchDownloaderWPF/Translations/Strings.tr.resx b/TwitchDownloaderWPF/Translations/Strings.tr.resx
index cc92ce6e..02b72503 100644
--- a/TwitchDownloaderWPF/Translations/Strings.tr.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.tr.resx
@@ -862,4 +862,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
\ No newline at end of file
diff --git a/TwitchDownloaderWPF/Translations/Strings.uk.resx b/TwitchDownloaderWPF/Translations/Strings.uk.resx
index 840ee946..81658c65 100644
--- a/TwitchDownloaderWPF/Translations/Strings.uk.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.uk.resx
@@ -861,4 +861,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
diff --git a/TwitchDownloaderWPF/Translations/Strings.zh.resx b/TwitchDownloaderWPF/Translations/Strings.zh.resx
index e81cb51f..fa8cca98 100644
--- a/TwitchDownloaderWPF/Translations/Strings.zh.resx
+++ b/TwitchDownloaderWPF/Translations/Strings.zh.resx
@@ -860,4 +860,13 @@
Open folder
+
+ Unknown User
+
+
+ Unknown Game
+
+
+ Unknown
+
\ No newline at end of file
diff --git a/TwitchDownloaderWPF/WindowMassDownload.xaml.cs b/TwitchDownloaderWPF/WindowMassDownload.xaml.cs
index 254f4820..4bece641 100644
--- a/TwitchDownloaderWPF/WindowMassDownload.xaml.cs
+++ b/TwitchDownloaderWPF/WindowMassDownload.xaml.cs
@@ -103,7 +103,7 @@ private async Task UpdateList()
Time = Settings.Default.UTCVideoTime ? video.node.createdAt : video.node.createdAt.ToLocalTime(),
Views = video.node.viewCount,
Streamer = currentChannel,
- Game = video.node.game?.displayName ?? "Unknown",
+ Game = video.node.game?.displayName ?? Translations.Strings.UnknownGame,
Thumbnail = thumbnail
});
}
@@ -145,7 +145,7 @@ private async Task UpdateList()
Time = Settings.Default.UTCVideoTime ? clip.node.createdAt : clip.node.createdAt.ToLocalTime(),
Views = clip.node.viewCount,
Streamer = currentChannel,
- Game = clip.node.game?.displayName ?? "Unknown",
+ Game = clip.node.game?.displayName ?? Translations.Strings.UnknownGame,
Thumbnail = thumbnail
});
}
diff --git a/TwitchDownloaderWPF/WindowUrlList.xaml.cs b/TwitchDownloaderWPF/WindowUrlList.xaml.cs
index 00af0f35..47eb98ed 100644
--- a/TwitchDownloaderWPF/WindowUrlList.xaml.cs
+++ b/TwitchDownloaderWPF/WindowUrlList.xaml.cs
@@ -101,7 +101,7 @@ private async void btnQueue_Click(object sender, RoutedEventArgs e)
Streamer = videoInfo.owner.displayName,
Time = Settings.Default.UTCVideoTime ? videoInfo.createdAt : videoInfo.createdAt.ToLocalTime(),
Views = videoInfo.viewCount,
- Game = videoInfo.game?.displayName ?? "Unknown",
+ Game = videoInfo.game?.displayName ?? Translations.Strings.UnknownGame,
Length = videoInfo.lengthSeconds
});
}
@@ -139,7 +139,7 @@ private async void btnQueue_Click(object sender, RoutedEventArgs e)
Streamer = clipInfo.broadcaster.displayName,
Time = Settings.Default.UTCVideoTime ? clipInfo.createdAt : clipInfo.createdAt.ToLocalTime(),
Views = clipInfo.viewCount,
- Game = clipInfo.game?.displayName ?? "Unknown",
+ Game = clipInfo.game?.displayName ?? Translations.Strings.UnknownGame,
Length = clipInfo.durationSeconds
});
}