diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py
index a5c612b..c7b5873 100644
a
|
b
|
import sys
|
7 | 7 | import warnings |
8 | 8 | import gettext as gettext_module |
9 | 9 | from cStringIO import StringIO |
| 10 | import pkgutil |
10 | 11 | |
11 | 12 | from django.utils.importlib import import_module |
12 | 13 | from django.utils.safestring import mark_safe, SafeData |
… |
… |
def translation(language):
|
163 | 164 | res = _merge(localepath) |
164 | 165 | |
165 | 166 | for appname in settings.INSTALLED_APPS: |
166 | | app = import_module(appname) |
167 | | apppath = os.path.join(os.path.dirname(app.__file__), 'locale') |
| 167 | app = pkgutil.get_loader("app") |
| 168 | apppath = os.path.join(app.filename, 'locale') |
168 | 169 | |
169 | 170 | if os.path.isdir(apppath): |
170 | 171 | res = _merge(apppath) |