Home | History | Annotate | Download | only in lib

Lines Matching refs:msgid

34 #  define gettext(Msgid) \
35 dgettext (DEFAULT_TEXT_DOMAIN, Msgid)
69 # define gettext(Msgid) ((const char *) (Msgid))
71 # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid))
73 # define dcgettext(Domainname, Msgid, Category) \
74 ((void) (Category), dgettext (Domainname, Msgid))
106 /* The separator between msgctxt and msgid in a .mo file. */
109 /* Pseudo function calls, taking a MSGCTXT and a MSGID instead of just a
110 MSGID. MSGCTXT and MSGID must be string literals. MSGCTXT should be
114 # define pgettext(Msgctxt, Msgid) \
115 pgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
117 # define pgettext(Msgctxt, Msgid) \
118 pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
120 #define dpgettext(Domainname, Msgctxt, Msgid) \
121 pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
122 #define dcpgettext(Domainname, Msgctxt, Msgid, Category) \
123 pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
125 # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \
126 npgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
128 # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \
129 npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
131 #define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N) \
132 npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
133 #define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \
134 npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
145 const char *msg_ctxt_id, const char *msgid,
150 return msgid;
164 const char *msg_ctxt_id, const char *msgid,
171 return (n == 1 ? msgid : msgid_plural);
176 /* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID
190 #define pgettext_expr(Msgctxt, Msgid) \
191 dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
192 #define dpgettext_expr(Domainname, Msgctxt, Msgid) \
193 dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
204 const char *msgctxt, const char *msgid,
208 size_t msgid_len = strlen (msgid) + 1;
223 memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
232 return msgid;
235 #define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N) \
236 dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
237 #define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \
238 dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
249 const char *msgctxt, const char *msgid,
254 size_t msgid_len = strlen (msgid) + 1;
269 memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
278 return (n == 1 ? msgid : msgid_plural);