From 82e54db588c4eae5a18caf727c4b1949a87e13e2 Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 28 May 2018 12:51:05 +0930 Subject: [PATCH] Fix for not picking up locale of some .po translation files (cherry picked from commit 1065f06eef57b9c402fb731a94a6f4e69f70804d) --- core/io/translation_loader_po.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/translation_loader_po.cpp b/core/io/translation_loader_po.cpp index 9d9cc136433..0e49d590f21 100644 --- a/core/io/translation_loader_po.cpp +++ b/core/io/translation_loader_po.cpp @@ -175,7 +175,7 @@ RES TranslationLoaderPO::load_translation(FileAccess *f, Error *r_error, const S String prop = c.substr(0, p).strip_edges(); String value = c.substr(p + 1, c.length()).strip_edges(); - if (prop == "X-Language") { + if (prop == "X-Language" || prop == "Language") { translation->set_locale(value); } }