diff options
author | Carl Hetherington <carl@carlh.net> | 2010-12-22 01:44:00 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-12-22 01:44:00 +0000 |
commit | 9eca7915e2ea5003c92d9d741b44af207933f688 (patch) | |
tree | defb75fc2e09954467cfcb52367078a40fdb5176 /gtk2_ardour/plugin_ui.cc | |
parent | 37b680cd15ba0d7f902a19e56b6b4d324de535e9 (diff) |
Fix some i18n problems.
git-svn-id: svn://localhost/ardour2/branches/3.0@8326 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.cc')
-rw-r--r-- | gtk2_ardour/plugin_ui.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/plugin_ui.cc b/gtk2_ardour/plugin_ui.cc index 9ad9e38f8e..9be3d50841 100644 --- a/gtk2_ardour/plugin_ui.cc +++ b/gtk2_ardour/plugin_ui.cc @@ -497,17 +497,18 @@ PlugUIBase::plugin_going_away () void PlugUIBase::set_latency_label () { - char buf[64]; framecnt_t const l = insert->effective_latency (); framecnt_t const sr = insert->session().frame_rate (); + string t; + if (l < sr / 1000) { - snprintf (buf, sizeof (buf), "latency (%" PRId64 " samples)", l); + t = string_compose (_("latency (%1 samples)"), l); } else { - snprintf (buf, sizeof (buf), "latency (%.2f msecs)", (float) l / ((float) sr / 1000.0f)); + t = string_compose (_("latency (%1 ms)"), (float) l / ((float) sr / 1000.0f)); } - latency_label.set_text (buf); + latency_label.set_text (t); } void |