          except InvalidPage:
              if page == 'last':
                  page_number = paginator.num_pages
              else:
                  raise Http404(_("Page is not 'last', and cannot be converted to an int."))
          try:
              page = paginator.page(page_number)
          except InvalidPage as exc:
              error_format = _('Invalid page (%(page_number)s): %(message)s')
              raise Http404(error_format % {
 
</s> remove msgid "Page is not 'last', and cannot be converted to an int."
 </s> add msgid ""
"Choose a valid page number. Page numbers must be a whole number, or must be "
"the string 'last'." </s> remove msgid "Upload a valid image. The file you uploaded was either not an "
msgstr ""

#: rest_framework/fields.py:1119
msgid "Expected a list of items but got type `{input_type}`"
 </s> add msgid ""
"Upload a valid image. The file you uploaded was either not an image or a "
"corrupted image." </s> remove     default_detail = _('A server error occurred')
 </s> add     default_detail = _('A server error occurred.') </s> remove     default_detail = _('Could not satisfy the request Accept header')
 </s> add     default_detail = _('Could not satisfy the request Accept header.') </s> remove             'Upload a valid image. The file you uploaded was either not an '
            'image or a corrupted image.'
 </s> add             'Upload a valid image. The file you uploaded was either not an image or a corrupted image.'
                raise Http404(_("Choose a valid page number. Page numbers must be a whole number, or must be the string 'last'."))
          except InvalidPage:
              if page == 'last':
                  page_number = paginator.num_pages
              else:
                raise Http404(_("Choose a valid page number. Page numbers must be a whole number, or must be the string 'last'."))
          try:
              page = paginator.page(page_number)
          except InvalidPage as exc:
              error_format = _('Invalid page (%(page_number)s): %(message)s')
              raise Http404(error_format % {
keep keep keep keep replace keep keep keep keep keep
 update error messages for language and consistency 
rest_framework/generics.py