massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / gettext.pyi
1 from typing import Any, Container, Dict, IO, List, Optional, Sequence, Type, Union\r
2 \r
3 def bindtextdomain(domain: str, localedir: str = ...) -> str: ...\r
4 def bind_textdomain_codeset(domain: str, codeset: str = ...) -> str: ...\r
5 def textdomain(domain: str = ...) -> str: ...\r
6 def gettext(message: str) -> str: ...\r
7 def lgettext(message: str) -> str: ...\r
8 def dgettext(domain: str, message: str) -> str: ...\r
9 def ldgettext(domain: str, message: str) -> str: ...\r
10 def ngettext(singular: str, plural: str, n: int) -> str: ...\r
11 def lngettext(singular: str, plural: str, n: int) -> str: ...\r
12 def dngettext(domain: str, singular: str, plural: str, n: int) -> str: ...\r
13 def ldngettext(domain: str, singular: str, plural: str, n: int) -> str: ...\r
14 \r
15 class NullTranslations(object):\r
16     def __init__(self, fp: IO[str] = ...) -> None: ...\r
17     def _parse(self, fp: IO[str]) -> None: ...\r
18     def add_fallback(self, fallback: NullTranslations) -> None: ...\r
19     def gettext(self, message: str) -> str: ...\r
20     def lgettext(self, message: str) -> str: ...\r
21     def ugettext(self, message: Union[str, unicode]) -> unicode: ...\r
22     def ngettext(self, singular: str, plural: str, n: int) -> str: ...\r
23     def lngettext(self, singular: str, plural: str, n: int) -> str: ...\r
24     def ungettext(self, singular: Union[str, unicode], plural: Union[str, unicode], n: int) -> unicode: ...\r
25     def info(self) -> Dict[str, str]: ...\r
26     def charset(self) -> Optional[str]: ...\r
27     def output_charset(self) -> Optional[str]: ...\r
28     def set_output_charset(self, charset: Optional[str]) -> None: ...\r
29     def install(self, unicode: bool = ..., names: Container[str] = ...) -> None: ...\r
30 \r
31 class GNUTranslations(NullTranslations):\r
32     LE_MAGIC = ...  # type: int\r
33     BE_MAGIC = ...  # type: int\r
34 \r
35 def find(domain: str, localedir: Optional[str] = ..., languages: Optional[Sequence[str]] = ...,\r
36          all: Any = ...) -> Optional[Union[str, List[str]]]: ...\r
37 \r
38 def translation(domain: str, localedir: Optional[str] = ..., languages: Optional[Sequence[str]] = ...,\r
39                 class_: Optional[Type[NullTranslations]] = ..., fallback: bool = ..., codeset: Optional[str] = ...) -> NullTranslations: ...\r
40 def install(domain: str, localedir: Optional[str] = ..., unicode: bool = ..., codeset: Optional[str] = ...,\r
41             names: Container[str] = ...) -> None: ...\r