From b3c74b48744f03291cab13b17d0f59af334d6a41 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 77fb936043c..5f52867d5bf 100644 --- a/editor/code_editor.cpp +++ b/editor/code_editor.cpp @@ -408,7 +408,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 {