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
This commit is contained in:
parent
756f1c218d
commit
6b1191b1a2
|
@ -165,7 +165,9 @@ def translation(language):
|
||||||
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):
|
||||||
|
|
Loading…
Reference in New Issue