Portuguese Support

Added support for a portuguese language option.
This commit is contained in:
Mang0e 2020-10-12 11:13:50 -07:00
parent e754e14a03
commit 645dd79342
2 changed files with 1094 additions and 1 deletions

File diff suppressed because it is too large Load Diff

View File

@ -13,11 +13,13 @@ namespace FModel.ViewModels.ComboBox
private static readonly string _Japanese = "ja-JP";
private static readonly string _Russian = "ru-RU";
private static readonly string _ChineseSimp = "zh-CN";
private static readonly string _Portuguese = "pt-PT";
public static string GetProgramLang()
{
return Properties.Settings.Default.ProgramLanguage switch
{
9 => _Portuguese,
8 => _ChineseSimp,
7 => _Russian,
6 => _Japanese,
@ -43,7 +45,8 @@ namespace FModel.ViewModels.ComboBox
new ComboBoxViewModel { Id = 5, Content = Properties.Resources.Arabic },
new ComboBoxViewModel { Id = 6, Content = Properties.Resources.Japanese },
new ComboBoxViewModel { Id = 7, Content = Properties.Resources.Russian },
new ComboBoxViewModel { Id = 8, Content = Properties.Resources.Chinese }
new ComboBoxViewModel { Id = 8, Content = Properties.Resources.Chinese },
new ComboBoxViewModel { Id = 9, Content = Properties.Resources.PortugueseBrazil },
};
public static ObservableCollection<ComboBoxViewModel> languageCbViewModel = new ObservableCollection<ComboBoxViewModel>