Lines Matching refs:category
160 int category;
164 if (!PyArg_ParseTuple(args, "i|z:setlocale", &category, &locale))
168 if (category < LC_MIN || category > LC_MAX)
170 PyErr_SetString(Error, "invalid locale category");
177 result = setlocale(category, locale);
187 if (category == LC_CTYPE || category == LC_ALL)
193 result = setlocale(category, NULL);
583 "dcgettext(domain, msg, category) -> string\n"
584 "Return translation of msg in domain and category.");
590 int category;
591 if (!PyArg_ParseTuple(args, "zsi", &domain, &msgid, &category))
593 return PyString_FromString(dcgettext(domain,msgid,category));