1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed typo in makemessages error message.

This commit is contained in:
Jacob Walls 2021-06-16 10:24:53 -04:00 committed by Mariusz Felisiak
parent 4659a790cf
commit 501a371411
2 changed files with 3 additions and 3 deletions

View File

@ -584,7 +584,7 @@ class Command(BaseCommand):
file_path = os.path.normpath(build_files[0].path)
raise CommandError(
"Unable to find a locale path to store translations for "
"file %s. Make sure the 'locale' directory exist in an "
"file %s. Make sure the 'locale' directory exists in an "
"app or LOCALE_PATHS setting is set." % file_path
)
for build_file in build_files:

View File

@ -760,8 +760,8 @@ class CustomLayoutExtractionTests(ExtractorTests):
def test_no_locale_raises(self):
msg = (
"Unable to find a locale path to store translations for file "
"__init__.py. Make sure the 'locale' directory exist in an app or "
"LOCALE_PATHS setting is set."
"__init__.py. Make sure the 'locale' directory exists in an app "
"or LOCALE_PATHS setting is set."
)
with self.assertRaisesMessage(management.CommandError, msg):
management.call_command('makemessages', locale=[LOCALE], verbosity=0)