From 50a0859360bce4a220de7e31422cdaa3f9602d9a Mon Sep 17 00:00:00 2001 From: Scrub <72096833+ScrubN@users.noreply.github.com> Date: Thu, 5 Sep 2024 17:28:11 -0400 Subject: [PATCH] Cleanup (#1209) * Remove redundant styling * Change string.Replace to string.Format * Fix cut off status in queue --- TwitchDownloaderWPF/PageQueue.xaml | 4 ++-- TwitchDownloaderWPF/Services/ThemeService.cs | 2 +- TwitchDownloaderWPF/Translations/Strings.Designer.cs | 2 +- TwitchDownloaderWPF/Translations/Strings.es.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.fr.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.it.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.ja.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.pl.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.pt-br.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.ru.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.tr.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.uk.resx | 3 +-- TwitchDownloaderWPF/Translations/Strings.zh-cn.resx | 3 +-- 14 files changed, 15 insertions(+), 26 deletions(-) diff --git a/TwitchDownloaderWPF/PageQueue.xaml b/TwitchDownloaderWPF/PageQueue.xaml index 1f8431cb..a6b14c04 100644 --- a/TwitchDownloaderWPF/PageQueue.xaml +++ b/TwitchDownloaderWPF/PageQueue.xaml @@ -78,7 +78,7 @@ - + - diff --git a/TwitchDownloaderWPF/Services/ThemeService.cs b/TwitchDownloaderWPF/Services/ThemeService.cs index 513c45d7..172fc03c 100644 --- a/TwitchDownloaderWPF/Services/ThemeService.cs +++ b/TwitchDownloaderWPF/Services/ThemeService.cs @@ -49,7 +49,7 @@ public ThemeService(App app, WindowsThemeService windowsThemeService) if (!Settings.Default.GuiTheme.Equals("System", StringComparison.OrdinalIgnoreCase) && !File.Exists(Path.Combine("Themes", $"{Settings.Default.GuiTheme}.xaml"))) { MessageBox.Show( - Translations.Strings.ThemeNotFoundMessage.Replace("{theme}", $"{Settings.Default.GuiTheme}.xaml"), + string.Format(Translations.Strings.ThemeNotFoundMessage, $"{Settings.Default.GuiTheme}.xaml"), Translations.Strings.ThemeNotFound, MessageBoxButton.OK, MessageBoxImage.Information); diff --git a/TwitchDownloaderWPF/Translations/Strings.Designer.cs b/TwitchDownloaderWPF/Translations/Strings.Designer.cs index c3138f44..43bb4510 100644 --- a/TwitchDownloaderWPF/Translations/Strings.Designer.cs +++ b/TwitchDownloaderWPF/Translations/Strings.Designer.cs @@ -2067,7 +2067,7 @@ public static string ThemeNotFound { } /// - /// Looks up a localized string similar to {theme} was not found. Reverting theme to System. + /// Looks up a localized string similar to {0} was not found. Reverting theme to System. /// public static string ThemeNotFoundMessage { get { diff --git a/TwitchDownloaderWPF/Translations/Strings.es.resx b/TwitchDownloaderWPF/Translations/Strings.es.resx index eb354af6..d2ee2578 100644 --- a/TwitchDownloaderWPF/Translations/Strings.es.resx +++ b/TwitchDownloaderWPF/Translations/Strings.es.resx @@ -628,8 +628,7 @@ Tema no encontrado - {theme} no se ha encontrado. Revertir tema a Sistema - No traducir {theme} + {0} no se ha encontrado. Revertir tema a Sistema Dispersion diff --git a/TwitchDownloaderWPF/Translations/Strings.fr.resx b/TwitchDownloaderWPF/Translations/Strings.fr.resx index 2861a1c1..c12a158f 100644 --- a/TwitchDownloaderWPF/Translations/Strings.fr.resx +++ b/TwitchDownloaderWPF/Translations/Strings.fr.resx @@ -628,8 +628,7 @@ Le thème n'a pas été trouvé - {theme} n'a pas été trouvé. Passage au thème système - Do not translate {theme} + {0} n'a pas été trouvé. Passage au thème système Dispersion diff --git a/TwitchDownloaderWPF/Translations/Strings.it.resx b/TwitchDownloaderWPF/Translations/Strings.it.resx index df1ffa21..fa1db3ff 100644 --- a/TwitchDownloaderWPF/Translations/Strings.it.resx +++ b/TwitchDownloaderWPF/Translations/Strings.it.resx @@ -628,8 +628,7 @@ Tema non trovato - {theme} non è stato trovato. Ripristina tema a Sistema - Non tradurre {theme} + {0} non è stato trovato. Ripristina tema a Sistema Dispersione diff --git a/TwitchDownloaderWPF/Translations/Strings.ja.resx b/TwitchDownloaderWPF/Translations/Strings.ja.resx index 1ad82b49..34b3998f 100644 --- a/TwitchDownloaderWPF/Translations/Strings.ja.resx +++ b/TwitchDownloaderWPF/Translations/Strings.ja.resx @@ -628,8 +628,7 @@ テーマが見つかりませんでした - {theme} が見つかりませんでした。 テーマをシステムに戻す。 - Do not translate {theme} + {0} が見つかりませんでした。 テーマをシステムに戻す。 分散 diff --git a/TwitchDownloaderWPF/Translations/Strings.pl.resx b/TwitchDownloaderWPF/Translations/Strings.pl.resx index e3b04be3..4e806e55 100644 --- a/TwitchDownloaderWPF/Translations/Strings.pl.resx +++ b/TwitchDownloaderWPF/Translations/Strings.pl.resx @@ -628,8 +628,7 @@ Motyw nie znaleziony - {theme} nie został znaleziony. Przywracanie Systemowego motywu - Do not translate {theme} + {0} nie został znaleziony. Przywracanie Systemowego motywu Rozproszenie diff --git a/TwitchDownloaderWPF/Translations/Strings.pt-br.resx b/TwitchDownloaderWPF/Translations/Strings.pt-br.resx index 595285be..1b1e1f4c 100644 --- a/TwitchDownloaderWPF/Translations/Strings.pt-br.resx +++ b/TwitchDownloaderWPF/Translations/Strings.pt-br.resx @@ -632,8 +632,7 @@ Tema não encontrado - {theme} não foi encontrado. Revertendo tema pro Sistema - Não Traduza {theme} + {0} não foi encontrado. Revertendo tema pro Sistema Dispersação diff --git a/TwitchDownloaderWPF/Translations/Strings.resx b/TwitchDownloaderWPF/Translations/Strings.resx index f92974c8..9a620884 100644 --- a/TwitchDownloaderWPF/Translations/Strings.resx +++ b/TwitchDownloaderWPF/Translations/Strings.resx @@ -628,8 +628,7 @@ Theme not found - {theme} was not found. Reverting theme to System - Do not translate {theme} + {0} was not found. Reverting theme to System Dispersion diff --git a/TwitchDownloaderWPF/Translations/Strings.ru.resx b/TwitchDownloaderWPF/Translations/Strings.ru.resx index 07ae0e50..591d0baf 100644 --- a/TwitchDownloaderWPF/Translations/Strings.ru.resx +++ b/TwitchDownloaderWPF/Translations/Strings.ru.resx @@ -628,8 +628,7 @@ Тема не найденна - {theme} не найденна. Откат на системную - Do not translate {theme} + {0} не найденна. Откат на системную Разбиение diff --git a/TwitchDownloaderWPF/Translations/Strings.tr.resx b/TwitchDownloaderWPF/Translations/Strings.tr.resx index b4a31ed0..23ea271b 100644 --- a/TwitchDownloaderWPF/Translations/Strings.tr.resx +++ b/TwitchDownloaderWPF/Translations/Strings.tr.resx @@ -629,8 +629,7 @@ Tema bulunamadı - {theme} bulunamadı. Sistem temasına geri döndürülüyor - Do not translate {theme} + {0} bulunamadı. Sistem temasına geri döndürülüyor Dağıtma diff --git a/TwitchDownloaderWPF/Translations/Strings.uk.resx b/TwitchDownloaderWPF/Translations/Strings.uk.resx index 74ef98e8..95df1ada 100644 --- a/TwitchDownloaderWPF/Translations/Strings.uk.resx +++ b/TwitchDownloaderWPF/Translations/Strings.uk.resx @@ -628,8 +628,7 @@ Тему не знайдено - {theme} не знайдено. Повертаємо тему до системної - Do not translate {theme} + {0} не знайдено. Повертаємо тему до системної Розсіювання diff --git a/TwitchDownloaderWPF/Translations/Strings.zh-cn.resx b/TwitchDownloaderWPF/Translations/Strings.zh-cn.resx index dbe3a5b3..06d5de43 100644 --- a/TwitchDownloaderWPF/Translations/Strings.zh-cn.resx +++ b/TwitchDownloaderWPF/Translations/Strings.zh-cn.resx @@ -628,8 +628,7 @@ 未找到主题 - 未找到 {theme}。将主题还原为系统。 - Do not translate {theme} + 未找到 {0}。将主题还原为系统。 散布