mirror of
https://github.com/django/django.git
synced 2025-09-28 21:14:55 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue