[PATCH 3/4] print.c: Attempt a gettext() fix when printing translated "Gas Used"
Dirk Hohndel
dirk at hohndel.org
Sun Feb 10 15:57:50 PST 2013
Something else is going wrong. NC should mark the text and then provide
context for the translator. So let's not remove that.
/D
On February 10, 2013 3:49:23 PM "Lubomir I. Ivanov"
<neolit123 at gmail.com> wrote:
> 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
>
> _______________________________________________
> subsurface mailing list
> subsurface at hohndel.org
> http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface
More information about the subsurface
mailing list