Add 'diary_entry.no_such_entry.title' for diary entries that don't exist

This commit is contained in:
Ævar Arnfjörð Bjarmason 2009-06-23 00:17:20 +00:00
parent 85d04b1088
commit be57524849
2 changed files with 2 additions and 0 deletions

View file

@ -131,6 +131,7 @@ class DiaryEntryController < ApplicationController
if @entry
@title = t 'diary_entry.view.title', :user => params[:display_name]
else
@title = t 'diary_entry.no_such_entry.title', :id => params[:id]
render :action => 'no_such_entry', :status => :not_found
end
else

View file

@ -275,6 +275,7 @@ en:
login: "Login"
save_button: "Save"
no_such_entry:
title: "No such diary entry"
heading: "No entry with the id: {{id}}"
body: "Sorry, there is no diary entry or comment with the id {{id}}. Please check your spelling, or maybe the link you clicked is wrong."
no_such_user: