summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-05-28 12:50:35 +0200
committerGitHub <noreply@github.com>2018-05-28 12:50:35 +0200
commitced113136b2ff9e838bbc86ea798ac8afe6e1062 (patch)
tree680e6c640113535fb4a007d84407215a41925f1f /core
parentdaa136784d69c224fa60161a8f9d5494e56e9ced (diff)
parent1065f06eef57b9c402fb731a94a6f4e69f70804d (diff)
downloadredot-engine-ced113136b2ff9e838bbc86ea798ac8afe6e1062.tar.gz
Merge pull request #19213 from bit-shift-io/master
Fix for not picking up locale of some .po translation files
Diffstat (limited to 'core')
-rw-r--r--core/io/translation_loader_po.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/translation_loader_po.cpp b/core/io/translation_loader_po.cpp
index e01e2a84c5..16d5e3c282 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);
}
}