feat: updated engine version to 4.4-rc1
This commit is contained in:
parent
ee00efde1f
commit
21ba8e33af
5459 changed files with 1128836 additions and 198305 deletions
|
|
@ -33,6 +33,7 @@
|
|||
#include "core/io/compression.h"
|
||||
#include "core/io/file_access_memory.h"
|
||||
#include "core/io/translation_loader_po.h"
|
||||
#include "core/string/translation_server.h"
|
||||
#include "editor/doc_translations.gen.h"
|
||||
#include "editor/editor_translations.gen.h"
|
||||
#include "editor/extractable_translations.gen.h"
|
||||
|
|
@ -53,6 +54,8 @@ Vector<String> get_editor_locales() {
|
|||
}
|
||||
|
||||
void load_editor_translations(const String &p_locale) {
|
||||
const Ref<TranslationDomain> domain = TranslationServer::get_singleton()->get_or_add_domain("godot.editor");
|
||||
|
||||
EditorTranslationList *etl = _editor_translations;
|
||||
while (etl->data) {
|
||||
if (etl->lang == p_locale) {
|
||||
|
|
@ -69,7 +72,7 @@ void load_editor_translations(const String &p_locale) {
|
|||
|
||||
if (tr.is_valid()) {
|
||||
tr->set_locale(etl->lang);
|
||||
TranslationServer::get_singleton()->set_tool_translation(tr);
|
||||
domain->add_translation(tr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -79,6 +82,8 @@ void load_editor_translations(const String &p_locale) {
|
|||
}
|
||||
|
||||
void load_property_translations(const String &p_locale) {
|
||||
const Ref<TranslationDomain> domain = TranslationServer::get_singleton()->get_or_add_domain("godot.properties");
|
||||
|
||||
PropertyTranslationList *etl = _property_translations;
|
||||
while (etl->data) {
|
||||
if (etl->lang == p_locale) {
|
||||
|
|
@ -95,7 +100,7 @@ void load_property_translations(const String &p_locale) {
|
|||
|
||||
if (tr.is_valid()) {
|
||||
tr->set_locale(etl->lang);
|
||||
TranslationServer::get_singleton()->set_property_translation(tr);
|
||||
domain->add_translation(tr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -105,6 +110,8 @@ void load_property_translations(const String &p_locale) {
|
|||
}
|
||||
|
||||
void load_doc_translations(const String &p_locale) {
|
||||
const Ref<TranslationDomain> domain = TranslationServer::get_singleton()->get_or_add_domain("godot.documentation");
|
||||
|
||||
DocTranslationList *dtl = _doc_translations;
|
||||
while (dtl->data) {
|
||||
if (dtl->lang == p_locale) {
|
||||
|
|
@ -121,7 +128,7 @@ void load_doc_translations(const String &p_locale) {
|
|||
|
||||
if (tr.is_valid()) {
|
||||
tr->set_locale(dtl->lang);
|
||||
TranslationServer::get_singleton()->set_doc_translation(tr);
|
||||
domain->add_translation(tr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -131,6 +138,8 @@ void load_doc_translations(const String &p_locale) {
|
|||
}
|
||||
|
||||
void load_extractable_translations(const String &p_locale) {
|
||||
const Ref<TranslationDomain> domain = TranslationServer::get_singleton()->get_or_add_domain("godot.editor");
|
||||
|
||||
ExtractableTranslationList *etl = _extractable_translations;
|
||||
while (etl->data) {
|
||||
if (etl->lang == p_locale) {
|
||||
|
|
@ -147,7 +156,7 @@ void load_extractable_translations(const String &p_locale) {
|
|||
|
||||
if (tr.is_valid()) {
|
||||
tr->set_locale(etl->lang);
|
||||
TranslationServer::get_singleton()->set_extractable_translation(tr);
|
||||
domain->add_translation(tr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue