diff options
| author | Rémi Verschelde | 2016-05-21 16:34:56 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-05-21 16:34:56 +0200 |
| commit | be053e62860a6b9d712e6ece4cde025569ff2efb (patch) | |
| tree | 74da8d8fd753cffb9ec7009c2eee13741a0ffb3b /tools/editor/plugins/sample_editor_plugin.cpp | |
| parent | a65a66b2a3b44ae93258cbdab7388752d1a05fad (diff) | |
| download | godot-be053e62860a6b9d712e6ece4cde025569ff2efb.tar.gz godot-be053e62860a6b9d712e6ece4cde025569ff2efb.tar.zst godot-be053e62860a6b9d712e6ece4cde025569ff2efb.zip | |
i18n: Use %d instead of %i in vformat
Fixes #4742.
Diffstat (limited to 'tools/editor/plugins/sample_editor_plugin.cpp')
| -rw-r--r-- | tools/editor/plugins/sample_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/sample_editor_plugin.cpp b/tools/editor/plugins/sample_editor_plugin.cpp index 733e894ba..3a54273d1 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); } |
