Document 404 "Page not found" server error for translators.

This commit is contained in:
Siebrand Mazeland 2010-03-02 17:30:22 +01:00
parent 53ac232f91
commit d08fd8254a
5 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,7 @@ class AllAction extends ProfileAction
} }
if ($this->page > 1 && $this->notice->N == 0) { if ($this->page > 1 && $this->notice->N == 0) {
// TRANS: Server error when page not found (404)
$this->serverError(_('No such page'), $code = 404); $this->serverError(_('No such page'), $code = 404);
} }

View File

@ -94,6 +94,7 @@ class PublicAction extends Action
} }
if($this->page > 1 && $this->notice->N == 0){ if($this->page > 1 && $this->notice->N == 0){
// TRANS: Server error when page not found (404)
$this->serverError(_('No such page'),$code=404); $this->serverError(_('No such page'),$code=404);
} }

View File

@ -89,6 +89,7 @@ class RepliesAction extends OwnerDesignAction
NOTICES_PER_PAGE + 1); NOTICES_PER_PAGE + 1);
if($this->page > 1 && $this->notice->N == 0){ if($this->page > 1 && $this->notice->N == 0){
// TRANS: Server error when page not found (404)
$this->serverError(_('No such page'),$code=404); $this->serverError(_('No such page'),$code=404);
} }

View File

@ -134,6 +134,7 @@ class ShowfavoritesAction extends OwnerDesignAction
} }
if($this->page > 1 && $this->notice->N == 0){ if($this->page > 1 && $this->notice->N == 0){
// TRANS: Server error when page not found (404)
$this->serverError(_('No such page'),$code=404); $this->serverError(_('No such page'),$code=404);
} }

View File

@ -48,6 +48,7 @@ class TagAction extends Action
$this->notice = Notice_tag::getStream($this->tag, (($this->page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1); $this->notice = Notice_tag::getStream($this->tag, (($this->page-1)*NOTICES_PER_PAGE), NOTICES_PER_PAGE + 1);
if($this->page > 1 && $this->notice->N == 0){ if($this->page > 1 && $this->notice->N == 0){
// TRANS: Server error when page not found (404)
$this->serverError(_('No such page'),$code=404); $this->serverError(_('No such page'),$code=404);
} }