diff options
-rw-r--r-- | data/lang.txt | 17 | ||||
-rw-r--r-- | lib/VNDB/Handler/Misc.pm | 8 |
2 files changed, 21 insertions, 4 deletions
diff --git a/data/lang.txt b/data/lang.txt index 5e2e6a3a..4c1e9e5d 100644 --- a/data/lang.txt +++ b/data/lang.txt @@ -322,6 +322,7 @@ ru*: ############################################################################# # Util::LayoutHTML # Util::CommonHTML::htmlMainTabs, htmlBrowseNavigate, htmlRevision, htmlSearchBox +# Handler::Misc::nospam # Main title of the site, used on header of each page and as title on the homepage @@ -865,3 +866,19 @@ ru*: en : You are not allowed to edit this page ru*: + +# User didn't pass the spam protection + +:_nospam_title +en : Could not send form +ru*: + +:_nospam_subtitle +en : Error +ru*: + +:_nospam_msg +en : The form could not be sent, please make sure you have Javascript enabled in your browser. +ru*: + + diff --git a/lib/VNDB/Handler/Misc.pm b/lib/VNDB/Handler/Misc.pm index fcb6afdf..82e947d7 100644 --- a/lib/VNDB/Handler/Misc.pm +++ b/lib/VNDB/Handler/Misc.pm @@ -294,13 +294,13 @@ sub docpage { sub nospam { my $self = shift; - $self->htmlHeader(title => 'Could not send form', noindex => 1); + $self->htmlHeader(title => mt '_nospam_title', noindex => 1); div class => 'mainbox'; - h1 'Could not send form'; + h1 mt '_nospam_title'; div class => 'warning'; - h2 'Error'; - p 'The form could not be sent, please make sure you have Javascript enabled in your browser.'; + h2 mt '_nospam_subtitle'; + p mt '_nospam_msg'; end; end; |