summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2015-04-16 12:55:37 +0100
committerTim Graham <timograham@gmail.com>2015-06-04 21:02:02 -0400
commit40f0a84cb151669313faadf857aaddd18d39aaeb (patch)
treefcfa0aea3ee68d0c17dfa91679e0d6b6fb14af81 /django
parent7bda2d8ebc7833747363ac837fecb6535c817dcd (diff)
Fixed #24159 -- Made compilemessages run across all apps.
Updated the command to match the documentation, which states it runs over all .po files.
Diffstat (limited to 'django')
-rw-r--r--django/core/management/commands/compilemessages.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/django/core/management/commands/compilemessages.py b/django/core/management/commands/compilemessages.py
index f4b45d72ff..1901819d15 100644
--- a/django/core/management/commands/compilemessages.py
+++ b/django/core/management/commands/compilemessages.py
@@ -61,6 +61,12 @@ class Command(BaseCommand):
from django.conf import settings
basedirs.extend(upath(path) for path in settings.LOCALE_PATHS)
+ # Walk entire tree, looking for locale directories
+ for dirpath, dirnames, filenames in os.walk('.', topdown=True):
+ for dirname in dirnames:
+ if dirname == 'locale':
+ basedirs.append(os.path.join(dirpath, dirname))
+
# Gather existing directories.
basedirs = set(map(os.path.abspath, filter(os.path.isdir, basedirs)))