From 6bfb24ba0dd1d0000f69ce7f7de122629827a161 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 24 Mar 2012 13:55:08 +0100 Subject: [PATCH] Mark histogram legend strings for translation --- src/output/charts/plot-hist-cairo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output/charts/plot-hist-cairo.c b/src/output/charts/plot-hist-cairo.c index 9ce4abb3ed..6deccec1c0 100644 --- a/src/output/charts/plot-hist-cairo.c +++ b/src/output/charts/plot-hist-cairo.c @@ -38,7 +38,7 @@ histogram_write_legend (cairo_t *cr, const struct xrchart_geometry *geom, if (n != SYSMIS) { - char *buf = xasprintf ("N = %.2f", n); + char *buf = xasprintf (_("N = %.2f"), n); cairo_move_to (cr, geom->legend_left, y); xrchart_label (cr, 'l', 'b', geom->font_size, buf); y += geom->font_size * 1.5; @@ -47,7 +47,7 @@ histogram_write_legend (cairo_t *cr, const struct xrchart_geometry *geom, if (mean != SYSMIS) { - char *buf = xasprintf ("Mean = %.1f", mean); + char *buf = xasprintf (_("Mean = %.1f"), mean); cairo_move_to (cr,geom->legend_left, y); xrchart_label (cr, 'l', 'b', geom->font_size, buf); y += geom->font_size * 1.5; @@ -56,7 +56,7 @@ histogram_write_legend (cairo_t *cr, const struct xrchart_geometry *geom, if (stddev != SYSMIS) { - char *buf = xasprintf ("Std. Dev = %.2f", stddev); + char *buf = xasprintf (_("Std. Dev = %.2f"), stddev); cairo_move_to (cr, geom->legend_left, y); xrchart_label (cr, 'l', 'b', geom->font_size, buf); free (buf); -- 2.30.2