From be57524849c240856ceeffa9ea02340ba6057710 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Tue, 23 Jun 2009 00:17:20 +0000 Subject: [PATCH 1/1] Add 'diary_entry.no_such_entry.title' for diary entries that don't exist --- app/controllers/diary_entry_controller.rb | 1 + config/locales/en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index 947187227..7a442ac58 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -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 diff --git a/config/locales/en.yml b/config/locales/en.yml index 7bd004e16..f0161f016 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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: -- 2.43.2