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) file_path = os.path.normpath(build_files[0].path)
raise CommandError( raise CommandError(
"Unable to find a locale path to store translations for " "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 "app or LOCALE_PATHS setting is set." % file_path
) )
for build_file in build_files: for build_file in build_files:

View File

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