mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
PO loader: Fix unclosed files and error messages
Fixes #40324. (cherry picked from commit47cc202972) Also removes empty `p_path` as done in4857648a16.
This commit is contained in:
@@ -997,7 +997,7 @@ void EditorSettings::setup_language() {
|
||||
FileAccessMemory *fa = memnew(FileAccessMemory);
|
||||
fa->open_custom(data.ptr(), data.size());
|
||||
|
||||
Ref<Translation> tr = TranslationLoaderPO::load_translation(fa, NULL, "translation_" + String(etl->lang));
|
||||
Ref<Translation> tr = TranslationLoaderPO::load_translation(fa, NULL);
|
||||
|
||||
if (tr.is_valid()) {
|
||||
tr->set_locale(etl->lang);
|
||||
|
||||
Reference in New Issue
Block a user