Skip to content

Commit

Permalink
Remove unneeded install call (it adds gettext, ngettext to globals, w…
Browse files Browse the repository at this point in the history
…hich we don't use)
  • Loading branch information
insolor committed Jul 22, 2024
1 parent 74e755f commit 524f349
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions package_build/i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ def __init__(self) -> None:

def gettext(self, message: str) -> str:
lang = get_lang(tuple(get_preferred_languages()))
lang.install()
return lang.gettext(message)

def ngettext(self, singular: str, plural: str, n: int) -> str:
lang = get_lang(tuple(get_preferred_languages()))
lang.install()
return lang.ngettext(singular, plural, n)


Expand Down

0 comments on commit 524f349

Please sign in to comment.