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_track_editor_plugins.cpp | |
parent | a01dca79e2f7b7cb221a4c416cade4fad2941446 (diff) | |
download | redot-engine-3ef8238c1cd01be1be681f70c2c22ef5989efebd.tar.gz |
Make translatable some undo/redo operations in the editor
Diffstat (limited to 'editor/animation_track_editor_plugins.cpp')
-rw-r--r-- | editor/animation_track_editor_plugins.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/animation_track_editor_plugins.cpp b/editor/animation_track_editor_plugins.cpp index bb0bd1b458..399d561e28 100644 --- a/editor/animation_track_editor_plugins.cpp +++ b/editor/animation_track_editor_plugins.cpp @@ -1005,7 +1005,7 @@ void AnimationTrackEditTypeAudio::drop_data(const Point2 &p_point, const Variant } *get_block_animation_update_ptr() = true; - get_undo_redo()->create_action("Add Audio Track Clip"); + get_undo_redo()->create_action(TTR("Add Audio Track Clip")); get_undo_redo()->add_do_method(get_animation().ptr(), "audio_track_insert_key", get_track(), ofs, stream); get_undo_redo()->add_undo_method(get_animation().ptr(), "track_remove_key_at_position", get_track(), ofs); get_undo_redo()->commit_action(); @@ -1099,7 +1099,7 @@ void AnimationTrackEditTypeAudio::_gui_input(const Ref<InputEvent> &p_event) { if (len_resizing_start) { float prev_ofs = get_animation()->audio_track_get_key_start_offset(get_track(), len_resizing_index); *get_block_animation_update_ptr() = true; - get_undo_redo()->create_action("Change Audio Track Clip Start Offset"); + get_undo_redo()->create_action(TTR("Change Audio Track Clip Start Offset")); get_undo_redo()->add_do_method(get_animation().ptr(), "audio_track_set_key_start_offset", get_track(), len_resizing_index, prev_ofs + ofs_local); get_undo_redo()->add_undo_method(get_animation().ptr(), "audio_track_set_key_start_offset", get_track(), len_resizing_index, prev_ofs); get_undo_redo()->commit_action(); @@ -1108,7 +1108,7 @@ void AnimationTrackEditTypeAudio::_gui_input(const Ref<InputEvent> &p_event) { } else { float prev_ofs = get_animation()->audio_track_get_key_end_offset(get_track(), len_resizing_index); *get_block_animation_update_ptr() = true; - get_undo_redo()->create_action("Change Audio Track Clip End Offset"); + get_undo_redo()->create_action(TTR("Change Audio Track Clip End Offset")); get_undo_redo()->add_do_method(get_animation().ptr(), "audio_track_set_key_end_offset", get_track(), len_resizing_index, prev_ofs + ofs_local); get_undo_redo()->add_undo_method(get_animation().ptr(), "audio_track_set_key_end_offset", get_track(), len_resizing_index, prev_ofs); get_undo_redo()->commit_action(); |