mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Allow localizing the application name with project translations
This commit is contained in:
parent
6fd949a6dc
commit
b8a8f8b35a
12 changed files with 100 additions and 57 deletions
|
|
@ -772,7 +772,7 @@ Error Main::test_setup() {
|
|||
if (!locale.is_empty()) {
|
||||
translation_server->set_locale(locale);
|
||||
}
|
||||
translation_server->load_translations();
|
||||
translation_server->load_project_translations(translation_server->get_main_domain());
|
||||
ResourceLoader::load_translation_remaps(); //load remaps for resources
|
||||
|
||||
// Initialize ThemeDB early so that scene types can register their theme items.
|
||||
|
|
@ -3456,7 +3456,7 @@ Error Main::setup2(bool p_show_boot_logo) {
|
|||
if (!locale.is_empty()) {
|
||||
translation_server->set_locale(locale);
|
||||
}
|
||||
translation_server->load_translations();
|
||||
translation_server->load_project_translations(translation_server->get_main_domain());
|
||||
ResourceLoader::load_translation_remaps(); //load remaps for resources
|
||||
|
||||
OS::get_singleton()->benchmark_end_measure("Startup", "Translations and Remaps");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue