From 0794acd235a515f6fa60944d0c6d52bde50b8b2d Mon Sep 17 00:00:00 2001 From: primetime43 <12754111+primetime43@users.noreply.github.com> Date: Mon, 18 May 2026 20:17:08 -0400 Subject: [PATCH] Localize export and delete tooltips Add ExportTooltip and DeleteMessagesTooltip properties to LocalizationManager and provide translations (EN, FR, DE, ES, UK). Update DashboardView.axaml to bind the export/delete icon tooltips to the localization strings so they can be translated. --- .../Localization/LocalizationManager.English.cs | 2 ++ .../Localization/LocalizationManager.French.cs | 2 ++ .../Localization/LocalizationManager.German.cs | 2 ++ .../Localization/LocalizationManager.Spanish.cs | 2 ++ .../Localization/LocalizationManager.Ukrainian.cs | 2 ++ DiscordChatExporter.Gui/Localization/LocalizationManager.cs | 2 ++ DiscordChatExporter.Gui/Views/Components/DashboardView.axaml | 4 ++-- 7 files changed, 14 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter.Gui/Localization/LocalizationManager.English.cs b/DiscordChatExporter.Gui/Localization/LocalizationManager.English.cs index c7272a2e..eb9cfd3f 100644 --- a/DiscordChatExporter.Gui/Localization/LocalizationManager.English.cs +++ b/DiscordChatExporter.Gui/Localization/LocalizationManager.English.cs @@ -11,6 +11,8 @@ public partial class LocalizationManager [nameof(PullGuildsTooltip)] = "Pull available servers and channels (Enter)", [nameof(SettingsTooltip)] = "Settings", [nameof(LastMessageSentTooltip)] = "Last message sent:", + [nameof(ExportTooltip)] = "Export selected channels", + [nameof(DeleteMessagesTooltip)] = "Delete messages from selected channels", [nameof(TokenPlaceholderText)] = "Token", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "To get the token for your personal account:", diff --git a/DiscordChatExporter.Gui/Localization/LocalizationManager.French.cs b/DiscordChatExporter.Gui/Localization/LocalizationManager.French.cs index e09b5553..afbdb7d5 100644 --- a/DiscordChatExporter.Gui/Localization/LocalizationManager.French.cs +++ b/DiscordChatExporter.Gui/Localization/LocalizationManager.French.cs @@ -13,6 +13,8 @@ public partial class LocalizationManager [nameof(PullGuildsTooltip)] = "Charger les serveurs et canaux disponibles (Entrée)", [nameof(SettingsTooltip)] = "Paramètres", [nameof(LastMessageSentTooltip)] = "Dernier message envoyé :", + [nameof(ExportTooltip)] = "Exporter les canaux sélectionnés", + [nameof(DeleteMessagesTooltip)] = "Supprimer les messages des canaux sélectionnés", [nameof(TokenPlaceholderText)] = "Token", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "Obtenir le token pour votre compte personnel :", diff --git a/DiscordChatExporter.Gui/Localization/LocalizationManager.German.cs b/DiscordChatExporter.Gui/Localization/LocalizationManager.German.cs index 4ff313e7..d28677b6 100644 --- a/DiscordChatExporter.Gui/Localization/LocalizationManager.German.cs +++ b/DiscordChatExporter.Gui/Localization/LocalizationManager.German.cs @@ -13,6 +13,8 @@ public partial class LocalizationManager [nameof(PullGuildsTooltip)] = "Verfügbare Server und Kanäle laden (Enter)", [nameof(SettingsTooltip)] = "Einstellungen", [nameof(LastMessageSentTooltip)] = "Letzte Nachricht gesendet:", + [nameof(ExportTooltip)] = "Ausgewählte Kanäle exportieren", + [nameof(DeleteMessagesTooltip)] = "Nachrichten aus ausgewählten Kanälen löschen", [nameof(TokenPlaceholderText)] = "Token", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "Token für Ihr persönliches Konto abrufen:", diff --git a/DiscordChatExporter.Gui/Localization/LocalizationManager.Spanish.cs b/DiscordChatExporter.Gui/Localization/LocalizationManager.Spanish.cs index 0c3cca31..ccb1ca6b 100644 --- a/DiscordChatExporter.Gui/Localization/LocalizationManager.Spanish.cs +++ b/DiscordChatExporter.Gui/Localization/LocalizationManager.Spanish.cs @@ -11,6 +11,8 @@ public partial class LocalizationManager [nameof(PullGuildsTooltip)] = "Cargar servidores y canales disponibles (Enter)", [nameof(SettingsTooltip)] = "Ajustes", [nameof(LastMessageSentTooltip)] = "Último mensaje enviado:", + [nameof(ExportTooltip)] = "Exportar canales seleccionados", + [nameof(DeleteMessagesTooltip)] = "Eliminar mensajes de los canales seleccionados", [nameof(TokenPlaceholderText)] = "Token", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "Cómo obtener el token para tu cuenta personal:", diff --git a/DiscordChatExporter.Gui/Localization/LocalizationManager.Ukrainian.cs b/DiscordChatExporter.Gui/Localization/LocalizationManager.Ukrainian.cs index 378fdd76..925ea18c 100644 --- a/DiscordChatExporter.Gui/Localization/LocalizationManager.Ukrainian.cs +++ b/DiscordChatExporter.Gui/Localization/LocalizationManager.Ukrainian.cs @@ -11,6 +11,8 @@ public partial class LocalizationManager [nameof(PullGuildsTooltip)] = "Завантажити доступні сервери та канали (Enter)", [nameof(SettingsTooltip)] = "Налаштування", [nameof(LastMessageSentTooltip)] = "Останнє повідомлення:", + [nameof(ExportTooltip)] = "Експортувати вибрані канали", + [nameof(DeleteMessagesTooltip)] = "Видалити повідомлення з вибраних каналів", [nameof(TokenPlaceholderText)] = "Токен", // Token instructions (personal account) [nameof(TokenPersonalHeader)] = "Як отримати токен для персонального акаунту:", diff --git a/DiscordChatExporter.Gui/Localization/LocalizationManager.cs b/DiscordChatExporter.Gui/Localization/LocalizationManager.cs index d6625eb8..db670ce0 100644 --- a/DiscordChatExporter.Gui/Localization/LocalizationManager.cs +++ b/DiscordChatExporter.Gui/Localization/LocalizationManager.cs @@ -75,6 +75,8 @@ public partial class LocalizationManager public string PullGuildsTooltip => Get(); public string SettingsTooltip => Get(); public string LastMessageSentTooltip => Get(); + public string ExportTooltip => Get(); + public string DeleteMessagesTooltip => Get(); public string TokenPlaceholderText => Get(); // Token instructions (personal account) diff --git a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml index d84af318..a281aead 100644 --- a/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml +++ b/DiscordChatExporter.Gui/Views/Components/DashboardView.axaml @@ -301,7 +301,7 @@ Foreground="White" IsVisible="{Binding $self.IsEffectivelyEnabled}" Theme="{DynamicResource MaterialIconButton}" - ToolTip.Tip="Delete messages from selected channels"> + ToolTip.Tip="{Binding LocalizationManager.DeleteMessagesTooltip}"> + ToolTip.Tip="{Binding LocalizationManager.ExportTooltip}">