| 3110 | } |
| 3111 | |
| 3112 | static inline const char * |
| 3113 | xo_dngettext (xo_handle_t *xop, const char *sing, const char *plural, |
| 3114 | unsigned long int n) |
| 3115 | { |
| 3116 | const char *domainname = xop->xo_gt_domain; |
| 3117 | const char *res; |
| 3118 | |
| 3119 | res = dngettext(domainname, sing, plural, n); |
| 3120 | if (XOF_ISSET(xop, XOF_LOG_GETTEXT)) |
| 3121 | fprintf(stderr, "xo: gettext: %s%s%s" |
| 3122 | "msgid \"%s\", msgid_plural \"%s\" (%lu) returns \"%s\"\n", |
| 3123 | domainname ? "domain \"" : "", |
| 3124 | xo_printable(domainname), domainname ? "\", " : "", |
| 3125 | xo_printable(sing), |
| 3126 | xo_printable(plural), n, xo_printable(res)); |
| 3127 | |
| 3128 | return res; |
| 3129 | } |
| 3130 | #else /* HAVE_GETTEXT */ |
| 3131 | static inline const char * |
| 3132 | xo_dgettext (xo_handle_t *xop UNUSED, const char *str) |
no test coverage detected