summaryrefslogtreecommitdiff
path: root/plugins/AnonymousFave/AnonymousFavePlugin.php
diff options
context:
space:
mode:
authorSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-01 21:45:19 +0200
committerSiebrand Mazeland <s.mazeland@xs4all.nl>2010-10-01 21:45:19 +0200
commit06ca06fbd16f11e3c37d22f1f9c4b64c0089193c (patch)
tree26014e9dede6b8297805911df0ce15d89f527e62 /plugins/AnonymousFave/AnonymousFavePlugin.php
parent54c88cba571a74a901f2d15e7d8db0d349d896d3 (diff)
* L10/i18n review.
* Translator hints added * whitespace updates
Diffstat (limited to 'plugins/AnonymousFave/AnonymousFavePlugin.php')
-rw-r--r--plugins/AnonymousFave/AnonymousFavePlugin.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/AnonymousFave/AnonymousFavePlugin.php b/plugins/AnonymousFave/AnonymousFavePlugin.php
index 72093e7f7..6561114ba 100644
--- a/plugins/AnonymousFave/AnonymousFavePlugin.php
+++ b/plugins/AnonymousFave/AnonymousFavePlugin.php
@@ -188,7 +188,9 @@ class AnonymousFavePlugin extends Plugin {
'class' => 'notice-tally'
)
);
- $out->raw(sprintf(_m("favored %d times"), $tally->count));
+ // TRANS: Tally for number of times a notice was favored.
+ // TRANS: %d is the number of times a notice was favored.
+ $out->raw(sprintf(_m("favored once", "favored %d times", $tally->count), $tally->count));
$out->elementEnd('div');
}
}
@@ -216,6 +218,7 @@ class AnonymousFavePlugin extends Plugin {
$id = $profile->insert();
if (!$id) {
+ // TRANS: Server exception.
throw new ServerException(_m("Couldn't create anonymous user session."));
}
@@ -226,6 +229,7 @@ class AnonymousFavePlugin extends Plugin {
$result = $profile->update($orig);
if (!$result) {
+ // TRANS: Server exception.
throw new ServerException(_m("Couldn't create anonymous user session."));
}
@@ -279,6 +283,7 @@ class AnonymousFavePlugin extends Plugin {
'author' => 'Zach Copley',
'homepage' => $url,
'rawdescription' =>
+ // TRANS: Plugin description.
_m('Allow anonymous users to favorite notices.'));
return true;