forked from pool/python
- 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:
parent
f335b9efae
commit
1b714c33b3
@ -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
|
||||||
|
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user