diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-02-09 17:01:32 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-02-09 19:32:02 +0800 |
commit | a40ccc2d7e48f5cf5bfe36504c2969cbdfa4aa6b (patch) | |
tree | 52ceba6d9c1e54c2229e5d52ecbc65a43196027d /editor/import | |
parent | d69809cab603cae9f525768337affe5e12e454a8 (diff) |
Improve some editor strings for localization
Diffstat (limited to 'editor/import')
-rw-r--r-- | editor/import/dynamic_font_import_settings.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/import/dynamic_font_import_settings.cpp b/editor/import/dynamic_font_import_settings.cpp index cfbe34b868..6e74c42b2c 100644 --- a/editor/import/dynamic_font_import_settings.cpp +++ b/editor/import/dynamic_font_import_settings.cpp @@ -528,7 +528,7 @@ void DynamicFontImportSettings::_variation_selected() { inspector_vars->edit(import_variation_data.ptr()); import_variation_data->notify_property_list_changed(); - label_glyphs->set_text(TTR("Preloaded glyphs: ") + itos(import_variation_data->selected_glyphs.size())); + label_glyphs->set_text(vformat(TTR("Preloaded glyphs: %d"), import_variation_data->selected_glyphs.size())); _range_selected(); _change_text_opts(); @@ -659,7 +659,7 @@ void DynamicFontImportSettings::_glyph_update_lbl() { } } int unlinked_glyphs = import_variation_data->selected_glyphs.size() - linked_glyphs; - label_glyphs->set_text(TTR("Preloaded glyphs:") + " " + itos(unlinked_glyphs + import_variation_data->selected_chars.size())); + label_glyphs->set_text(vformat(TTR("Preloaded glyphs: %d"), unlinked_glyphs + import_variation_data->selected_chars.size())); } void DynamicFontImportSettings::_glyph_clear() { @@ -1403,7 +1403,7 @@ DynamicFontImportSettings::DynamicFontImportSettings() { label_glyphs = memnew(Label); gl_hb->add_child(label_glyphs); - label_glyphs->set_text(TTR("Preloaded glyphs:") + " " + itos(0)); + label_glyphs->set_text(vformat(TTR("Preloaded glyphs: %d"), 0)); label_glyphs->set_custom_minimum_size(Size2(50 * EDSCALE, 0)); Button *btn_clear = memnew(Button); |