mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 12:14:28 +08:00
Merge pull request #126 from rik/lazy-translation
Improve lazy translation functions
This commit is contained in:
@@ -39,16 +39,13 @@ ungettext = ngettext
|
||||
def pgettext(context: str, message: str) -> str: ...
|
||||
def npgettext(context: str, singular: str, plural: str, number: int) -> str: ...
|
||||
|
||||
gettext_lazy: Callable[[str], str]
|
||||
gettext_lazy = gettext
|
||||
ugettext_lazy = ugettext
|
||||
pgettext_lazy = pgettext
|
||||
ngettext_lazy = ngettext
|
||||
ungettext_lazy = ungettext
|
||||
npgettext_lazy = npgettext
|
||||
|
||||
ugettext_lazy: Callable[[str], str]
|
||||
pgettext_lazy: Callable[[str], str]
|
||||
|
||||
def ngettext_lazy(singular: Any, plural: Any, number: Optional[Any] = ...): ...
|
||||
|
||||
ungettext_lazy = ngettext_lazy
|
||||
|
||||
def npgettext_lazy(context: Any, singular: Any, plural: Any, number: Optional[Any] = ...): ...
|
||||
def activate(language: str) -> None: ...
|
||||
def deactivate() -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user