Quoting Vincent Untz
Hey,
- Fix pythons gettext
That's what we want, I guess. It seems patching the find method in gettext.py shouldn't be too hard. We could add something like:
if localedir in [None, _default_localedir]: _default_bundlelocaledir = os.path.join(sys.prefix, 'share', 'locale-bundle') bundle = find(domain, localedir=_default_bundlelocaledir, languages=languages, all=all) if bundle is not None: return bundle
(obviously, bonus point for declaring _default_bundlelocaledir at the top of the file, where _default_localedir is declared)
Note that this will require also patching most of the python apps I looked at so far: the almost all have gettext.bindtextdomain(domain,path), where path is NOT set to None for them... Just to have this noted as well. Dominique -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org