From 227a32cad951126d6c9d4b8aaeefe80d64dd1b73 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo Date: Mon, 23 Aug 2021 14:11:59 -0400 Subject: [PATCH] lang(telemetry): add localization for telemetry --- SoundSwitch/Localization/SettingsStrings.Designer.cs | 9 +++++++++ SoundSwitch/Localization/SettingsStrings.fr.resx | 3 +++ SoundSwitch/Localization/SettingsStrings.resx | 3 +++ SoundSwitch/UI/Forms/Settings.cs | 1 + 4 files changed, 16 insertions(+) diff --git a/SoundSwitch/Localization/SettingsStrings.Designer.cs b/SoundSwitch/Localization/SettingsStrings.Designer.cs index 68d9569e46..50d54eb038 100644 --- a/SoundSwitch/Localization/SettingsStrings.Designer.cs +++ b/SoundSwitch/Localization/SettingsStrings.Designer.cs @@ -936,6 +936,15 @@ internal class SettingsStrings { } } + /// + /// Looks up a localized string similar to Telemetry. + /// + internal static string telemetry { + get { + return ResourceManager.GetString("telemetry", resourceCulture); + } + } + /// /// Looks up a localized string similar to Tooltip on Hover. /// diff --git a/SoundSwitch/Localization/SettingsStrings.fr.resx b/SoundSwitch/Localization/SettingsStrings.fr.resx index b4f9cbe13c..7b29a09eea 100644 --- a/SoundSwitch/Localization/SettingsStrings.fr.resx +++ b/SoundSwitch/Localization/SettingsStrings.fr.resx @@ -445,4 +445,7 @@ Restaurer l'état du système quand l'application est fermée. Le profile sera visible dans le menu de l'application. Cliquer avec le bouton gauche sur l'icone de l'application. + + Télémétrie + \ No newline at end of file diff --git a/SoundSwitch/Localization/SettingsStrings.resx b/SoundSwitch/Localization/SettingsStrings.resx index 4387dee91a..0525b52733 100644 --- a/SoundSwitch/Localization/SettingsStrings.resx +++ b/SoundSwitch/Localization/SettingsStrings.resx @@ -465,4 +465,7 @@ Restore the state of the system when the application is closed. This trigger make the profile visible in the tray icon menu. Left-click on the systray icon to see your profile. + + Telemetry + \ No newline at end of file diff --git a/SoundSwitch/UI/Forms/Settings.cs b/SoundSwitch/UI/Forms/Settings.cs index c45864ace4..6572d3aee4 100644 --- a/SoundSwitch/UI/Forms/Settings.cs +++ b/SoundSwitch/UI/Forms/Settings.cs @@ -180,6 +180,7 @@ public SettingsForm(IAudioDeviceLister audioDeviceLister) toggleMuteLabel.Visible = false; telemetryCheckbox.DataBindings.Add(nameof(CheckBox.Checked), AppModel.Instance, nameof(AppModel.Telemetry), false, DataSourceUpdateMode.OnPropertyChanged); + telemetryCheckbox.Text = SettingsStrings.telemetry; PopulateSettings();