summaryrefslogtreecommitdiff
path: root/core/io/translation_loader_po.cpp
diff options
context:
space:
mode:
authorSkyJJ <jjchai01@hotmail.com>2020-08-07 13:17:12 +0200
committerSkyJJ <jjchai01@hotmail.com>2020-08-19 03:01:53 +0200
commit0ef758eaeeb5b2f44e132865f0f10baf692e972f (patch)
tree6e30ec08277fdeb8605050154b9f54002e11e5b0 /core/io/translation_loader_po.cpp
parent396f2eee827293d9b096e6fc954a57c92bf21f95 (diff)
Updated Translation architecture to have TranslationPO, did some commit fixes and updated class Reference.
Diffstat (limited to 'core/io/translation_loader_po.cpp')
-rw-r--r--core/io/translation_loader_po.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/io/translation_loader_po.cpp b/core/io/translation_loader_po.cpp
index 1a70f9272d..d8ddb213c3 100644
--- a/core/io/translation_loader_po.cpp
+++ b/core/io/translation_loader_po.cpp
@@ -32,6 +32,7 @@
#include "core/os/file_access.h"
#include "core/translation.h"
+#include "core/translation_po.h"
RES TranslationLoaderPO::load_translation(FileAccess *f, Error *r_error) {
enum Status {
@@ -39,7 +40,7 @@ RES TranslationLoaderPO::load_translation(FileAccess *f, Error *r_error) {
STATUS_READING_ID,
STATUS_READING_STRING,
STATUS_READING_CONTEXT,
- STATUS_READING_PLURAL
+ STATUS_READING_PLURAL,
};
Status status = STATUS_NONE;
@@ -54,7 +55,7 @@ RES TranslationLoaderPO::load_translation(FileAccess *f, Error *r_error) {
*r_error = ERR_FILE_CORRUPT;
}
- Ref<Translation> translation = Ref<Translation>(memnew(Translation));
+ Ref<TranslationPO> translation = Ref<TranslationPO>(memnew(TranslationPO));
int line = 1;
int plural_forms = 0;
int plural_index = -1;