From be053e62860a6b9d712e6ece4cde025569ff2efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 21 May 2016 16:34:56 +0200 Subject: i18n: Use %d instead of %i in vformat Fixes #4742. --- tools/editor/plugins/baked_light_baker.cpp | 2 +- tools/editor/plugins/cube_grid_theme_editor_plugin.cpp | 2 +- tools/editor/plugins/item_list_editor_plugin.cpp | 4 ++-- tools/editor/plugins/sample_editor_plugin.cpp | 2 +- tools/editor/plugins/spatial_editor_plugin.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tools/editor/plugins') diff --git a/tools/editor/plugins/baked_light_baker.cpp b/tools/editor/plugins/baked_light_baker.cpp index 6023f2567a..b6bb774364 100644 --- a/tools/editor/plugins/baked_light_baker.cpp +++ b/tools/editor/plugins/baked_light_baker.cpp @@ -728,7 +728,7 @@ void BakedLightBaker::_make_octree() { for(int i=0;i<8;i++) root->children[i]=0; - EditorProgress ep("bake_octree",vformat(TTR("Parsing %i Triangles:"), triangles.size()),triangles.size()); + EditorProgress ep("bake_octree",vformat(TTR("Parsing %d Triangles:"), triangles.size()),triangles.size()); for(int i=0;i=3) { to_erase = p.get_slice("/",3).to_int(); - cd->set_text(vformat(TTR("Remove item %i?"),to_erase)); + cd->set_text(vformat(TTR("Remove item %d?"),to_erase)); cd->popup_centered(Size2(300,60)); } } break; diff --git a/tools/editor/plugins/item_list_editor_plugin.cpp b/tools/editor/plugins/item_list_editor_plugin.cpp index 72b39d6e5f..b711e13193 100644 --- a/tools/editor/plugins/item_list_editor_plugin.cpp +++ b/tools/editor/plugins/item_list_editor_plugin.cpp @@ -129,7 +129,7 @@ int ItemListOptionButtonPlugin::get_flags() const { void ItemListOptionButtonPlugin::add_item() { - ob->add_item( vformat(TTR("Item %i"),ob->get_item_count())); + ob->add_item( vformat(TTR("Item %d"),ob->get_item_count())); _change_notify(); } @@ -171,7 +171,7 @@ int ItemListPopupMenuPlugin::get_flags() const { void ItemListPopupMenuPlugin::add_item() { - pp->add_item( vformat(TTR("Item %i"),pp->get_item_count())); + pp->add_item( vformat(TTR("Item %d"),pp->get_item_count())); _change_notify(); } diff --git a/tools/editor/plugins/sample_editor_plugin.cpp b/tools/editor/plugins/sample_editor_plugin.cpp index 733e894bac..3a54273d14 100644 --- a/tools/editor/plugins/sample_editor_plugin.cpp +++ b/tools/editor/plugins/sample_editor_plugin.cpp @@ -328,7 +328,7 @@ void SampleEditor::_update_sample() { return; //bye or unsupported generate_preview_texture(sample,peakdisplay); - info_label->set_text(TTR("Length:")+" "+vformat(TTR("%i frames"), sample->get_length())+" ("+String::num(sample->get_length()/(float)sample->get_mix_rate(),2)+" s), "+(sample->get_format()==Sample::FORMAT_PCM16?TTR("16 Bits"):TTR("8 Bits"))+", "+(sample->is_stereo()?TTR("Stereo"):TTR("Mono"))+"."); + info_label->set_text(TTR("Length:")+" "+vformat(TTR("%d frames"), sample->get_length())+" ("+String::num(sample->get_length()/(float)sample->get_mix_rate(),2)+" s), "+(sample->get_format()==Sample::FORMAT_PCM16?TTR("16 Bits"):TTR("8 Bits"))+", "+(sample->is_stereo()?TTR("Stereo"):TTR("Mono"))+"."); library->add_sample("default",sample); } diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp index fa99a3d335..55485d8c92 100644 --- a/tools/editor/plugins/spatial_editor_plugin.cpp +++ b/tools/editor/plugins/spatial_editor_plugin.cpp @@ -1353,7 +1353,7 @@ void SpatialEditorViewport::_sinput(const InputEvent &p_event) { scale = Math::stepify(scale,spatial_editor->get_scale_snap()); } - set_message(vformat(TTR("Scaling to %s\%."),String::num(scale,1))); + set_message(vformat(TTR("Scaling to %s%%."),String::num(scale,1))); scale/=100.0; Transform r; -- cgit v1.2.3