summaryrefslogtreecommitdiff
path: root/plugins/AnonymousFave/anondisfavor.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/anondisfavor.php
parent54c88cba571a74a901f2d15e7d8db0d349d896d3 (diff)
* L10/i18n review.
* Translator hints added * whitespace updates
Diffstat (limited to 'plugins/AnonymousFave/anondisfavor.php')
-rw-r--r--plugins/AnonymousFave/anondisfavor.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/AnonymousFave/anondisfavor.php b/plugins/AnonymousFave/anondisfavor.php
index f39d5a778..859e4bd42 100644
--- a/plugins/AnonymousFave/anondisfavor.php
+++ b/plugins/AnonymousFave/anondisfavor.php
@@ -1,5 +1,4 @@
<?php
-
/**
* Anonymous disfavor action
*
@@ -58,6 +57,7 @@ class AnonDisfavorAction extends RedirectingAction
if (empty($profile) || $_SERVER['REQUEST_METHOD'] != 'POST') {
$this->clientError(
+ // TRANS: Client error.
_m('Could not disfavor notice! Please make sure your browser has cookies enabled.')
);
return;
@@ -68,6 +68,7 @@ class AnonDisfavorAction extends RedirectingAction
$token = $this->trimmed('token-' . $notice->id);
if (!$token || $token != common_session_token()) {
+ // TRANS: Client error.
$this->clientError(_m('There was a problem with your session token. Try again, please.'));
return;
}
@@ -77,6 +78,7 @@ class AnonDisfavorAction extends RedirectingAction
$fave->notice_id = $notice->id;
if (!$fave->find(true)) {
+ // TRANS: Client error.
$this->clientError(_m('This notice is not a favorite!'));
return;
}
@@ -85,6 +87,7 @@ class AnonDisfavorAction extends RedirectingAction
if (!$result) {
common_log_db_error($fave, 'DELETE', __FILE__);
+ // TRANS: Server error.
$this->serverError(_m('Could not delete favorite.'));
return;
}
@@ -94,6 +97,7 @@ class AnonDisfavorAction extends RedirectingAction
if ($this->boolean('ajax')) {
$this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head');
+ // TRANS: Title.
$this->element('title', null, _m('Add to favorites'));
$this->elementEnd('head');
$this->elementStart('body');
@@ -121,4 +125,3 @@ class AnonDisfavorAction extends RedirectingAction
}
}
}
-