Ver código fonte

Merge pull request #7660 from zombieCraig/translationfix

Fixes #7630  Editor Translation Import Crash fix
Rémi Verschelde 8 anos atrás
pai
commit
1d0997b01e

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

@@ -114,11 +114,8 @@ 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);