From d08fd8254a9385a1fbb120b0a58e6b6564500bbe Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 2 Mar 2010 17:30:22 +0100 Subject: [PATCH] Document 404 "Page not found" server error for translators. --- actions/all.php | 1 + actions/public.php | 1 + actions/replies.php | 1 + actions/showfavorites.php | 1 + actions/tag.php | 1 + 5 files changed, 5 insertions(+) diff --git a/actions/all.php b/actions/all.php index 3eb1852147..72ba28b4e0 100644 --- a/actions/all.php +++ b/actions/all.php @@ -60,6 +60,7 @@ class AllAction extends ProfileAction } if ($this->page > 1 && $this->notice->N == 0) { + // TRANS: Server error when page not found (404) $this->serverError(_('No such page'), $code = 404); } diff --git a/actions/public.php b/actions/public.php index 50278bfced..0b3b5fde84 100644 --- a/actions/public.php +++ b/actions/public.php @@ -94,6 +94,7 @@ class PublicAction extends Action } if($this->page > 1 && $this->notice->N == 0){ + // TRANS: Server error when page not found (404) $this->serverError(_('No such page'),$code=404); } diff --git a/actions/replies.php b/actions/replies.php index 164c328db3..4ff1b7a8d2 100644 --- a/actions/replies.php +++ b/actions/replies.php @@ -89,6 +89,7 @@ class RepliesAction extends OwnerDesignAction NOTICES_PER_PAGE + 1); if($this->page > 1 && $this->notice->N == 0){ + // TRANS: Server error when page not found (404) $this->serverError(_('No such page'),$code=404); } diff --git a/actions/showfavorites.php b/actions/showfavorites.php index f2d0822936..5b85de6835 100644 --- a/actions/showfavorites.php +++ b/actions/showfavorites.php @@ -134,6 +134,7 @@ class ShowfavoritesAction extends OwnerDesignAction } if($this->page > 1 && $this->notice->N == 0){ + // TRANS: Server error when page not found (404) $this->serverError(_('No such page'),$code=404); } diff --git a/actions/tag.php b/actions/tag.php index e91df6ea97..ee9617b662 100644 --- a/actions/tag.php +++ b/actions/tag.php @@ -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); if($this->page > 1 && $this->notice->N == 0){ + // TRANS: Server error when page not found (404) $this->serverError(_('No such page'),$code=404); } -- 2.39.2