summaryrefslogtreecommitdiff
path: root/django/core/management/commands/makemessages.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/core/management/commands/makemessages.py')
-rw-r--r--django/core/management/commands/makemessages.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py
index 04bb6c958b..c411c25e28 100644
--- a/django/core/management/commands/makemessages.py
+++ b/django/core/management/commands/makemessages.py
@@ -583,8 +583,9 @@ class Command(BaseCommand):
if locale_dir is NO_LOCALE_DIR:
file_path = os.path.normpath(build_files[0].path)
raise CommandError(
- 'Unable to find a locale path to store translations for '
- 'file %s' % file_path
+ "Unable to find a locale path to store translations for "
+ "file %s. Make sure the 'locale' directory exist in an "
+ "app or LOCALE_PATHS setting is set." % file_path
)
for build_file in build_files:
msgs = build_file.postprocess_messages(msgs)