summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2023-04-23 17:49:55 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2023-04-23 17:49:55 +0800
commit997ff8f14a232657c765dad6017e7a9b1fed6228 (patch)
treefc2f6121c70aa9612365af67e8051e06ae1463b7 /editor/project_settings_editor.cpp
parent27253f3eb2c78a9ad5114c92eae2036b10e1d7e0 (diff)
downloadredot-engine-997ff8f14a232657c765dad6017e7a9b1fed6228.tar.gz
Translate undo/redo messages in settings dialogs
Diffstat (limited to 'editor/project_settings_editor.cpp')
-rw-r--r--editor/project_settings_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp
index 5c159d54ac..1cd863fb8a 100644
--- a/editor/project_settings_editor.cpp
+++ b/editor/project_settings_editor.cpp
@@ -236,7 +236,7 @@ void ProjectSettingsEditor::shortcut_input(const Ref<InputEvent> &p_event) {
if (ED_IS_SHORTCUT("ui_undo", p_event)) {
String action = undo_redo->get_current_action_name();
if (!action.is_empty()) {
- EditorNode::get_log()->add_message("Undo: " + action, EditorLog::MSG_TYPE_EDITOR);
+ EditorNode::get_log()->add_message(vformat(TTR("Undo: %s"), action), EditorLog::MSG_TYPE_EDITOR);
}
undo_redo->undo();
handled = true;
@@ -246,7 +246,7 @@ void ProjectSettingsEditor::shortcut_input(const Ref<InputEvent> &p_event) {
undo_redo->redo();
String action = undo_redo->get_current_action_name();
if (!action.is_empty()) {
- EditorNode::get_log()->add_message("Redo: " + action, EditorLog::MSG_TYPE_EDITOR);
+ EditorNode::get_log()->add_message(vformat(TTR("Redo: %s"), action), EditorLog::MSG_TYPE_EDITOR);
}
handled = true;
}