From 501a3714114b9c72e7dc4d8add76663bb8c83e3a Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Wed, 16 Jun 2021 10:24:53 -0400 Subject: [PATCH] Fixed typo in makemessages error message. --- django/core/management/commands/makemessages.py | 2 +- tests/i18n/test_extraction.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py index c411c25e28..f0e85f4e19 100644 --- a/django/core/management/commands/makemessages.py +++ b/django/core/management/commands/makemessages.py @@ -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: diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index 94d92ca93f..d6f0e861b0 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -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)