From 545e37cf7758f434cf54b851014972542e53022f Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 2 Jul 2023 16:48:37 +0800 Subject: [PATCH] Translate "No match" message in FindReplaceBar (cherry picked from commit ac454ce2a75fb4a10ea23681d450e4d7605ba050) --- editor/code_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp index b48bd4ab5fa..70fd7380198 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -410,7 +410,7 @@ void FindReplaceBar::_update_matches_label() { matches_label->add_theme_color_override("font_color", results_count > 0 ? get_theme_color(SNAME("font_color"), SNAME("Label")) : get_theme_color(SNAME("error_color"), SNAME("Editor"))); if (results_count == 0) { - matches_label->set_text("No match"); + matches_label->set_text(TTR("No match")); } else if (results_count_to_current == -1) { matches_label->set_text(vformat(TTRN("%d match", "%d matches", results_count), results_count)); } else {