From 524f34947d1026e039e723a5e3445d0d3acf5a0f Mon Sep 17 00:00:00 2001 From: insolor <2442833+insolor@users.noreply.github.com> Date: Mon, 22 Jul 2024 09:55:48 +0300 Subject: [PATCH] Remove unneeded install call (it adds gettext, ngettext to globals, which we don't use) --- package_build/i18n.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/package_build/i18n.py b/package_build/i18n.py index b2d6a3d..b5b17ad 100644 --- a/package_build/i18n.py +++ b/package_build/i18n.py @@ -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)