You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use language command line argument to override editor locale.
This commit is contained in:
@@ -1094,7 +1094,9 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
||||
arg == "--display-driver" ||
|
||||
arg == "--rendering-method" ||
|
||||
arg == "--rendering-driver" ||
|
||||
arg == "--xr-mode") {
|
||||
arg == "--xr-mode" ||
|
||||
arg == "-l" ||
|
||||
arg == "--language") {
|
||||
if (N) {
|
||||
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(arg);
|
||||
forwardable_cli_arguments[CLI_SCOPE_TOOL].push_back(N->get());
|
||||
@@ -3842,6 +3844,10 @@ String Main::get_rendering_driver_name() {
|
||||
return rendering_driver;
|
||||
}
|
||||
|
||||
String Main::get_locale_override() {
|
||||
return locale;
|
||||
}
|
||||
|
||||
// everything the main loop needs to know about frame timings
|
||||
static MainTimerSync main_timer_sync;
|
||||
|
||||
|
||||
@@ -71,6 +71,7 @@ public:
|
||||
static Error setup(const char *execpath, int argc, char *argv[], bool p_second_phase = true);
|
||||
static Error setup2(bool p_show_boot_logo = true); // The thread calling setup2() will effectively become the main thread.
|
||||
static String get_rendering_driver_name();
|
||||
static String get_locale_override();
|
||||
static void setup_boot_logo();
|
||||
#ifdef TESTS_ENABLED
|
||||
static Error test_setup();
|
||||
|
||||
Reference in New Issue
Block a user