| 3094 | |
| 3095 | #ifdef HAVE_GETTEXT |
| 3096 | static inline const char * |
| 3097 | xo_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 | |
| 3112 | static inline const char * |
| 3113 | xo_dngettext (xo_handle_t *xop, const char *sing, const char *plural, |
no test coverage detected