Fix some i18n problems.
git-svn-id: svn://localhost/ardour2/branches/3.0@8326 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -190,7 +190,7 @@ StereoPanner::on_expose_event (GdkEventExpose* ev)
|
||||
cairo_select_font_face (cr, "sans-serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
|
||||
if (state != Mono) {
|
||||
cairo_set_source_rgba (cr, UINT_RGBA_R_FLT(t), UINT_RGBA_G_FLT(t), UINT_RGBA_B_FLT(t), UINT_RGBA_A_FLT(t));
|
||||
cairo_show_text (cr, "L");
|
||||
cairo_show_text (cr, _("L"));
|
||||
}
|
||||
|
||||
/* right box */
|
||||
@@ -211,9 +211,9 @@ StereoPanner::on_expose_event (GdkEventExpose* ev)
|
||||
(lr_box_size/2)+step_down + 13);
|
||||
cairo_set_source_rgba (cr, UINT_RGBA_R_FLT(t), UINT_RGBA_G_FLT(t), UINT_RGBA_B_FLT(t), UINT_RGBA_A_FLT(t));
|
||||
if (state == Mono) {
|
||||
cairo_show_text (cr, "M");
|
||||
cairo_show_text (cr, _("M"));
|
||||
} else {
|
||||
cairo_show_text (cr, "R");
|
||||
cairo_show_text (cr, _("R"));
|
||||
}
|
||||
|
||||
/* draw the central box */
|
||||
|
||||
Reference in New Issue
Block a user