summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-01-10 16:49:56 +0100
committerYorhel <git@yorhel.nl>2009-01-10 16:53:04 +0100
commit5d89294fdbbe7c4c030439171b9c24d52bf462fc (patch)
treea4274c9ca54038491874cfecb76f787dd85910bc /lib
parent289a6e978efd6f1892aebcc22342498d750873e6 (diff)
Fixed some grammar mistakes related to singular/plural
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog2
-rw-r--r--lib/VNDB/Handler/Users.pm8
-rw-r--r--lib/VNDB/Util/CommonHTML.pm2
3 files changed, 9 insertions, 3 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index 2fa336a1..3deb59c4 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -5,6 +5,8 @@
- Added a checkbox to releases to indicate a patch
- VN popularity ranking
- Limit account creation to one account in 24 hours per IP address
+ - Fixed error message when uploading VN images larger than 500kB
+ - Fixed 3 grammar mistakes related to singular/plural
2.1 - 2008-12-29
- Skin support
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index 4cd359f0..2b83b4a5 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -88,12 +88,16 @@ sub userpage {
Tr ++$i % 2 ? (class => 'odd') : ();
td 'List stats';
td !$u->{show_list} ? 'hidden' :
- sprintf '%d releases of %d visual novels', $u->{releasecount}, $u->{vncount};
+ sprintf '%d release%s of %d visual novel%s',
+ $u->{releasecount}, $u->{releasecount} != 1 ? 's' : '',
+ $u->{vncount}, $u->{vncount} != 1 ? 's' : '';
end;
Tr ++$i % 2 ? (class => 'odd') : ();
td 'Forum stats';
- td sprintf '%d posts, %d new threads', $u->{postcount}, $u->{threadcount};
+ td sprintf '%d post%s, %d new thread%s',
+ $u->{postcount}, $u->{postcount} != 1 ? 's' : '',
+ $u->{threadcount}, $u->{threadcount} != 1 ? 's' : '';
end;
end;
end;
diff --git a/lib/VNDB/Util/CommonHTML.pm b/lib/VNDB/Util/CommonHTML.pm
index 1da285f9..6b6725c6 100644
--- a/lib/VNDB/Util/CommonHTML.pm
+++ b/lib/VNDB/Util/CommonHTML.pm
@@ -402,7 +402,7 @@ sub htmlVoteStats {
td colspan => 2, 'Vote graph';
end; end;
tfoot; Tr;
- td colspan => 2, sprintf '%d votes total, average %.2f%s', $count, $total/$count,
+ td colspan => 2, sprintf '%d vote%s total, average %.2f%s', $count, $count != 1 ? 's' : '', $total/$count,
$type eq 'v' ? ' ('.$self->{votes}[sprintf '%.0f', $total/$count-1].')' : '';
end; end;
for (reverse 0..$#$stats) {