Home | History | Annotate | Download | only in lib

Lines Matching refs:msgid

32 #  define gettext(Msgid) \
33 dgettext (DEFAULT_TEXT_DOMAIN, Msgid)
67 # define gettext(Msgid) ((const char *) (Msgid))
69 # define dgettext(Domainname, Msgid) ((void) (Domainname), gettext (Msgid))
71 # define dcgettext(Domainname, Msgid, Category) \
72 ((void) (Category), dgettext (Domainname, Msgid))
110 /* The separator between msgctxt and msgid in a .mo file. */
113 /* Pseudo function calls, taking a MSGCTXT and a MSGID instead of just a
114 MSGID. MSGCTXT and MSGID must be string literals. MSGCTXT should be
118 # define pgettext(Msgctxt, Msgid) \
119 pgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
121 # define pgettext(Msgctxt, Msgid) \
122 pgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
124 #define dpgettext(Domainname, Msgctxt, Msgid) \
125 pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, LC_MESSAGES)
126 #define dcpgettext(Domainname, Msgctxt, Msgid, Category) \
127 pgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, Category)
129 # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \
130 npgettext_aux (DEFAULT_TEXT_DOMAIN, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
132 # define npgettext(Msgctxt, Msgid, MsgidPlural, N) \
133 npgettext_aux (NULL, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
135 #define dnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N) \
136 npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, LC_MESSAGES)
137 #define dcnpgettext(Domainname, Msgctxt, Msgid, MsgidPlural, N, Category) \
138 npgettext_aux (Domainname, Msgctxt GETTEXT_CONTEXT_GLUE Msgid, Msgid, MsgidPlural, N, Category)
149 const char *msg_ctxt_id, const char *msgid,
154 return msgid;
168 const char *msg_ctxt_id, const char *msgid,
175 return (n == 1 ? msgid : msgid_plural);
180 /* The same thing extended for non-constant arguments. Here MSGCTXT and MSGID
197 #define pgettext_expr(Msgctxt, Msgid) \
198 dcpgettext_expr (NULL, Msgctxt, Msgid, LC_MESSAGES)
199 #define dpgettext_expr(Domainname, Msgctxt, Msgid) \
200 dcpgettext_expr (Domainname, Msgctxt, Msgid, LC_MESSAGES)
211 const char *msgctxt, const char *msgid,
215 size_t msgid_len = strlen (msgid) + 1;
230 memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
239 return msgid;
242 #define npgettext_expr(Msgctxt, Msgid, MsgidPlural, N) \
243 dcnpgettext_expr (NULL, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
244 #define dnpgettext_expr(Domainname, Msgctxt, Msgid, MsgidPlural, N) \
245 dcnpgettext_expr (Domainname, Msgctxt, Msgid, MsgidPlural, N, LC_MESSAGES)
256 const char *msgctxt, const char *msgid,
261 size_t msgid_len = strlen (msgid) + 1;
276 memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len);
285 return (n == 1 ? msgid : msgid_plural);