Ver Fonte

Revert "Fixes #7630 Hint was be appending for every language. Changed to only fill hint with the matching language."

This reverts commit b6468db118f3bd0359f7ba709e391cca4ac7f9d6,
the bug will be properly fixed by the cherry-pick of 6b5c595.
Rémi Verschelde há 8 anos atrás
pai
commit
9e3f063e99

+ 4 - 1
tools/editor/io_plugins/editor_translation_import_plugin.cpp

@@ -114,8 +114,11 @@ public:
 
 				if (langs[j]==lname.substr(0,langs[j].length()).to_lower()) {
 					idx=j;
-					hint+=names[j].replace(","," ");
 				}
+				if (j>0) {
+					hint+=",";
+				}
+				hint+=names[j].replace(","," ");
 			}
 
 			ti->set_cell_mode(1,TreeItem::CELL_MODE_RANGE);