Le vendredi 03 août 2012, à 10:40 -0400, Dominique Leuenberger a écrit :
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...
But path should be set to _default_localedir ($prefix/share/locale) for most of them. If it's not, then the translations are not in the bundles anyway. So all should be fine. Vincent -- Les gens heureux ne sont pas pressés. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org