mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
fix spelling & grammar errors
This commit is contained in:
parent
0b8a83bd62
commit
faf76a4b75
|
@ -36,7 +36,7 @@ class APIException(Exception):
|
||||||
Subclasses should provide `.status_code` and `.default_detail` properties.
|
Subclasses should provide `.status_code` and `.default_detail` properties.
|
||||||
"""
|
"""
|
||||||
status_code = status.HTTP_500_INTERNAL_SERVER_ERROR
|
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):
|
def __init__(self, detail=None):
|
||||||
if detail is not None:
|
if detail is not None:
|
||||||
|
|
|
@ -119,7 +119,7 @@ class GenericAPIView(views.APIView):
|
||||||
if page == 'last':
|
if page == 'last':
|
||||||
page_number = paginator.num_pages
|
page_number = paginator.num_pages
|
||||||
else:
|
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:
|
try:
|
||||||
page = paginator.page(page_number)
|
page = paginator.page(page_number)
|
||||||
except InvalidPage as exc:
|
except InvalidPage as exc:
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \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"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -30,7 +30,7 @@ msgid "Must include \"username\" and \"password\""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rest_framework/exceptions.py:39
|
#: rest_framework/exceptions.py:39
|
||||||
msgid "A server error occured"
|
msgid "A server error occurred"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rest_framework/exceptions.py:74
|
#: rest_framework/exceptions.py:74
|
||||||
|
@ -212,7 +212,7 @@ msgid "Expected a list of items but got type `{input_type}`"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rest_framework/generics.py:122
|
#: 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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: rest_framework/generics.py:126
|
#: rest_framework/generics.py:126
|
||||||
|
|
Loading…
Reference in New Issue
Block a user