Skip to content

Commit

Permalink
Normalize the locale paths when considering merging a project languag…
Browse files Browse the repository at this point in the history
…e catalogue. Refs #14924.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jezdez committed Feb 14, 2011
1 parent 756f1c2 commit 6b1191b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion django/utils/translation/trans_real.py
Expand Up @@ -165,7 +165,9 @@ def _merge(path):
if os.path.isdir(apppath): if os.path.isdir(apppath):
res = _merge(apppath) res = _merge(apppath)


if projectpath and os.path.isdir(projectpath) and projectpath not in settings.LOCALE_PATHS: localepaths = [os.path.normpath(path) for path in settings.LOCALE_PATHS]
if (projectpath and os.path.isdir(projectpath) and
os.path.normpath(projectpath) not in localepaths):
res = _merge(projectpath) res = _merge(projectpath)


for localepath in reversed(settings.LOCALE_PATHS): for localepath in reversed(settings.LOCALE_PATHS):
Expand Down

0 comments on commit 6b1191b

Please sign in to comment.