summaryrefslogtreecommitdiff
path: root/plugins/AnonymousFave/AnonymousFavePlugin.php
diff options
context:
space:
mode:
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;