libmicrohttpd
[Top][All Lists]
Advanced

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

Re: [libmicrohttpd] MHD can't find MO files


From: Christian Grothoff
Subject: Re: [libmicrohttpd] MHD can't find MO files
Date: Sat, 25 Feb 2017 01:46:35 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.6.0

n 02/24/2017 11:41 PM, silvioprog wrote:
> P.S: Looking at mhd_options.h I found the following comment:
> 
> /**
>  * Macro to make it easy to mark text for translation. Note that
>  * we do not actually call gettext() in MHD, but we do make it
>  * easy to create a ".po" file so that applications that do want
>  * to translate error messages can do so.
>  */
> #define _(String) (String)
> 
> sorry my ignorance, but, if MHD don't call gettext(), how will it translate
> the massages? o.O

It won't. We just tag them so that applications can choose to translate
them. You have to initialize and call dgettext("libmicrohttpd", s)
inside of your logging callback on all messages/strings you get from
libmicrohttpd (inside the log callback) yourself if you want the
messages translated.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]