mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3cb51b948a
commit
c92d5d2e66
1 changed files with 3 additions and 1 deletions
4
print.c
4
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue