summaryrefslogtreecommitdiff
path: root/editor/import
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-09 12:38:17 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-09 12:38:17 +0100
commitd02a7bc00d76d50843f1b938914340135060a119 (patch)
treee4c4d41874c7d692cd2aeca7cc03aaf3c8a5a22d /editor/import
parentebe3cfc061d84d3d1b4496165d666b2bbed093f7 (diff)
parenta40ccc2d7e48f5cf5bfe36504c2969cbdfa4aa6b (diff)
Merge pull request #72953 from timothyqiu/i18n-improvements
Improve some editor strings for localization
Diffstat (limited to 'editor/import')
-rw-r--r--editor/import/dynamic_font_import_settings.cpp6
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);