feat: updated engine

This commit is contained in:
Sara Gerretsen 2026-07-10 17:04:34 +02:00
parent cbe99774ff
commit f4cf6b3999
6607 changed files with 910135 additions and 430025 deletions

View file

@ -31,8 +31,10 @@
#include "translation_server.h"
#include "translation_server.compat.inc"
#include "core/config/engine.h"
#include "core/config/project_settings.h"
#include "core/io/resource_loader.h"
#include "core/object/class_db.h"
#include "core/os/main_loop.h"
#include "core/os/os.h"
#include "core/string/locales.h"
@ -496,6 +498,14 @@ String TranslationServer::get_locale() const {
return locale;
}
void TranslationServer::set_fallback_allowed(const bool &p_allow) {
allow_fallback = p_allow;
}
bool TranslationServer::is_fallback_allowed() const {
return allow_fallback;
}
void TranslationServer::set_fallback_locale(const String &p_locale) {
fallback = p_locale;
}
@ -599,6 +609,7 @@ void TranslationServer::setup() {
}
fallback = GLOBAL_DEF("internationalization/locale/fallback", "en");
allow_fallback = GLOBAL_DEF("internationalization/locale/allow_fallback", true);
main_domain->set_pseudolocalization_enabled(GLOBAL_DEF("internationalization/pseudolocalization/use_pseudolocalization", false));
main_domain->set_pseudolocalization_accents_enabled(GLOBAL_DEF("internationalization/pseudolocalization/replace_with_accents", true));
main_domain->set_pseudolocalization_double_vowels_enabled(GLOBAL_DEF("internationalization/pseudolocalization/double_vowels", false));