Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 482034 | Differences between
and this patch

Collapse All | Expand All

(-)trac/util/translation.py (-2 / +3 lines)
Lines 337-343 Link Here
337
        try:
337
        try:
338
            return [dirname for dirname
338
            return [dirname for dirname
339
                    in pkg_resources.resource_listdir('trac', 'locale')
339
                    in pkg_resources.resource_listdir('trac', 'locale')
340
                    if '.' not in dirname]
340
                    if '.' not in dirname
341
                    and pkg_resources.resource_exists(
342
                    'trac', 'locale/%s/LC_MESSAGES/messages.mo' % dirname)]
341
        except Exception:
343
        except Exception:
342
            return []
344
            return []
343
345
344
-----------------------------------------------------------------------

Return to bug 482034