Fix several language selection issues (#994)

This commit is contained in:
Francesco Saltori 2023-10-16 13:41:06 +02:00 committed by GitHub
parent d4a2a8e8de
commit 13a50a915e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 39 additions and 51 deletions

View file

@ -13,8 +13,7 @@ public:
void OnAssertFailure(const wxChar* file, int line, const wxChar* func, const wxChar* cond, const wxChar* msg) override;
int FilterEvent(wxEvent& event) override;
const std::vector<const wxLanguageInfo*>& GetLanguages() const { return m_languages; }
static std::vector<const wxLanguageInfo*> GetAvailableLanguages();
std::vector<const wxLanguageInfo*> GetLanguages() const;
static void CreateDefaultFiles(bool first_start = false);
static bool TrySelectMLCPath(fs::path path);
@ -22,11 +21,13 @@ public:
private:
void ActivateApp(wxActivateEvent& event);
void LocalizeUI();
static std::vector<const wxLanguageInfo*> GetAvailableTranslationLanguages(wxTranslations* translationsMgr);
MainWindow* m_mainFrame = nullptr;
wxLocale m_locale;
std::vector<const wxLanguageInfo*> m_languages;
std::vector<const wxLanguageInfo*> m_availableTranslations;
};
wxDECLARE_APP(CemuApp);