- gettext: fix cases where no bundle is found (bnc#794139)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=131
This commit is contained in:
Jan Matejek 2013-02-06 19:02:27 +00:00 committed by Git OBS Bridge
parent f335b9efae
commit 1b714c33b3
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 6 19:01:46 UTC 2013 - jmatejek@suse.com
- gettext: fix cases where no bundle is found (bnc#794139)
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 25 11:21:06 UTC 2012 - coolo@suse.com Thu Oct 25 11:21:06 UTC 2012 - coolo@suse.com

View File

@ -16,7 +16,7 @@ Index: Python-2.7.3/Lib/gettext.py
def find(domain, localedir=None, languages=None, all=0): def find(domain, localedir=None, languages=None, all=0):
+ if localedir in [None, _default_localedir]: + if localedir in [None, _default_localedir]:
+ bundle = find(domain, localedir=_default_bundlelocaledir, languages=languages, all=all) + bundle = find(domain, localedir=_default_bundlelocaledir, languages=languages, all=all)
+ if len(bundle): + if bundle:
+ return bundle + return bundle
# Get some reasonable defaults for arguments that were not supplied # Get some reasonable defaults for arguments that were not supplied
if localedir is None: if localedir is None: