i18n: globally install also the ngettext function

It will be used to translate strings with plural forms.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Pino Toscano <ptoscano@redhat.com>
This commit is contained in:
Pino Toscano 2020-07-14 09:41:56 +02:00 committed by Cole Robinson
parent 8872e1e962
commit 6a28de0f22

View File

@ -21,7 +21,8 @@ def _setup_i18n():
# Can happen if user passed a bogus LANG
pass
gettext.install("virt-manager", BuildConfig.gettext_dir)
gettext.install("virt-manager", BuildConfig.gettext_dir,
names=["ngettext"])
gettext.bindtextdomain("virt-manager", BuildConfig.gettext_dir)