diff --git a/AUTHORS b/AUTHORS
index ea0b019..16004ed 100644
|
a
|
b
|
answer newbie questions, and generally made Django that much better:
|
| 578 | 578 | Gasper Zejn <zejn@kiberpipa.org> |
| 579 | 579 | Jarek Zgoda <jarek.zgoda@gmail.com> |
| 580 | 580 | Cheng Zhang |
| | 581 | Klaas van Schelven <klaas@vanschelven.com> |
| 581 | 582 | |
| 582 | 583 | A big THANK YOU goes to: |
| 583 | 584 | |
diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py
index 0cd13fd..9185066 100644
|
a
|
b
|
import sys
|
| 8 | 8 | import gettext as gettext_module |
| 9 | 9 | from io import StringIO |
| 10 | 10 | from threading import local |
| | 11 | import pkgutil |
| 11 | 12 | |
| 12 | 13 | from django.utils.importlib import import_module |
| 13 | 14 | from django.utils.safestring import mark_safe, SafeData |
| … |
… |
def translation(language):
|
| 147 | 148 | return res |
| 148 | 149 | |
| 149 | 150 | for appname in reversed(settings.INSTALLED_APPS): |
| 150 | | app = import_module(appname) |
| 151 | | apppath = os.path.join(os.path.dirname(app.__file__), 'locale') |
| | 151 | app = pkgutil.get_loader(appname) |
| | 152 | if app is None: |
| | 153 | continue |
| | 154 | apppath = os.path.join(app.filename, 'locale') |
| 152 | 155 | |
| 153 | 156 | if os.path.isdir(apppath): |
| 154 | 157 | res = _merge(apppath) |