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.
This commit is contained in:
primetime43 2026-05-18 20:17:08 -04:00
parent 903bea8814
commit 0794acd235
7 changed files with 14 additions and 2 deletions

View file

@ -11,6 +11,8 @@ public partial class LocalizationManager
[nameof(PullGuildsTooltip)] = "Pull available servers and channels (Enter)", [nameof(PullGuildsTooltip)] = "Pull available servers and channels (Enter)",
[nameof(SettingsTooltip)] = "Settings", [nameof(SettingsTooltip)] = "Settings",
[nameof(LastMessageSentTooltip)] = "Last message sent:", [nameof(LastMessageSentTooltip)] = "Last message sent:",
[nameof(ExportTooltip)] = "Export selected channels",
[nameof(DeleteMessagesTooltip)] = "Delete messages from selected channels",
[nameof(TokenPlaceholderText)] = "Token", [nameof(TokenPlaceholderText)] = "Token",
// Token instructions (personal account) // Token instructions (personal account)
[nameof(TokenPersonalHeader)] = "To get the token for your personal account:", [nameof(TokenPersonalHeader)] = "To get the token for your personal account:",

View file

@ -13,6 +13,8 @@ public partial class LocalizationManager
[nameof(PullGuildsTooltip)] = "Charger les serveurs et canaux disponibles (Entrée)", [nameof(PullGuildsTooltip)] = "Charger les serveurs et canaux disponibles (Entrée)",
[nameof(SettingsTooltip)] = "Paramètres", [nameof(SettingsTooltip)] = "Paramètres",
[nameof(LastMessageSentTooltip)] = "Dernier message envoyé :", [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", [nameof(TokenPlaceholderText)] = "Token",
// Token instructions (personal account) // Token instructions (personal account)
[nameof(TokenPersonalHeader)] = "Obtenir le token pour votre compte personnel :", [nameof(TokenPersonalHeader)] = "Obtenir le token pour votre compte personnel :",

View file

@ -13,6 +13,8 @@ public partial class LocalizationManager
[nameof(PullGuildsTooltip)] = "Verfügbare Server und Kanäle laden (Enter)", [nameof(PullGuildsTooltip)] = "Verfügbare Server und Kanäle laden (Enter)",
[nameof(SettingsTooltip)] = "Einstellungen", [nameof(SettingsTooltip)] = "Einstellungen",
[nameof(LastMessageSentTooltip)] = "Letzte Nachricht gesendet:", [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", [nameof(TokenPlaceholderText)] = "Token",
// Token instructions (personal account) // Token instructions (personal account)
[nameof(TokenPersonalHeader)] = "Token für Ihr persönliches Konto abrufen:", [nameof(TokenPersonalHeader)] = "Token für Ihr persönliches Konto abrufen:",

View file

@ -11,6 +11,8 @@ public partial class LocalizationManager
[nameof(PullGuildsTooltip)] = "Cargar servidores y canales disponibles (Enter)", [nameof(PullGuildsTooltip)] = "Cargar servidores y canales disponibles (Enter)",
[nameof(SettingsTooltip)] = "Ajustes", [nameof(SettingsTooltip)] = "Ajustes",
[nameof(LastMessageSentTooltip)] = "Último mensaje enviado:", [nameof(LastMessageSentTooltip)] = "Último mensaje enviado:",
[nameof(ExportTooltip)] = "Exportar canales seleccionados",
[nameof(DeleteMessagesTooltip)] = "Eliminar mensajes de los canales seleccionados",
[nameof(TokenPlaceholderText)] = "Token", [nameof(TokenPlaceholderText)] = "Token",
// Token instructions (personal account) // Token instructions (personal account)
[nameof(TokenPersonalHeader)] = "Cómo obtener el token para tu cuenta personal:", [nameof(TokenPersonalHeader)] = "Cómo obtener el token para tu cuenta personal:",

View file

@ -11,6 +11,8 @@ public partial class LocalizationManager
[nameof(PullGuildsTooltip)] = "Завантажити доступні сервери та канали (Enter)", [nameof(PullGuildsTooltip)] = "Завантажити доступні сервери та канали (Enter)",
[nameof(SettingsTooltip)] = "Налаштування", [nameof(SettingsTooltip)] = "Налаштування",
[nameof(LastMessageSentTooltip)] = "Останнє повідомлення:", [nameof(LastMessageSentTooltip)] = "Останнє повідомлення:",
[nameof(ExportTooltip)] = "Експортувати вибрані канали",
[nameof(DeleteMessagesTooltip)] = "Видалити повідомлення з вибраних каналів",
[nameof(TokenPlaceholderText)] = "Токен", [nameof(TokenPlaceholderText)] = "Токен",
// Token instructions (personal account) // Token instructions (personal account)
[nameof(TokenPersonalHeader)] = "Як отримати токен для персонального акаунту:", [nameof(TokenPersonalHeader)] = "Як отримати токен для персонального акаунту:",

View file

@ -75,6 +75,8 @@ public partial class LocalizationManager
public string PullGuildsTooltip => Get(); public string PullGuildsTooltip => Get();
public string SettingsTooltip => Get(); public string SettingsTooltip => Get();
public string LastMessageSentTooltip => Get(); public string LastMessageSentTooltip => Get();
public string ExportTooltip => Get();
public string DeleteMessagesTooltip => Get();
public string TokenPlaceholderText => Get(); public string TokenPlaceholderText => Get();
// Token instructions (personal account) // Token instructions (personal account)

View file

@ -301,7 +301,7 @@
Foreground="White" Foreground="White"
IsVisible="{Binding $self.IsEffectivelyEnabled}" IsVisible="{Binding $self.IsEffectivelyEnabled}"
Theme="{DynamicResource MaterialIconButton}" Theme="{DynamicResource MaterialIconButton}"
ToolTip.Tip="Delete messages from selected channels"> ToolTip.Tip="{Binding LocalizationManager.DeleteMessagesTooltip}">
<materialIcons:MaterialIcon <materialIcons:MaterialIcon
Width="32" Width="32"
Height="32" Height="32"
@ -318,7 +318,7 @@
Foreground="{DynamicResource MaterialSecondaryMidForegroundBrush}" Foreground="{DynamicResource MaterialSecondaryMidForegroundBrush}"
IsVisible="{Binding $self.IsEffectivelyEnabled}" IsVisible="{Binding $self.IsEffectivelyEnabled}"
Theme="{DynamicResource MaterialIconButton}" Theme="{DynamicResource MaterialIconButton}"
ToolTip.Tip="Export selected channels"> ToolTip.Tip="{Binding LocalizationManager.ExportTooltip}">
<materialIcons:MaterialIcon <materialIcons:MaterialIcon
Width="32" Width="32"
Height="32" Height="32"