You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Merge pull request #97868 from timothyqiu/po-loader
Fix "No loader found" error after editing PO file
This commit is contained in:
@@ -31,7 +31,6 @@
|
|||||||
#include "translation_loader_po.h"
|
#include "translation_loader_po.h"
|
||||||
|
|
||||||
#include "core/io/file_access.h"
|
#include "core/io/file_access.h"
|
||||||
#include "core/string/translation.h"
|
|
||||||
#include "core/string/translation_po.h"
|
#include "core/string/translation_po.h"
|
||||||
|
|
||||||
Ref<Resource> TranslationLoaderPO::load_translation(Ref<FileAccess> f, Error *r_error) {
|
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 {
|
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 {
|
String TranslationLoaderPO::get_resource_type(const String &p_path) const {
|
||||||
|
|||||||
Reference in New Issue
Block a user