summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Producers.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-10-14 10:20:46 +0200
committerYorhel <git@yorhel.nl>2019-10-14 10:20:49 +0200
commit3039de16322c4d487ab15ff84c576ee59a5f2b71 (patch)
tree4f7e00e90c56f7cbc5ae4c84b2e2a05daf1721ac /lib/VNDB/Handler/Producers.pm
parent1719ff16a7ccd829a704fe38e7eba08dfcaa08d4 (diff)
Add lang HTML attribute to some original language fields
The database doesn't have a language attribute for every field, so this is more of a best-effort heuristic. The attribute should allow browsers to choose the correct font. https://vndb.org/t2520.300
Diffstat (limited to 'lib/VNDB/Handler/Producers.pm')
-rw-r--r--lib/VNDB/Handler/Producers.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/Producers.pm b/lib/VNDB/Handler/Producers.pm
index ddc992f2..75ca792f 100644
--- a/lib/VNDB/Handler/Producers.pm
+++ b/lib/VNDB/Handler/Producers.pm
@@ -86,7 +86,7 @@ sub page {
div class => 'mainbox';
$self->htmlItemMessage('p', $p);
h1 $p->{name};
- h2 class => 'alttitle', $p->{original} if $p->{original};
+ h2 class => 'alttitle', lang => $p->{lang}, $p->{original} if $p->{original};
p class => 'center';
txt "$LANGUAGE{$p->{lang}} $PRODUCER_TYPE{$p->{type}}";
if($p->{alias}) {