Make translatable some undo/redo operations in the editor

This commit is contained in:
Michael Alexsander Silva Dias 2019-02-21 16:41:01 -03:00
parent a01dca79e2
commit 3ef8238c1c
17 changed files with 90 additions and 90 deletions

View file

@ -51,7 +51,7 @@ void GradientEditor::_ramp_changed() {
editing = true;
UndoRedo *undo_redo = EditorNode::get_singleton()->get_undo_redo();
undo_redo->create_action("Gradient Edited");
undo_redo->create_action(TTR("Gradient Edited"));
undo_redo->add_do_method(gradient.ptr(), "set_offsets", get_offsets());
undo_redo->add_do_method(gradient.ptr(), "set_colors", get_colors());
undo_redo->add_undo_method(gradient.ptr(), "set_offsets", gradient->get_offsets());