public ExcludedLanguageFilter(ExcludedLanguage language) { var lan = language.ToString(); lan = lan.Substring(0, lan.Length - "Original".Length); this.Name = Strings.Resources.Controls.ExcludedLanguagesSelector.ExcludedLanguage.GetValue(lan); this.Language = language; }
public ExcludedLanguageFilter(ExcludedLanguage language) { if (language == ExcludedLanguage.Default) { this.Name = Strings.Resources.Controls.ExcludedLanguagesSelector.ExcludedLanguage.Japanese; this.Language = language; return; } var lan = language.ToString(); lan = lan.Substring(0, lan.Length - "Original".Length); this.Name = Strings.Resources.Controls.ExcludedLanguagesSelector.ExcludedLanguage.GetValue(lan); this.Language = language; }