mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-23 08:44:04 -07:00
ava: Generate Locale menu automatically (#4243)
Currently in `MenuMainBarView.axaml` we list all available languages and hardcode the language name with the language key. It's a bit bad beause if we want to add a new language, we have to edit the `csproj` and the `axaml` with the translated language name and the language code. I've put all translations in their respective locale files, add code into `MainMenuBarView` constructor to generate the menu automatically. Now we just have to edit the `csproj` if we want to add a new language.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"Language": "Português (BR)",
|
||||
"MenuBarFileOpenApplet": "Abrir Applet",
|
||||
"MenuBarFileOpenAppletOpenMiiAppletToolTip": "Abrir editor Mii em modo avulso",
|
||||
"SettingsTabInputDirectMouseAccess": "Acesso direto ao mouse",
|
||||
@@ -610,4 +611,4 @@
|
||||
"UserProfilesRecoverLostAccounts": "Recuperar contas perdidas",
|
||||
"Recover": "Recuperar",
|
||||
"UserProfilesRecoverHeading": "Jogos salvos foram encontrados para as seguintes contas"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user