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 / +1 lines)
Lines 146-152 Link Here
146
                self._activate_failed = True
146
                self._activate_failed = True
147
                return
147
                return
148
            t = Translations.load(locale_dir, locale or 'en_US')
148
            t = Translations.load(locale_dir, locale or 'en_US')
149
            if not t or t.__class__ is NullTranslations:
149
            if not isinstance(t, Translations):
150
                t = self._null_translations
150
                t = self._null_translations
151
            else:
151
            else:
152
                t.add(Translations.load(locale_dir, locale or 'en_US',
152
                t.add(Translations.load(locale_dir, locale or 'en_US',
153
-----------------------------------------------------------------------

Return to bug 482034