mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 13:49:54 +00:00
Merge pull request #113322 from nikitalita/fix-translation
Fix loading old-style translation files
This commit is contained in:
commit
66333f9d92
1 changed files with 1 additions and 0 deletions
|
|
@ -77,6 +77,7 @@ void Translation::_set_messages(const Dictionary &p_messages) {
|
||||||
for (const KeyValue<Variant, Variant> &kv : p_messages) {
|
for (const KeyValue<Variant, Variant> &kv : p_messages) {
|
||||||
switch (kv.key.get_type()) {
|
switch (kv.key.get_type()) {
|
||||||
// Old version, no context or plural support.
|
// Old version, no context or plural support.
|
||||||
|
case Variant::STRING:
|
||||||
case Variant::STRING_NAME: {
|
case Variant::STRING_NAME: {
|
||||||
const MessageKey msg_key = { StringName(), kv.key };
|
const MessageKey msg_key = { StringName(), kv.key };
|
||||||
_check_for_incompatibility(msg_key.msgctxt, msg_key.msgid);
|
_check_for_incompatibility(msg_key.msgctxt, msg_key.msgid);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue