summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-16 15:19:20 +0200
committerYorhel <git@yorhel.nl>2009-08-17 16:27:16 +0200
commitee47664ade604832bfb3ce56ea8490bdb4592c47 (patch)
treef175cb621320228fd0081222b19ea6c04ade8abf /lib
parent2285b265326b255da98bf0e9723d40949bf82d77 (diff)
L10N: Converted htmlDenied and htmlHiddenMessage
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Util/CommonHTML.pm20
1 files changed, 8 insertions, 12 deletions
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index de0ee93e..ffdbe505 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -117,19 +117,16 @@ sub htmlMainTabs {
# generates a full error page, including header and footer
sub htmlDenied {
my $self = shift;
- $self->htmlHeader(title => 'Access Denied');
+ $self->htmlHeader(title => mt '_denied_title');
div class => 'mainbox';
- h1 'Access Denied';
+ h1 mt '_denied_title';
div class => 'warning';
if(!$self->authInfo->{id}) {
- h2 'You need to be logged in to perform this action.';
- p;
- lit 'Please <a href="/u/login">login</a>, or <a href="/u/register">create an account</a> '
- .'if you don\'t have one yet.';
- end;
+ h2 mt '_denied_needlogin_title';
+ p; lit mt '_denied_needlogin_msg'; end;
} else {
- h2 "You are not allowed to perform this action.";
- p 'It seems you don\'t have the proper rights to perform the action you wanted to perform...';
+ h2 mt '_denied_noaccess_title';
+ p mt '_denied_noaccess_msg';
}
end;
end;
@@ -147,10 +144,9 @@ sub htmlHiddenMessage {
div class => 'mainbox';
h1 $obj->{title}||$obj->{name};
div class => 'warning';
- h2 'Item deleted';
+ h2 mt '_hiddenmsg_title';
p;
- lit qq|This item has been deleted from the database, File a request on the|
- .qq| <a href="/t/$board">discussion board</a> to undelete this page.|;
+ lit mt '_hiddenmsg_msg', "/t/$board";
end;
end;
end;