MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_dgettext

Function xo_dgettext

tools/libxo/libxo/libxo.c:3096–3110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3094
3095#ifdef HAVE_GETTEXT
3096static inline const char *
3097xo_dgettext (xo_handle_t *xop, const char *str)
3098{
3099 const char *domainname = xop->xo_gt_domain;
3100 const char *res;
3101
3102 res = dgettext(domainname, str);
3103
3104 if (XOF_ISSET(xop, XOF_LOG_GETTEXT))
3105 fprintf(stderr, "xo: gettext: %s%s%smsgid \"%s\" returns \"%s\"\n",
3106 domainname ? "domain \"" : "", xo_printable(domainname),
3107 domainname ? "\", " : "", xo_printable(str), xo_printable(res));
3108
3109 return res;
3110}
3111
3112static inline const char *
3113xo_dngettext (xo_handle_t *xop, const char *sing, const char *plural,

Callers 2

xo_format_gettextFunction · 0.85
xo_gettext_build_formatFunction · 0.85

Calls 1

xo_printableFunction · 0.85

Tested by

no test coverage detected