Lines Matching refs:domain

260 "dgettext($module, domain, msg, /)\n"
263 "dgettext(domain, msg) -> string\n"
265 "Return translation of msg in domain.");
271 _locale_dgettext_impl(PyObject *module, const char *domain, const char *in);
277 const char *domain;
284 domain = NULL;
288 domain = PyUnicode_AsUTF8AndSize(args[0], &domain_length);
289 if (domain == NULL) {
292 if (strlen(domain) != (size_t)domain_length) {
314 return_value = _locale_dgettext_impl(module, domain, in);
325 "dcgettext($module, domain, msg, category, /)\n"
328 "Return translation of msg in domain and category.");
334 _locale_dcgettext_impl(PyObject *module, const char *domain,
341 const char *domain;
349 domain = NULL;
353 domain = PyUnicode_AsUTF8AndSize(args[0], &domain_length);
354 if (domain == NULL) {
357 if (strlen(domain) != (size_t)domain_length) {
383 return_value = _locale_dcgettext_impl(module, domain, msgid, category);
394 "textdomain($module, domain, /)\n"
397 "Set the C library\'s textdmain to domain, returning the new domain.");
403 _locale_textdomain_impl(PyObject *module, const char *domain);
409 const char *domain;
412 domain = NULL;
416 domain = PyUnicode_AsUTF8AndSize(arg, &domain_length);
417 if (domain == NULL) {
420 if (strlen(domain) != (size_t)domain_length) {
429 return_value = _locale_textdomain_impl(module, domain);
440 "bindtextdomain($module, domain, dir, /)\n"
443 "Bind the C library\'s domain to dir.");
449 _locale_bindtextdomain_impl(PyObject *module, const char *domain,
456 const char *domain;
467 domain = PyUnicode_AsUTF8AndSize(args[0], &domain_length);
468 if (domain == NULL) {
471 if (strlen(domain) != (size_t)domain_length) {
476 return_value = _locale_bindtextdomain_impl(module, domain, dirname_obj);
487 "bind_textdomain_codeset($module, domain, codeset, /)\n"
490 "Bind the C library\'s domain to codeset.");
496 _locale_bind_textdomain_codeset_impl(PyObject *module, const char *domain,
503 const char *domain;
514 domain = PyUnicode_AsUTF8AndSize(args[0], &domain_length);
515 if (domain == NULL) {
518 if (strlen(domain) != (size_t)domain_length) {
540 return_value = _locale_bind_textdomain_codeset_impl(module, domain, codeset);