summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-10-24 13:22:54 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-10-24 13:22:54 -0500
commitd8aa32dccddc69341f24410043e2277aee7ec6eb (patch)
tree06a359db4b7e544470d6acd61f0eda2f502377a2
parent52bbbd4338640ef95299ad5c7637b67fc67b1903 (diff)
parent33d9b40386f11c18d14a72bfbf76cb50bd386ade (diff)
downloadredot-engine-d8aa32dccddc69341f24410043e2277aee7ec6eb.tar.gz
Merge pull request #97868 from timothyqiu/po-loader
Fix "No loader found" error after editing PO file
-rw-r--r--core/io/translation_loader_po.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/io/translation_loader_po.cpp b/core/io/translation_loader_po.cpp
index 578cd91c52..812fbc774e 100644
--- a/core/io/translation_loader_po.cpp
+++ b/core/io/translation_loader_po.cpp
@@ -31,7 +31,6 @@
#include "translation_loader_po.h"
#include "core/io/file_access.h"
-#include "core/string/translation.h"
#include "core/string/translation_po.h"
Ref<Resource> TranslationLoaderPO::load_translation(Ref<FileAccess> f, Error *r_error) {
@@ -361,7 +360,7 @@ void TranslationLoaderPO::get_recognized_extensions(List<String> *p_extensions)
}
bool TranslationLoaderPO::handles_type(const String &p_type) const {
- return (p_type == "Translation");
+ return (p_type == "Translation") || (p_type == "TranslationPO");
}
String TranslationLoaderPO::get_resource_type(const String &p_path) const {