You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Improve undo action names
* Avoid concating strings manually for better i18n and easy l10n * Use `vformat` when possible * Use separate strings if the changing part is only a few hardcoded strings * Don't put a period at the end of the name
This commit is contained in:
@@ -6370,7 +6370,7 @@ public:
|
||||
EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
|
||||
|
||||
updating = true;
|
||||
undo_redo->create_action(TTR("Edit Visual Property:") + " " + p_property, UndoRedo::MERGE_ENDS);
|
||||
undo_redo->create_action(vformat(TTR("Edit Visual Property: %s"), p_property), UndoRedo::MERGE_ENDS);
|
||||
undo_redo->add_do_property(node.ptr(), p_property, p_value);
|
||||
undo_redo->add_undo_property(node.ptr(), p_property, node->get(p_property));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user