From b6468db118f3bd0359f7ba709e391cca4ac7f9d6 Mon Sep 17 00:00:00 2001 From: Craig Smith Date: Fri, 27 Jan 2017 22:43:44 -0800 Subject: [PATCH] Fixes #7630 Hint was be appending for every language. Changed to only fill hint with the matching language. --- tools/editor/io_plugins/editor_translation_import_plugin.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/editor/io_plugins/editor_translation_import_plugin.cpp b/tools/editor/io_plugins/editor_translation_import_plugin.cpp index 47670e239f..b3c11e93e8 100644 --- a/tools/editor/io_plugins/editor_translation_import_plugin.cpp +++ b/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);