Kaydet (Commit) 6b1191b1 authored tarafından Jannis Leidel's avatar Jannis Leidel

Normalize the locale paths when considering merging a project language catalogue. Refs #14924.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15529 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 756f1c21
......@@ -165,7 +165,9 @@ def translation(language):
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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment