From a6836df277867d73a71c55797984c947449772cc Mon Sep 17 00:00:00 2001 From: Yorhel Date: Tue, 19 Jan 2016 20:29:40 +0100 Subject: L10N: Intern all VNDB::Util::* stuff With some related edits in other parts of the code, mostly due to interface changes to htmlRevision() and htmlFormError(). Trivial replacements were automated by a super awesome script. --- lib/VNDB/Util/Auth.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'lib/VNDB/Util/Auth.pm') diff --git a/lib/VNDB/Util/Auth.pm b/lib/VNDB/Util/Auth.pm index 9c742dc7..6e1dfa5d 100644 --- a/lib/VNDB/Util/Auth.pm +++ b/lib/VNDB/Util/Auth.pm @@ -87,10 +87,6 @@ sub authLogout { $self->resRedirect('/', 'temp'); $self->resCookie(auth => undef); - - # set l10n cookie if the user has a preferred language set - my $l10n = $self->authPref('l10n'); - $self->resCookie(l10n => $l10n, expires => time()+31536000) if $l10n; # keep 1 year } @@ -204,12 +200,12 @@ sub authCheckCode { sub _incorrectcode { my $self = shift; $self->resInit; - $self->htmlHeader(title => mt '_formcode_title', noindex => 1); + $self->htmlHeader(title => 'Validation code expired', noindex => 1); div class => 'mainbox'; - h1 mt '_formcode_title'; + h1 'Validation code expired'; div class => 'warning'; - p mt '_formcode_msg'; + p 'Please hit the back-button of your browser, refresh the page and try again.'; end; end; -- cgit v1.2.3