summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2016-01-19 18:54:40 +0100
committerYorhel <git@yorhel.nl>2016-01-19 18:58:22 +0100
commit0caed2e7674e8ee7419365e76f86d06c33b8c8aa (patch)
tree02d81be9cd5fa78897796e57b699963994c817d9 /lib/VNDB/Util
parentf7f096f2a07658381c4f98aef81c4991d997d19f (diff)
Move some VNDB::L10N stuff to VNDB::Func + intern VNDB::Func
Diffstat (limited to 'lib/VNDB/Util')
-rw-r--r--lib/VNDB/Util/BrowseHTML.pm6
-rw-r--r--lib/VNDB/Util/CommonHTML.pm2
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/VNDB/Util/BrowseHTML.pm b/lib/VNDB/Util/BrowseHTML.pm
index 240cf20b..faa9ea3c 100644
--- a/lib/VNDB/Util/BrowseHTML.pm
+++ b/lib/VNDB/Util/BrowseHTML.pm
@@ -146,9 +146,9 @@ sub htmlBrowseHist {
td class => 'tc1_2';
a href => $revurl, ".$i->{rev}";
end;
- td class => 'tc2', $self->{l10n}->date($i->{added}, 'full');
+ td class => 'tc2', fmtdate $i->{added}, 'full';
td class => 'tc3';
- lit $self->{l10n}->userstr($i);
+ lit fmtuser $i;
end;
td class => 'tc4';
a href => $revurl, title => $i->{ioriginal}, shorten $i->{ititle}, 80;
@@ -206,7 +206,7 @@ sub htmlBrowseVN {
for (reverse sort @{$l->{c_languages}});
end;
td class => 'tc4';
- lit $self->{l10n}->datestr($l->{c_released});
+ lit fmtdatestr $l->{c_released};
end;
td class => 'tc5', sprintf '%.2f', ($l->{c_popularity}||0)*100;
td class => 'tc6';
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index b576e4ad..cacbae93 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -394,7 +394,7 @@ sub htmlVoteStats {
}
end;
td fmtvote $_->{vote};
- td $self->{l10n}->date($_->{date});
+ td fmtdate $_->{date};
end;
}
end 'table';