1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-24 17:41:13 +01:00

Utilities to get current app language & reset it to default...

... Renaming "InitLang" to "SetLang", then reusing the name "InitLang"
This commit is contained in:
Paul Licameli
2019-03-27 12:14:59 -04:00
parent b18f825ee8
commit 6ce24d3cd8
5 changed files with 37 additions and 12 deletions

View File

@@ -73,8 +73,17 @@ class AudacityApp final : public wxApp {
int FilterEvent(wxEvent & event) override;
// If no input language given, defaults first to choice in preferences, then
// to system language.
// Returns the language actually used which is not lang if lang cannot be found.
wxString InitLang( const wxString & lang );
wxString InitLang( wxString lang = {} );
// If no input language given, defaults to system language.
// Returns the language actually used which is not lang if lang cannot be found.
wxString SetLang( const wxString & lang );
// Returns the last language code that was set
wxString GetLang() const;
// These are currently only used on Mac OS, where it's
// possible to have a menu bar but no windows open. It doesn't