From c92d5d2e668f2467139bc061a15def40a0cd52ea Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Mon, 11 Feb 2013 01:49:23 +0200 Subject: [PATCH] print.c: Attempt a gettext() fix when printing translated "Gas Used" print_tanks(): It seems the macro call NC_("Amount","Gas Used") generates an entry in the .po file that then isn't matched at run time, which makes the bg_BG print have "Gas Used" in english instead of the translated text (which is already present in other places). On the other hand if we use N_ here (only mark it), the printed text is translated correctly. [Dirk Hohndel: added GETTEXT comment in code and rephrased commit message] Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- print.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/print.c b/print.c index 26c93fd28..a59456ba1 100644 --- a/print.c +++ b/print.c @@ -192,7 +192,9 @@ static void print_tanks (struct dive *dive, cairo_t *cr, PangoLayout *layout, in double w_scale_factor) { int curwidth, n, i, counter; - char buffer[80], dataheader1[3][80]= { N_("Cylinder"), N_("Gasmix"), NC_("Amount","Gas Used")}; + char buffer[80], dataheader1[3][80]= { N_("Cylinder"), N_("Gasmix"), + /*++GETTEXT Gas Used is amount used */ + N_("Gas Used")}; PangoRectangle logic_ext; cairo_save(cr);