From 4ecd0fa2003d391b7fa75b30aea4ef844765a14a Mon Sep 17 00:00:00 2001 From: Antoine Aflalo Date: Sat, 17 Apr 2021 11:00:40 -0400 Subject: [PATCH] refactor(Profile::Trigger): Add localization to new trigger --- .../Profile/Trigger/TriggerFactory.cs | 4 ++++ .../Localization/SettingsStrings.Designer.cs | 18 ++++++++++++++++++ .../Localization/SettingsStrings.fr.resx | 6 ++++++ SoundSwitch/Localization/SettingsStrings.resx | 6 ++++++ 4 files changed, 34 insertions(+) diff --git a/SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs b/SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs index dfda14851f..8aa74b4400 100644 --- a/SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs +++ b/SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs @@ -128,4 +128,8 @@ public class UwpApp : BaseTrigger public override string Description => SettingsStrings.profile_trigger_uwp_desc; public override bool AlwaysDefaultAndRestoreDevice => true; } + public class TrayMenu : BaseTrigger + { + public override string Description { get; } + } } \ No newline at end of file diff --git a/SoundSwitch/Localization/SettingsStrings.Designer.cs b/SoundSwitch/Localization/SettingsStrings.Designer.cs index 932654644b..68d9569e46 100644 --- a/SoundSwitch/Localization/SettingsStrings.Designer.cs +++ b/SoundSwitch/Localization/SettingsStrings.Designer.cs @@ -837,6 +837,24 @@ internal static string profile_trigger_steam_desc { } } + /// + /// Looks up a localized string similar to In the app menu. + /// + internal static string profile_trigger_trayMenu { + get { + return ResourceManager.GetString("profile.trigger.trayMenu", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to This trigger make the profile visible in the tray icon menu. Left-click on the systray icon to see your profile.. + /// + internal static string profile_trigger_trayMenu_desc { + get { + return ResourceManager.GetString("profile.trigger.trayMenu.desc", resourceCulture); + } + } + /// /// Looks up a localized string similar to Microsoft Store app. /// diff --git a/SoundSwitch/Localization/SettingsStrings.fr.resx b/SoundSwitch/Localization/SettingsStrings.fr.resx index 796d0d0ffb..b4f9cbe13c 100644 --- a/SoundSwitch/Localization/SettingsStrings.fr.resx +++ b/SoundSwitch/Localization/SettingsStrings.fr.resx @@ -439,4 +439,10 @@ Restaurer l'état du système quand l'application est fermée. Sourdine + + Menu de l'application + + + Le profile sera visible dans le menu de l'application. Cliquer avec le bouton gauche sur l'icone de l'application. + \ No newline at end of file diff --git a/SoundSwitch/Localization/SettingsStrings.resx b/SoundSwitch/Localization/SettingsStrings.resx index 333e5ca78d..4387dee91a 100644 --- a/SoundSwitch/Localization/SettingsStrings.resx +++ b/SoundSwitch/Localization/SettingsStrings.resx @@ -459,4 +459,10 @@ Restore the state of the system when the application is closed. Toggle mute + + In the app menu + + + This trigger make the profile visible in the tray icon menu. Left-click on the systray icon to see your profile. + \ No newline at end of file