aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Smith2017-01-27 22:43:44 -0800
committerCraig Smith2017-01-27 22:43:44 -0800
commitb6468db118f3bd0359f7ba709e391cca4ac7f9d6 (patch)
tree961e9fced806f5b030b870e0a8ddf4c6713eadde
parentcdb0be8eed381b6cf28df6bc1eba26bb79eac576 (diff)
downloadgodot-b6468db118f3bd0359f7ba709e391cca4ac7f9d6.tar.gz
godot-b6468db118f3bd0359f7ba709e391cca4ac7f9d6.tar.zst
godot-b6468db118f3bd0359f7ba709e391cca4ac7f9d6.zip
Fixes #7630 Hint was be appending for every language. Changed to only fill hint with the matching language.
-rw-r--r--tools/editor/io_plugins/editor_translation_import_plugin.cpp5
1 files changed, 1 insertions, 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 47670e239..b3c11e93e 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);