Skip to content

Commit

Permalink
refactor(Profile::Trigger): Add localization to new trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Belphemur committed Apr 17, 2021
1 parent cb2c612 commit 4ecd0fa
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SoundSwitch/Framework/Profile/Trigger/TriggerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}
18 changes: 18 additions & 0 deletions SoundSwitch/Localization/SettingsStrings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions SoundSwitch/Localization/SettingsStrings.fr.resx
Original file line number Diff line number Diff line change
Expand Up @@ -439,4 +439,10 @@ Restaurer l'état du système quand l'application est fermée.</value>
<data name="mute.toggle.label" xml:space="preserve">
<value>Sourdine</value>
</data>
<data name="profile.trigger.trayMenu" xml:space="preserve">
<value>Menu de l'application</value>
</data>
<data name="profile.trigger.trayMenu.desc" xml:space="preserve">
<value>Le profile sera visible dans le menu de l'application. Cliquer avec le bouton gauche sur l'icone de l'application.</value>
</data>
</root>
6 changes: 6 additions & 0 deletions SoundSwitch/Localization/SettingsStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -459,4 +459,10 @@ Restore the state of the system when the application is closed.</value>
<data name="mute.toggle.label" xml:space="preserve">
<value>Toggle mute</value>
</data>
<data name="profile.trigger.trayMenu" xml:space="preserve">
<value>In the app menu</value>
</data>
<data name="profile.trigger.trayMenu.desc" xml:space="preserve">
<value>This trigger make the profile visible in the tray icon menu. Left-click on the systray icon to see your profile.</value>
</data>
</root>

0 comments on commit 4ecd0fa

Please sign in to comment.