Lines Matching defs:domain
649 domain: str(accept={str, NoneType})
653 dgettext(domain, msg) -> string
655 Return translation of msg in domain.
659 _locale_dgettext_impl(PyObject *module, const char *domain, const char *in)
662 return PyUnicode_DecodeLocale(dgettext(domain, in), NULL);
668 domain: str(accept={str, NoneType})
673 Return translation of msg in domain and category.
677 _locale_dcgettext_impl(PyObject *module, const char *domain,
681 return PyUnicode_DecodeLocale(dcgettext(domain,msgid,category), NULL);
687 domain: str(accept={str, NoneType})
690 Set the C library's textdmain to domain, returning the new domain.
694 _locale_textdomain_impl(PyObject *module, const char *domain)
697 domain = textdomain(domain);
698 if (!domain) {
702 return PyUnicode_DecodeLocale(domain, NULL);
708 domain: str
712 Bind the C library's domain to dir.
716 _locale_bindtextdomain_impl(PyObject *module, const char *domain,
723 if (!strlen(domain)) {
725 "domain must be a non-empty string");
736 current_dirname = bindtextdomain(domain, dirname);
752 domain: str
756 Bind the C library's domain to codeset.
760 _locale_bind_textdomain_codeset_impl(PyObject *module, const char *domain,
764 codeset = bind_textdomain_codeset(domain, codeset);