diff options
author | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-02-21 16:41:01 -0300 |
---|---|---|
committer | Michael Alexsander Silva Dias <michaelalexsander@protonmail.com> | 2019-02-21 16:41:01 -0300 |
commit | 3ef8238c1cd01be1be681f70c2c22ef5989efebd (patch) | |
tree | da2c45669a919e962c9e897046abd3e76b05c127 /editor/animation_bezier_editor.cpp | |
parent | a01dca79e2f7b7cb221a4c416cade4fad2941446 (diff) | |
download | redot-engine-3ef8238c1cd01be1be681f70c2c22ef5989efebd.tar.gz |
Make translatable some undo/redo operations in the editor
Diffstat (limited to 'editor/animation_bezier_editor.cpp')
-rw-r--r-- | editor/animation_bezier_editor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/animation_bezier_editor.cpp b/editor/animation_bezier_editor.cpp index 565336701a..f6d4a2665c 100644 --- a/editor/animation_bezier_editor.cpp +++ b/editor/animation_bezier_editor.cpp @@ -758,7 +758,7 @@ void AnimationBezierTrackEdit::_gui_input(const Ref<InputEvent> &p_event) { time += 0.001; } - undo_redo->create_action("Add Bezier Point"); + undo_redo->create_action(TTR("Add Bezier Point")); undo_redo->add_do_method(animation.ptr(), "track_insert_key", track, time, new_point); undo_redo->add_undo_method(animation.ptr(), "track_remove_key_at_position", track, time); undo_redo->commit_action(); @@ -823,7 +823,7 @@ void AnimationBezierTrackEdit::_gui_input(const Ref<InputEvent> &p_event) { if (moving_handle != 0 && mb.is_valid() && !mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT) { - undo_redo->create_action("Move Bezier Points"); + undo_redo->create_action(TTR("Move Bezier Points")); undo_redo->add_do_method(animation.ptr(), "bezier_track_set_key_in_handle", track, moving_handle_key, moving_handle_left); undo_redo->add_do_method(animation.ptr(), "bezier_track_set_key_out_handle", track, moving_handle_key, moving_handle_right); undo_redo->add_undo_method(animation.ptr(), "bezier_track_set_key_in_handle", track, moving_handle_key, animation->bezier_track_get_key_in_handle(track, moving_handle_key)); @@ -839,7 +839,7 @@ void AnimationBezierTrackEdit::_gui_input(const Ref<InputEvent> &p_event) { if (moving_selection) { //combit it - undo_redo->create_action("Move Bezier Points"); + undo_redo->create_action(TTR("Move Bezier Points")); List<AnimMoveRestore> to_restore; // 1-remove the keys @@ -1053,7 +1053,7 @@ void AnimationBezierTrackEdit::_menu_selected(int p_index) { time += 0.001; } - undo_redo->create_action("Add Bezier Point"); + undo_redo->create_action(TTR("Add Bezier Point")); undo_redo->add_do_method(animation.ptr(), "track_insert_key", track, time, new_point); undo_redo->add_undo_method(animation.ptr(), "track_remove_key_at_position", track, time); undo_redo->commit_action(); |