summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-02-11 01:49:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-11 11:33:04 -0800
commitc92d5d2e668f2467139bc061a15def40a0cd52ea (patch)
tree45773c79c1c9258350b276951ac9c9c8a8f8fa95 /print.c
parent3cb51b948afb92db1804bb557eac83f3c2572d32 (diff)
downloadsubsurface-c92d5d2e668f2467139bc061a15def40a0cd52ea.tar.gz
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 <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'print.c')
-rw-r--r--print.c4
1 files changed, 3 insertions, 1 deletions
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);