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 |
----------------------------------------------------------------------- |
|
|