Merge pull request #125 from Mang00e/master

Portuguese
This commit is contained in:
Valentin 2020-10-12 20:35:28 +02:00 committed by GitHub
commit e0171afec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>