mirror of
https://github.com/fergalmoran/picard.git
synced 2026-04-05 03:55:14 +00:00
PICARD-1644: Fixed gettext install with Python 3.8
The call to translation.install() provided an invalid parameter, but this had no effect in earlier Python versions.
This commit is contained in:
committed by
Philipp Wolfer
parent
881eb21cca
commit
65cf732036
@@ -79,7 +79,7 @@ def setup_gettext(localedir, ui_language=None, logger=None):
|
||||
try:
|
||||
logger("Loading gettext translation, localedir=%r", localedir)
|
||||
trans = gettext.translation("picard", localedir)
|
||||
trans.install(True)
|
||||
trans.install()
|
||||
_ngettext = trans.ngettext
|
||||
logger("Loading gettext translation (picard-countries), localedir=%r", localedir)
|
||||
trans_countries = gettext.translation("picard-countries", localedir)
|
||||
|
||||
Reference in New Issue
Block a user