added localization strings for settings.

This commit is contained in:
morkt
2018-01-12 19:56:25 +04:00
parent 3e6645a336
commit c3f4343558
21 changed files with 243 additions and 21 deletions

View File

@@ -4,6 +4,7 @@
//
using System.ComponentModel.Composition;
using GameRes.Formats.Strings;
namespace GameRes.Formats
{
@@ -13,6 +14,14 @@ namespace GameRes.Formats
get { return Properties.Settings.Default[Name]; }
set { Properties.Settings.Default[Name] = value; }
}
public LocalResourceSetting () { }
public LocalResourceSetting (string name)
{
Name = name;
Text = arcStrings.ResourceManager.GetString (name, arcStrings.Culture);
}
}
[Export(typeof(ISettingsManager))]