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