summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-07-21 03:55:10 +0200
committerYorhel <git@yorhel.nl>2015-07-21 03:55:10 +0200
commit3bbc0320fd36e45f5a7f050a28ba9b6293daa145 (patch)
treee402ef02a27fb30effa9cdbd2c5b8b3d3fa22e46 /lib
parent6f15f1d2d1f23983e0262e8e9565356dc9a2c4e7 (diff)
L10N: Combine spoiler setting strings
Diffstat (limited to 'lib')
-rw-r--r--lib/VNDB/Handler/Chars.pm6
-rw-r--r--lib/VNDB/Handler/Tags.pm6
-rw-r--r--lib/VNDB/Handler/Traits.pm7
-rw-r--r--lib/VNDB/Handler/VNPage.pm18
4 files changed, 18 insertions, 19 deletions
diff --git a/lib/VNDB/Handler/Chars.pm b/lib/VNDB/Handler/Chars.pm
index 4baa1620..f667d41b 100644
--- a/lib/VNDB/Handler/Chars.pm
+++ b/lib/VNDB/Handler/Chars.pm
@@ -67,9 +67,9 @@ sub page {
div class => 'mainbox';
$self->htmlItemMessage('c', $r);
p id => 'charspoil_sel';
- a href => '#', class => 'sel', mt '_vnpage_tags_spoil0'; # _vnpage!?
- a href => '#', mt '_vnpage_tags_spoil1';
- a href => '#', mt '_vnpage_tags_spoil2';
+ a href => '#', class => 'sel', mt '_spoilset_0';
+ a href => '#', mt '_spoilset_1';
+ a href => '#', mt '_spoilset_2';
end;
h1 $r->{name};
h2 class => 'alttitle', $r->{original} if $r->{original};
diff --git a/lib/VNDB/Handler/Tags.pm b/lib/VNDB/Handler/Tags.pm
index f3781c5d..8d982767 100644
--- a/lib/VNDB/Handler/Tags.pm
+++ b/lib/VNDB/Handler/Tags.pm
@@ -108,9 +108,9 @@ sub tagpage {
h1 mt '_tagp_vnlist';
p class => 'browseopts';
- a href => "/g$t->{id}?fil=$f->{fil};m=0", $f->{m} == 0 ? (class => 'optselected') : (), id => 'tagspoil_0', mt '_tagp_spoil0';
- a href => "/g$t->{id}?fil=$f->{fil};m=1", $f->{m} == 1 ? (class => 'optselected') : (), id => 'tagspoil_1', mt '_tagp_spoil1';
- a href => "/g$t->{id}?fil=$f->{fil};m=2", $f->{m} == 2 ? (class => 'optselected') : (), id => 'tagspoil_2', mt '_tagp_spoil2';
+ a href => "/g$t->{id}?fil=$f->{fil};m=0", $f->{m} == 0 ? (class => 'optselected') : (), id => 'tagspoil_0', mt '_spoilset_0';
+ a href => "/g$t->{id}?fil=$f->{fil};m=1", $f->{m} == 1 ? (class => 'optselected') : (), id => 'tagspoil_1', mt '_spoilset_1';
+ a href => "/g$t->{id}?fil=$f->{fil};m=2", $f->{m} == 2 ? (class => 'optselected') : (), id => 'tagspoil_2', mt '_spoilset_2';
end;
a id => 'filselect', href => '#v';
diff --git a/lib/VNDB/Handler/Traits.pm b/lib/VNDB/Handler/Traits.pm
index 33bde43d..c5bf6da0 100644
--- a/lib/VNDB/Handler/Traits.pm
+++ b/lib/VNDB/Handler/Traits.pm
@@ -97,10 +97,9 @@ sub traitpage {
h1 mt '_traitp_charlist';
p class => 'browseopts';
- # Q: tagp!? A: lazyness >_>
- a href => "/i$trait?m=0", $f->{m} == 0 ? (class => 'optselected') : (), id => 'tagspoil_0', mt '_tagp_spoil0';
- a href => "/i$trait?m=1", $f->{m} == 1 ? (class => 'optselected') : (), id => 'tagspoil_1', mt '_tagp_spoil1';
- a href => "/i$trait?m=2", $f->{m} == 2 ? (class => 'optselected') : (), id => 'tagspoil_2', mt '_tagp_spoil2';
+ a href => "/i$trait?m=0", $f->{m} == 0 ? (class => 'optselected') : (), id => 'tagspoil_0', mt '_spoilset_0';
+ a href => "/i$trait?m=1", $f->{m} == 1 ? (class => 'optselected') : (), id => 'tagspoil_1', mt '_spoilset_1';
+ a href => "/i$trait?m=2", $f->{m} == 2 ? (class => 'optselected') : (), id => 'tagspoil_2', mt '_spoilset_2';
end;
a id => 'filselect', href => '#c';
diff --git a/lib/VNDB/Handler/VNPage.pm b/lib/VNDB/Handler/VNPage.pm
index 669ea7b7..9a97cd41 100644
--- a/lib/VNDB/Handler/VNPage.pm
+++ b/lib/VNDB/Handler/VNPage.pm
@@ -627,9 +627,9 @@ sub page {
# NOTE: order of these links is hardcoded in JS
my $tags_cat = $self->authPref('tags_cat') || $self->{default_tags_cat};
a href => "#$_", $tags_cat =~ /\Q$_/ ? (class => 'tsel') : (), lc mt "_tagcat_$_" for qw|cont ero tech|;
- a href => '#', class => 'sec tsel', mt '_vnpage_tags_spoil0';
- a href => '#', mt '_vnpage_tags_spoil1';
- a href => '#', mt '_vnpage_tags_spoil2';
+ a href => '#', class => 'sec tsel', lc mt '_spoilset_0';
+ a href => '#', lc mt '_spoilset_1';
+ a href => '#', lc mt '_spoilset_2';
a href => '#', class => 'sec'.($self->authPref('tags_all') ? '': ' tsel'), mt '_vnpage_tags_summary';
a href => '#', $self->authPref('tags_all') ? (class => 'tsel') : (), mt '_vnpage_tags_all';
end;
@@ -1082,9 +1082,9 @@ sub _chars {
div class => 'mainbox';
if(!$first++) {
p id => 'charspoil_sel';
- a href => '#', class => 'sel', mt '_vnpage_tags_spoil0'; # _vnpage!?
- a href => '#', mt '_vnpage_tags_spoil1';
- a href => '#', mt '_vnpage_tags_spoil2';
+ a href => '#', class => 'sel', mt '_spoilset_0';
+ a href => '#', mt '_spoilset_1';
+ a href => '#', mt '_spoilset_2';
end;
}
h1 mt "_charrole_$r", scalar @{$rol{$r}};
@@ -1133,9 +1133,9 @@ sub _staff {
div class => 'mainbox staff cast';
if($has_spoilers) {
p id => 'charspoil_sel';
- a href => '#', class => 'sel', mt '_vnpage_tags_spoil0';
- a href => '#', mt '_vnpage_tags_spoil1';
- a href => '#', mt '_vnpage_tags_spoil2';
+ a href => '#', class => 'sel', mt '_spoilset_0';
+ a href => '#', mt '_spoilset_1';
+ a href => '#', mt '_spoilset_2';
end;
}
h1 mt '_vnpage_cast';