              number = int(number)
          except (TypeError, ValueError):
              raise PageNotAnInteger('That page number is not an integer')
          if number < 1:
              raise EmptyPage('That page number is less than 1')
          if number > self.num_pages:
              if number == 1 and self.allow_empty_first_page:
                  pass
              else:
                  raise EmptyPage('That page contains no results')
 
</s> remove             raise PageNotAnInteger('That page number is not an integer')
 </s> add             raise PageNotAnInteger(_('That page number is not an integer')) </s> remove                 raise EmptyPage('That page contains no results')
 </s> add                 raise EmptyPage(_('That page contains no results'))
            raise EmptyPage(_('That page number is less than 1'))
              number = int(number)
          except (TypeError, ValueError):
              raise PageNotAnInteger('That page number is not an integer')
          if number < 1:
            raise EmptyPage(_('That page number is less than 1'))
          if number > self.num_pages:
              if number == 1 and self.allow_empty_first_page:
                  pass
              else:
                  raise EmptyPage('That page contains no results')
keep keep keep keep replace keep keep keep keep keep
 Refs #27505 -- Made Paginator's exception messsages translatable. 
django/core/paginator.py