Browse files

Normalize the locale paths when considering merging a project languag…

…e catalogue. Refs #14924.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
jezdez committed Feb 14, 2011
1 parent 756f1c2 commit 6b1191b1a2cecb48661d476b3a7f17e17c0d819c
Showing with 3 additions and 1 deletion.
  1. +3 −1 django/utils/translation/
@@ -165,7 +165,9 @@ def _merge(path):
if os.path.isdir(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)
for localepath in reversed(settings.LOCALE_PATHS):

0 comments on commit 6b1191b

Please sign in to comment.