mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-21 09:34:12 +03:00
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:
parent
8872e1e962
commit
6a28de0f22
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user