mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-06-10 00:02:37 -06:00
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:
parent
903bea8814
commit
0794acd235
|
|
@ -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:",
|
||||
|
|
|
|||
|
|
@ -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 :",
|
||||
|
|
|
|||
|
|
@ -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:",
|
||||
|
|
|
|||
|
|
@ -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:",
|
||||
|
|
|
|||
|
|
@ -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)] = "Як отримати токен для персонального акаунту:",
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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}">
|
||||
<materialIcons:MaterialIcon
|
||||
Width="32"
|
||||
Height="32"
|
||||
|
|
@ -318,7 +318,7 @@
|
|||
Foreground="{DynamicResource MaterialSecondaryMidForegroundBrush}"
|
||||
IsVisible="{Binding $self.IsEffectivelyEnabled}"
|
||||
Theme="{DynamicResource MaterialIconButton}"
|
||||
ToolTip.Tip="Export selected channels">
|
||||
ToolTip.Tip="{Binding LocalizationManager.ExportTooltip}">
|
||||
<materialIcons:MaterialIcon
|
||||
Width="32"
|
||||
Height="32"
|
||||
|
|
|
|||
Loading…
Reference in a new issue