Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Fix inconsistent text format for sound items

kobewic3c36376a557
diff --git a/editor/scene/gui/theme_editor_plugin.cpp b/editor/scene/gui/theme_editor_plugin.cpp
index 6bb7a1d6e17..224c61140c6 100644
--- a/editor/scene/gui/theme_editor_plugin.cpp
+++ b/editor/scene/gui/theme_editor_plugin.cpp
@@ -360,8 +360,7 @@ void ThemeItemImportTree::_update_items_tree() {
}
if (sound_amount > 0) {
- Array arr = { sound_amount };
- select_sounds_label->set_text(TTRN("1 sound", "{num} sounds", sound_amount).format(arr, "{num}"));
+ select_sounds_label->set_text(vformat(TTRN("%d sound", "%d sounds", sound_amount), sound_amount));
select_all_sounds_button->set_visible(true);
select_full_sounds_button->set_visible(true);
deselect_all_sounds_button->set_visible(true);