Group names moved to Language.resx

This commit is contained in:
s_falahati 2017-08-07 21:06:22 +04:30
parent d8f27f0834
commit 16edeef156
3 changed files with 27 additions and 3 deletions

View File

@ -78,6 +78,15 @@ namespace HeliosDisplayManagement.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Active Profiles.
/// </summary>
internal static string Active_Profiles {
get {
return ResourceManager.GetString("Active_Profiles", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Another instance of this program is in working state. Please close other instances before trying to switch profile..
/// </summary>
@ -547,6 +556,15 @@ namespace HeliosDisplayManagement.Resources {
}
}
/// <summary>
/// Looks up a localized string similar to Saved Profiles.
/// </summary>
internal static string Saved_Profiles {
get {
return ResourceManager.GetString("Saved_Profiles", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Selected file is not a valid executable file..
/// </summary>

View File

@ -354,4 +354,10 @@
<data name="Not_Owned" xml:space="preserve">
<value>[Not Owned]</value>
</data>
<data name="Active_Profiles" xml:space="preserve">
<value>Active Profiles</value>
</data>
<data name="Saved_Profiles" xml:space="preserve">
<value>Saved Profiles</value>
</data>
</root>

View File

@ -17,9 +17,9 @@ namespace HeliosDisplayManagement.UIForms
public MainForm()
{
InitializeComponent();
lv_profiles.Groups.Add(GroupCurrent, "Current");
lv_profiles.Groups.Add(GroupActive, "Active Profiles");
lv_profiles.Groups.Add(GroupSaved, "Saved Profiles");
lv_profiles.Groups.Add(GroupCurrent, Language.Current);
lv_profiles.Groups.Add(GroupActive, Language.Active_Profiles);
lv_profiles.Groups.Add(GroupSaved, Language.Saved_Profiles);
}
[DllImport("user32", EntryPoint = "SendMessage", CharSet = CharSet.Auto, SetLastError = true)]