1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

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
3 changed files with 11 additions and 7 deletions

View File

@@ -721,8 +721,7 @@ bool GridMapEditor::forward_spatial_input_event(Camera *p_camera, const Ref<Inpu
}
if (mb->get_button_index() == BUTTON_LEFT && input_action == INPUT_SELECT) {
undo_redo->create_action("GridMap Selection");
undo_redo->create_action(TTR("GridMap Selection"));
undo_redo->add_do_method(this, "_set_selection", selection.active, selection.begin, selection.end);
undo_redo->add_undo_method(this, "_set_selection", last_selection.active, last_selection.begin, last_selection.end);
undo_redo->commit_action();