| 1 | class Translator: |
| 2 | "Translator" |
| 3 | def __init__(self, mo_data: bytes | None = None) -> None: |
| 4 | "Translator" |
| 5 | pass |
| 6 | |
| 7 | def plural(self, n: int) -> int: |
| 8 | "plural(n: int) -> int:\n\nGet the message catalog index based on the plural form specification." |
| 9 | pass |
| 10 | |
| 11 | def add_fallback(self, other: Translator) -> None: |
| 12 | "add_fallback(other: Translator) -> None:\n\nAdd a fallback translator." |
| 13 | pass |
| 14 | |
| 15 | def install(self, names: tuple[str, ...] | list[str] | None = None) -> None: |
| 16 | "install(names=None) -> None:\n\ninstall translation functions into global namespace" |
| 17 | pass |
| 18 | |
| 19 | def info(self) -> dict[str, str]: |
| 20 | "info() -> dict[str, str]:\n\nReturn information about the mo file as a dict" |
| 21 | pass |
| 22 | |
| 23 | def charset(self) -> str | None: |
| 24 | "charset() -> str:\n\nReturn the character set for this catalog" |
| 25 | pass |
| 26 | |
| 27 | def gettext(self, message: str) -> str: |
| 28 | "gettext(message: str) -> str:\n\nTranslate the provided message" |
| 29 | pass |
| 30 | |
| 31 | def ngettext(self, singular: str, plural: str, n: int) -> str: |
| 32 | "gettext(singular: str, plural: str, n: int) -> str:\n\nTranslate the provided message" |
| 33 | pass |
| 34 | |
| 35 | def pgettext(self, context: str, message: str) -> str: |
| 36 | "pgettext(context: str, message: str) -> str:\n\nTranslate the provided message" |
| 37 | pass |
| 38 | |
| 39 | def npgettext(self, context: str, singular: str, plural: str, n: int) -> str: |
| 40 | "gettext(context: str, singular: str, plural: str, n: int) -> str:\n\nTranslate the provided message" |
| 41 | pass |
| 42 | |
| 43 | def set_as_qt_translator(self) -> int: |
| 44 | "set_as_qt_translator() -> int:\n\nSet this translator to use as the translator for Qt and return a pointer to the qt_translate() function." |
| 45 | pass |