mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +00:00
Make action names translatable
This commit is contained in:
parent
20d46c5b9e
commit
284c6c81eb
5 changed files with 18 additions and 12 deletions
|
@ -984,7 +984,7 @@ void VisualScriptEditor::_change_port_type(int p_select, int p_id, int p_port, b
|
|||
return;
|
||||
}
|
||||
|
||||
undo_redo->create_action("Change Port Type");
|
||||
undo_redo->create_action(TTR("Change Port Type"));
|
||||
if (is_input) {
|
||||
undo_redo->add_do_method(vsn.ptr(), "set_input_data_port_type", p_port, Variant::Type(p_select));
|
||||
undo_redo->add_undo_method(vsn.ptr(), "set_input_data_port_type", p_port, vsn->get_input_value_port_info(p_port).type);
|
||||
|
@ -1016,7 +1016,7 @@ void VisualScriptEditor::_port_name_focus_out(const Node *p_name_box, int p_id,
|
|||
return;
|
||||
}
|
||||
|
||||
undo_redo->create_action("Change Port Name");
|
||||
undo_redo->create_action(TTR("Change Port Name"));
|
||||
if (is_input) {
|
||||
undo_redo->add_do_method(vsn.ptr(), "set_input_data_port_name", p_port, text);
|
||||
undo_redo->add_undo_method(vsn.ptr(), "set_input_data_port_name", p_port, vsn->get_input_value_port_info(p_port).name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue