godot/core/os
Rémi Verschelde b4fc24b73f
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.

(cherry picked from commit def99c7baf)
2021-09-21 20:33:12 +02:00
..
SCsub
dir_access.cpp Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
dir_access.h Add symlink API to the DirAccess (on macOS and Linux). 2021-05-22 17:36:16 +03:00
file_access.cpp Improve documentation and simplifies code for `File::get_csv_line()` 2021-08-06 11:13:43 +02:00
file_access.h Make all file access 64-bit (`uint64_t`) 2021-05-16 17:52:31 +02:00
input.cpp Allow checking for exact matches with Action events. 2021-07-30 15:35:39 +02:00
input.h Add input buffering framework 2021-08-08 12:37:55 +02:00
input_event.cpp Fix InputMap.action_erase_event() failing to erase events correctly. 2021-09-17 03:08:21 +02:00
input_event.h Fix InputMap.action_erase_event() failing to erase events correctly. 2021-09-17 03:08:21 +02:00
keyboard.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
keyboard.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
main_loop.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
main_loop.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
memory.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
memory.h Fix memfree parameter name 2021-07-13 10:20:03 +02:00
midi_driver.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
midi_driver.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
mutex.cpp Modernize Mutex 2021-02-18 11:58:08 +01:00
mutex.h Modernize Mutex 2021-02-18 11:58:08 +01:00
os.cpp Implement `OS::get_locale_language()` helper method 2021-09-21 20:33:12 +02:00
os.h Implement `OS::get_locale_language()` helper method 2021-09-21 20:33:12 +02:00
rw_lock.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
semaphore.h Modernize Semaphore 2021-02-18 11:58:08 +01:00
spin_lock.h Replace QuickHull with Bullet's convex hull computer. 2021-05-22 08:16:43 +02:00
thread.cpp Allow for platform Thread implementation override 2021-09-21 17:15:00 +02:00
thread.h Allow for platform Thread implementation override 2021-09-21 17:15:00 +02:00
thread_safe.h Modernize Mutex 2021-02-18 11:58:08 +01:00
threaded_array_processor.h Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00