Avalonia - Display language names in their corresponding language under "Change Language" (#3490)

* change languages to their native names

* fix Chinese language names

* Update MainWindow.axaml
This commit is contained in:
MetrosexualGarbodor 2022-08-26 18:12:11 +01:00 committed by GitHub
parent 9bad71afbf
commit 90432946ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -131,56 +131,56 @@
<MenuItem Header="{locale:Locale MenuBarOptionsChangeLanguage}"> <MenuItem Header="{locale:Locale MenuBarOptionsChangeLanguage}">
<MenuItem <MenuItem
Command="{ReflectionBinding ChangeLanguage}" Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="en_US" CommandParameter="de_DE"
Header="American English" /> Header="Deutsch" />
<MenuItem <MenuItem
Command="{ReflectionBinding ChangeLanguage}" Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="pt_BR" CommandParameter="en_US"
Header="Brazilian Portuguese" /> Header="English (US)" />
<MenuItem <MenuItem
Command="{ReflectionBinding ChangeLanguage}" Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="es_ES" CommandParameter="es_ES"
Header="Castilian Spanish" /> Header="Español (ES)" />
<MenuItem <MenuItem
Command="{ReflectionBinding ChangeLanguage}" Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="fr_FR" CommandParameter="fr_FR"
Header="French" /> Header="Français" />
<MenuItem
Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="de_DE"
Header="German" />
<MenuItem
Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="el_GR"
Header="Greek" />
<MenuItem <MenuItem
Command="{ReflectionBinding ChangeLanguage}" Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="it_IT" CommandParameter="it_IT"
Header="Italian" /> Header="Italiano" />
<MenuItem <MenuItem
Command="{ReflectionBinding ChangeLanguage}" Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="ja_JP" CommandParameter="pt_BR"
Header="Japanese" /> Header="Português (BR)" />
<MenuItem
Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="ko_KR"
Header="Korean" />
<MenuItem
Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="ru_RU"
Header="Russian" />
<MenuItem <MenuItem
Command="{ReflectionBinding ChangeLanguage}" Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="tr_TR" CommandParameter="tr_TR"
Header="Turkish" /> Header="Türkçe" />
<MenuItem
Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="el_GR"
Header="Ελληνικά" />
<MenuItem
Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="ru_RU"
Header="Русский" />
<MenuItem <MenuItem
Command="{ReflectionBinding ChangeLanguage}" Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="zh_CN" CommandParameter="zh_CN"
Header="Simplified Chinese" /> Header="简体中文" />
<MenuItem <MenuItem
Command="{ReflectionBinding ChangeLanguage}" Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="zh_TW" CommandParameter="zh_TW"
Header="Traditional Chinese (Taiwan)" /> Header="繁體中文" />
<MenuItem
Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="ja_JP"
Header="日本語" />
<MenuItem
Command="{ReflectionBinding ChangeLanguage}"
CommandParameter="ko_KR"
Header="한국어" />
</MenuItem> </MenuItem>
<Separator /> <Separator />
<MenuItem <MenuItem