Browse Source

Merge pull request #113322 from nikitalita/fix-translation

Fix loading old-style translation files
Thaddeus Crews 1 week ago
parent
commit
66333f9d92
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/string/translation.cpp

+ 1 - 0
core/string/translation.cpp

@@ -77,6 +77,7 @@ void Translation::_set_messages(const Dictionary &p_messages) {
 	for (const KeyValue<Variant, Variant> &kv : p_messages) {
 		switch (kv.key.get_type()) {
 			// Old version, no context or plural support.
+			case Variant::STRING:
 			case Variant::STRING_NAME: {
 				const MessageKey msg_key = { StringName(), kv.key };
 				_check_for_incompatibility(msg_key.msgctxt, msg_key.msgid);