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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user