Make action names translatable

(cherry picked from commit a3b221e99f)
This commit is contained in:
Haoyu Qiu 2021-07-31 22:19:47 +08:00 committed by Rémi Verschelde
parent 7be11742b5
commit 321a4bfcd8
No known key found for this signature in database
GPG key ID: C3336907360768E1
3 changed files with 11 additions and 7 deletions

View file

@ -892,7 +892,7 @@ void VisualScriptEditor::_change_port_type(int p_select, int p_id, int p_port, b
if (!vsn.is_valid())
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);
@ -923,7 +923,7 @@ void VisualScriptEditor::_port_name_focus_out(const Node *p_name_box, int p_id,
else
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);