Add 'diary_entry.no_such_entry.title' for diary entries that don't exist
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 23 Jun 2009 00:17:20 +0000 (00:17 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 23 Jun 2009 00:17:20 +0000 (00:17 +0000)
app/controllers/diary_entry_controller.rb
config/locales/en.yml

index 9471872279bc8cadce1664e44e4dc13faf6924de..7a442ac58a3744a4656b0d0498d874feb946d838 100644 (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
index 7bd004e16108b10d3bce4078b9a82760dc2ddff3..f0161f0161894b5e65500a35ce95097d1543986f 100644 (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: