Skip to content

Commit d8aa32d

Browse files
committed
Merge pull request godotengine#97868 from timothyqiu/po-loader
Fix "No loader found" error after editing PO file
2 parents 52bbbd4 + 33d9b40 commit d8aa32d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/io/translation_loader_po.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
#include "translation_loader_po.h"
3232

3333
#include "core/io/file_access.h"
34-
#include "core/string/translation.h"
3534
#include "core/string/translation_po.h"
3635

3736
Ref<Resource> TranslationLoaderPO::load_translation(Ref<FileAccess> f, Error *r_error) {
@@ -361,7 +360,7 @@ void TranslationLoaderPO::get_recognized_extensions(List<String> *p_extensions)
361360
}
362361

363362
bool TranslationLoaderPO::handles_type(const String &p_type) const {
364-
return (p_type == "Translation");
363+
return (p_type == "Translation") || (p_type == "TranslationPO");
365364
}
366365

367366
String TranslationLoaderPO::get_resource_type(const String &p_path) const {

0 commit comments

Comments
 (0)