From: Ævar Arnfjörð Bjarmason Date: Tue, 23 Jun 2009 00:17:20 +0000 (+0000) Subject: Add 'diary_entry.no_such_entry.title' for diary entries that don't exist X-Git-Tag: live~6964 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/be57524849c240856ceeffa9ea02340ba6057710?hp=85d04b1088c5488e8c9c197f5f769ae320961f5f Add 'diary_entry.no_such_entry.title' for diary entries that don't exist --- 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: