diff options
Diffstat (limited to 'Lib/gettext.py')
-rw-r--r-- | Lib/gettext.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/gettext.py b/Lib/gettext.py index c80b9c8..d62ac07 100644 --- a/Lib/gettext.py +++ b/Lib/gettext.py @@ -366,7 +366,7 @@ class GNUTranslations(NullTranslations): # Locate a .mo file using the gettext strategy -def find(domain, localedir=None, languages=None, all=0): +def find(domain, localedir=None, languages=None, all=False): # Get some reasonable defaults for arguments that were not supplied if localedir is None: localedir = _default_localedir @@ -410,7 +410,7 @@ def translation(domain, localedir=None, languages=None, class_=None, fallback=False, codeset=None): if class_ is None: class_ = GNUTranslations - mofiles = find(domain, localedir, languages, all=1) + mofiles = find(domain, localedir, languages, all=True) if not mofiles: if fallback: return NullTranslations() |