From b5957f627bf54cf9be2db5777f17561a91d8a1ef Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 1 Feb 2015 21:38:10 +0100 Subject: [PATCH] Add not_found template --- lib/Vroom/I18N/en.pm | 3 ++- lib/Vroom/I18N/fr.pm | 3 ++- templates/default/not_found.html.ep | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 templates/default/not_found.html.ep diff --git a/lib/Vroom/I18N/en.pm b/lib/Vroom/I18N/en.pm index f705f7a..4e6335b 100644 --- a/lib/Vroom/I18N/en.pm +++ b/lib/Vroom/I18N/en.pm @@ -325,7 +325,8 @@ our %Lexicon = ( "THANKS" => "Thanks", "ABOUT_THANKS" => "VROOM uses the following components, so, thanks to their respective authors :-)", "ABOUT_MUSICS" => "Also thanks to the authors of songs used", - "FROM_AUTHOR" => "from" + "FROM_AUTHOR" => "from", + "PAGE_NOT_FOUND" => "This page does not exist" ); diff --git a/lib/Vroom/I18N/fr.pm b/lib/Vroom/I18N/fr.pm index c33b380..bd90843 100644 --- a/lib/Vroom/I18N/fr.pm +++ b/lib/Vroom/I18N/fr.pm @@ -357,7 +357,8 @@ our %Lexicon = ( "THANKS" => "Remerciements", "ABOUT_THANKS" => "VROOM utilise les composants suivants, merci donc aux auteurs respectifs :-)", "ABOUT_MUSICS" => "Merci également aux auteurs des morceaux de musique utilisés", - "FROM_AUTHOR" => "de" + "FROM_AUTHOR" => "de", + "PAGE_NOT_FOUND" => "Cette page n'existe pas" ); diff --git a/templates/default/not_found.html.ep b/templates/default/not_found.html.ep new file mode 100644 index 0000000..44fcf16 --- /dev/null +++ b/templates/default/not_found.html.ep @@ -0,0 +1,4 @@ +%= stash msg => $self->l('PAGE_NOT_FOUND') +%= stash err => 'not_found' +%= stash room => '' +%=include 'error'