Re: [Vala] i18n help



Hello,

the N_ macro doesn't translate the string, it just marks it for
translation so it ends up in the po file. You also need to call _
(a.k.a. gettext) to actually get the translation.

Attached is a patch to fix this for moserial.

HTH,
Abderrahim

2017-12-22 19:03 GMT+01:00 Dr. Michael J. Chudobiak <mjc avtechpulse com>:
Hi all,

I'm having trouble with i18n. The _("") macros in my program work, but the
N_("") ones (for initializing string arrays) don't. Any pointers on what the
issue could be?

This is the program:
https://git.gnome.org/browse/moserial

If you run it, see if the Help > About > License text comes out in your
language... It doesn't if I run:

LC_ALL=fr_CA moserial


- Mike
_______________________________________________
vala-list mailing list
vala-list gnome org
https://mail.gnome.org/mailman/listinfo/vala-list

Attachment: 0001-correctly-call-gettext.patch
Description: Text Data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]