Fix for not picking up locale of some .po translation files
(cherry picked from commit 1065f06eef
)
This commit is contained in:
parent
793a205ae1
commit
82e54db588
|
@ -175,7 +175,7 @@ RES TranslationLoaderPO::load_translation(FileAccess *f, Error *r_error, const S
|
||||||
String prop = c.substr(0, p).strip_edges();
|
String prop = c.substr(0, p).strip_edges();
|
||||||
String value = c.substr(p + 1, c.length()).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);
|
translation->set_locale(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue