diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-02-11 01:49:23 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-02-11 11:33:04 -0800 |
commit | c92d5d2e668f2467139bc061a15def40a0cd52ea (patch) | |
tree | 45773c79c1c9258350b276951ac9c9c8a8f8fa95 | |
parent | 3cb51b948afb92db1804bb557eac83f3c2572d32 (diff) | |
download | subsurface-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>
-rw-r--r-- | print.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |