From 2f90dfef65b47c1b5f559d523eb803d0b82e5a1b Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 12 Mar 2025 20:12:33 +0800 Subject: [PATCH] Add missing ETR/TTR markups (cherry picked from commit a7c1f2730f9ac6891069f1af08b0b564c401b9e9) --- editor/animation_track_editor.cpp | 3 ++- editor/connections_dialog.cpp | 3 +-- scene/gui/color_picker.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index dbb23d6f17a..bb51c16f37b 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -5088,7 +5088,7 @@ void AnimationTrackEditor::_update_nearest_fps_label() { nearest_fps_label->hide(); } else { nearest_fps_label->show(); - nearest_fps_label->set_text("Nearest FPS: " + itos(nearest_fps)); + nearest_fps_label->set_text(vformat(TTR("Nearest FPS: %d"), nearest_fps)); } } @@ -7688,6 +7688,7 @@ AnimationTrackEditor::AnimationTrackEditor() { fps_compat->connect(SceneStringName(toggled), callable_mp(this, &AnimationTrackEditor::_update_fps_compat_mode)); nearest_fps_label = memnew(Label); + nearest_fps_label->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); bottom_hf->add_child(nearest_fps_label); step = memnew(EditorSpinSlider); diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index d4700bb6f84..5081be0d2d9 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -871,9 +871,8 @@ ConnectDialog::ConnectDialog() { hbc_method->add_child(dst_method); register_text_enter(dst_method); - open_method_tree = memnew(Button); + open_method_tree = memnew(Button(TTRC("Pick"))); hbc_method->add_child(open_method_tree); - open_method_tree->set_text("Pick"); open_method_tree->connect(SceneStringName(pressed), callable_mp(this, &ConnectDialog::_open_method_popup)); advanced = memnew(CheckButton(TTR("Advanced"))); diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index aab7c37bbb5..a5348ad3b29 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -2374,7 +2374,7 @@ ColorPicker::ColorPicker() { swatches_vbc->add_child(palette_box); btn_preset = memnew(Button); - btn_preset->set_text("Swatches"); + btn_preset->set_text(ETR("Swatches")); btn_preset->set_flat(true); btn_preset->set_toggle_mode(true); btn_preset->set_focus_mode(FOCUS_NONE);