summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-08-03 07:26:36 +0200
committerRémi Verschelde <rverschelde@gmail.com>2016-08-03 07:26:36 +0200
commite51f4725fef586077fa1abfc56873b0f87d8b27d (patch)
tree07d509c2bec69880c56e292256870042f437608b
parent3d1d190dcd2993f87d5804de8a60e8bf5fc2cf49 (diff)
Fix translatable strings in VisualScript
-rw-r--r--modules/visual_script/visual_script_editor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp
index 3b40d71ff6..f25bd0b998 100644
--- a/modules/visual_script/visual_script_editor.cpp
+++ b/modules/visual_script/visual_script_editor.cpp
@@ -569,7 +569,7 @@ void VisualScriptEditor::_update_members() {
List<StringName> var_names;
script->get_variable_list(&var_names);
for (List<StringName>::Element *E=var_names.front();E;E=E->next()) {
- TreeItem *ti = members->create_item(variables) ;
+ TreeItem *ti = members->create_item(variables);
ti->set_text(0,E->get());
ti->set_selectable(0,true);
ti->set_editable(0,true);
@@ -589,7 +589,7 @@ void VisualScriptEditor::_update_members() {
List<StringName> signal_names;
script->get_custom_signal_list(&signal_names);
for (List<StringName>::Element *E=signal_names.front();E;E=E->next()) {
- TreeItem *ti = members->create_item(_signals) ;
+ TreeItem *ti = members->create_item(_signals);
ti->set_text(0,E->get());
ti->set_selectable(0,true);
ti->set_editable(0,true);
@@ -659,7 +659,7 @@ void VisualScriptEditor::_member_edited() {
if (!new_name.is_valid_identifier()) {
- EditorNode::get_singleton()->show_warning(TTR("Name is not a valid identifier: ")+new_name);
+ EditorNode::get_singleton()->show_warning(TTR("Name is not a valid identifier:")+" "+new_name);
updating_members=true;
ti->set_text(0,name);
updating_members=false;
@@ -669,7 +669,7 @@ void VisualScriptEditor::_member_edited() {
if (script->has_function(new_name) || script->has_variable(new_name) || script->has_custom_signal(new_name)) {
- EditorNode::get_singleton()->show_warning(TTR("Name already in use by another func/var/signal: ")+new_name);
+ EditorNode::get_singleton()->show_warning(TTR("Name already in use by another func/var/signal:")+" "+new_name);
updating_members=true;
ti->set_text(0,name);
updating_members=false;
@@ -963,7 +963,7 @@ void VisualScriptEditor::_member_button(Object *p_item, int p_column, int p_butt
} else if (p_button==0) {
variable_editor->edit(name);
- edit_variable_dialog->set_title(TTR("Editing Variable: ")+name);
+ edit_variable_dialog->set_title(TTR("Editing Variable:")+" "+name);
edit_variable_dialog->popup_centered_minsize(Size2(400,200)*EDSCALE);
}
@@ -989,7 +989,7 @@ void VisualScriptEditor::_member_button(Object *p_item, int p_column, int p_butt
} else if (p_button==0) {
signal_editor->edit(name);
- edit_signal_dialog->set_title(TTR("Editing Signal: ")+name);
+ edit_signal_dialog->set_title(TTR("Editing Signal:")+" "+name);
edit_signal_dialog->popup_centered_minsize(Size2(400,300)*EDSCALE);
}