From adf427c806b902123e722e86fda55aa173ec5aa2 Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 26 May 2023 15:55:51 +0200 Subject: [PATCH] Translate inspector changes indicator --- editor/editor_inspector.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 415193c6d54..2c904ee4197 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -1341,11 +1341,7 @@ void EditorInspectorSection::_notification(int p_what) { Color light_font_color = get_theme_color(SNAME("disabled_font_color"), SNAME("Editor")); // Can we fit the long version of the revertable count text? - if (revertable_properties.size() == 1) { - num_revertable_str = "(1 change)"; - } else { - num_revertable_str = vformat("(%d changes)", revertable_properties.size()); - } + num_revertable_str = vformat(TTRN("(%d change)", "(%d changes)", revertable_properties.size()), revertable_properties.size()); num_revertable_width = light_font->get_string_size(num_revertable_str, HORIZONTAL_ALIGNMENT_LEFT, -1.0f, light_font_size, TextServer::JUSTIFICATION_NONE).x; if (label_width + separation + num_revertable_width > available) { // We'll have to use the short version.