Add multiple language. [WIP]

This commit is contained in:
qianlifeng
2015-01-02 16:16:09 +08:00
parent a038587224
commit bf87500e35
16 changed files with 391 additions and 75 deletions

View File

@@ -14,6 +14,9 @@ namespace Wox.Infrastructure.Storage.UserSettings
[JsonProperty]
public string Hotkey { get; set; }
[JsonProperty]
public string Language { get; set; }
[JsonProperty]
public string Theme { get; set; }
@@ -150,6 +153,7 @@ namespace Wox.Infrastructure.Storage.UserSettings
{
DontPromptUpdateMsg = false;
Theme = "Dark";
Language = "English";
ReplaceWinR = true;
WebSearches = LoadDefaultWebSearches();
ProgramSources = new List<ProgramSource>();
@@ -183,6 +187,10 @@ namespace Wox.Infrastructure.Storage.UserSettings
{
storage.ResultItemFont = FontFamily.GenericSansSerif.Name;
}
if (storage.Language == null)
{
storage.Language = "English";
}
}
}