diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-09-16 09:27:56 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-09-16 09:34:58 +0200 |
commit | def99c7baf1880e3efc0b60b9eb035be8a7edb14 (patch) | |
tree | 2bb81dec2237e4559fbb3b63a8ff56fc8f7a09d0 /core/core_bind.h | |
parent | 73ec378c6431fc2e86c1116505b61f5064d3cd4d (diff) | |
download | redot-engine-def99c7baf1880e3efc0b60b9eb035be8a7edb14.tar.gz |
Implement `OS::get_locale_language()` helper method
This method extracts the 2 or 3-letter language code from `OS::get_locale()`,
making it easier for users to identify the "main" language code for users
that might have different OS locales due to different OS or region, but
should be matched to the same translation (e.g. "generic" Spanish).
Fixes #40703.
Diffstat (limited to 'core/core_bind.h')
-rw-r--r-- | core/core_bind.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/core_bind.h b/core/core_bind.h index 8e95629695..a5d5a7c8ce 100644 --- a/core/core_bind.h +++ b/core/core_bind.h @@ -178,6 +178,7 @@ public: Vector<String> get_cmdline_args(); String get_locale() const; + String get_locale_language() const; String get_model_name() const; |