binary-newsreaderusenettraktkodistabletvshowsqnaptautullifanartsickbeardtvseriesplexswizzinembyseedboxtvdbnzbgetsubtitlewebuiquickbox
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
2.1 KiB
44 lines
2.1 KiB
# Stubs for tornado_py3.locale (Python 3)
|
|
#
|
|
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
|
|
|
import datetime
|
|
import gettext
|
|
from typing import Any, Dict, Iterable, Optional, Union
|
|
|
|
CONTEXT_SEPARATOR: str
|
|
|
|
def get(*locale_codes: str) -> Locale: ...
|
|
def set_default_locale(code: str) -> None: ...
|
|
def load_translations(directory: str, encoding: Optional[str]=...) -> None: ...
|
|
def load_gettext_translations(directory: str, domain: str) -> None: ...
|
|
def get_supported_locales() -> Iterable[str]: ...
|
|
|
|
class Locale:
|
|
@classmethod
|
|
def get_closest(cls: Any, *locale_codes: str) -> Locale: ...
|
|
@classmethod
|
|
def get(cls: Any, code: str) -> Locale: ...
|
|
code: Any = ...
|
|
name: Any = ...
|
|
rtl: bool = ...
|
|
def __init__(self, code: str) -> None: ...
|
|
def translate(self, message: str, plural_message: Optional[str]=..., count: Optional[int]=...) -> str: ...
|
|
def pgettext(self, context: str, message: str, plural_message: Optional[str]=..., count: Optional[int]=...) -> str: ...
|
|
def format_date(self, date: Union[int, float, datetime.datetime], gmt_offset: int=..., relative: bool=..., shorter: bool=..., full_format: bool=...) -> str: ...
|
|
def format_day(self, date: datetime.datetime, gmt_offset: int=..., dow: bool=...) -> bool: ...
|
|
def list(self, parts: Any) -> str: ...
|
|
def friendly_number(self, value: int) -> str: ...
|
|
|
|
class CSVLocale(Locale):
|
|
translations: Any = ...
|
|
def __init__(self, code: str, translations: Dict[str, Dict[str, str]]) -> None: ...
|
|
def translate(self, message: str, plural_message: Optional[str]=..., count: Optional[int]=...) -> str: ...
|
|
def pgettext(self, context: str, message: str, plural_message: Optional[str]=..., count: Optional[int]=...) -> str: ...
|
|
|
|
class GettextLocale(Locale):
|
|
ngettext: Any = ...
|
|
gettext: Any = ...
|
|
def __init__(self, code: str, translations: gettext.NullTranslations) -> None: ...
|
|
def translate(self, message: str, plural_message: Optional[str]=..., count: Optional[int]=...) -> str: ...
|
|
def pgettext(self, context: str, message: str, plural_message: Optional[str]=..., count: Optional[int]=...) -> str: ...
|
|
|