[PATCH 3/4] print.c: Attempt a gettext() fix when printing translated "Gas Used"

Lubomir I. Ivanov neolit123 at gmail.com
Sun Feb 10 15:49:23 PST 2013


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

print_tanks():
It seems the macro call NC_("Amount","Gas Used") does not generate
an entry in the .po file, 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.

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 print.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/print.c b/print.c
index 26c93fd..76fea1f 100644
--- a/print.c
+++ b/print.c
@@ -192,7 +192,7 @@ 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"), N_("Gas Used")};
 	PangoRectangle logic_ext;
 
 	cairo_save(cr);
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list