diff options
| author | Craig Blaszczyk | 2014-12-31 12:49:20 +0000 | 
|---|---|---|
| committer | Craig Blaszczyk | 2015-01-02 11:08:09 +0000 | 
| commit | faf76a4b75f12f3fa9de4e3ec455daa239af4d89 (patch) | |
| tree | 4562309bdf69c05bae603f8117898ab8510518e0 | |
| parent | 0b8a83bd624673cb0a05e01c691729ccee3a8782 (diff) | |
| download | django-rest-framework-faf76a4b75f12f3fa9de4e3ec455daa239af4d89.tar.bz2 | |
fix spelling & grammar errors
| -rw-r--r-- | rest_framework/exceptions.py | 2 | ||||
| -rw-r--r-- | rest_framework/generics.py | 2 | ||||
| -rw-r--r-- | rest_framework/locale/en_US/LC_MESSAGES/django.po | 8 | 
3 files changed, 6 insertions, 6 deletions
| diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py index bcfd8961..2586fc33 100644 --- a/rest_framework/exceptions.py +++ b/rest_framework/exceptions.py @@ -36,7 +36,7 @@ class APIException(Exception):      Subclasses should provide `.status_code` and `.default_detail` properties.      """      status_code = status.HTTP_500_INTERNAL_SERVER_ERROR -    default_detail = _('A server error occured') +    default_detail = _('A server error occurred')      def __init__(self, detail=None):          if detail is not None: diff --git a/rest_framework/generics.py b/rest_framework/generics.py index e6db155e..bdbc19a7 100644 --- a/rest_framework/generics.py +++ b/rest_framework/generics.py @@ -119,7 +119,7 @@ class GenericAPIView(views.APIView):              if page == 'last':                  page_number = paginator.num_pages              else: -                raise Http404(_("Page is not 'last', nor can it be converted to an int.")) +                raise Http404(_("Page is not 'last', and cannot be converted to an int."))          try:              page = paginator.page(page_number)          except InvalidPage as exc: diff --git a/rest_framework/locale/en_US/LC_MESSAGES/django.po b/rest_framework/locale/en_US/LC_MESSAGES/django.po index 510ce0aa..3bed9143 100644 --- a/rest_framework/locale/en_US/LC_MESSAGES/django.po +++ b/rest_framework/locale/en_US/LC_MESSAGES/django.po @@ -2,13 +2,13 @@  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER  # This file is distributed under the same license as the PACKAGE package.  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. -# +#   #, fuzzy  msgid ""  msgstr ""  "Project-Id-Version: PACKAGE VERSION\n"  "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-12-28 17:49+0000\n" +"POT-Creation-Date: 2014-12-31 12:48+0000\n"  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"  "Language-Team: LANGUAGE <LL@li.org>\n" @@ -30,7 +30,7 @@ msgid "Must include \"username\" and \"password\""  msgstr ""  #: rest_framework/exceptions.py:39 -msgid "A server error occured" +msgid "A server error occurred"  msgstr ""  #: rest_framework/exceptions.py:74 @@ -212,7 +212,7 @@ msgid "Expected a list of items but got type `{input_type}`"  msgstr ""  #: rest_framework/generics.py:122 -msgid "Page is not 'last', nor can it be converted to an int." +msgid "Page is not 'last', and cannot be converted to an int."  msgstr ""  #: rest_framework/generics.py:126 | 
