summaryrefslogtreecommitdiff
path: root/plugins/UserFlag/clearflag.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-04 11:42:16 -0700
committerBrion Vibber <brion@pobox.com>2010-10-04 11:42:16 -0700
commit5b49366f49b77fd677f415facb75c9b21c10b5d3 (patch)
treeb38bb4dc936d77a07d51f67e0eacc63c2d6239e2 /plugins/UserFlag/clearflag.php
parent7d0d89ddea7ae21f7c1526c170a20aa865d7c376 (diff)
parent1652ded48c9c62c40157a5142e5231adbc574ddb (diff)
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Conflicts: plugins/AnonymousFave/AnonymousFavePlugin.php
Diffstat (limited to 'plugins/UserFlag/clearflag.php')
-rw-r--r--plugins/UserFlag/clearflag.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/plugins/UserFlag/clearflag.php b/plugins/UserFlag/clearflag.php
index f032527ed..feda29f1b 100644
--- a/plugins/UserFlag/clearflag.php
+++ b/plugins/UserFlag/clearflag.php
@@ -40,7 +40,6 @@ if (!defined('STATUSNET')) {
* @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
* @link http://status.net/
*/
-
class ClearflagAction extends ProfileFormAction
{
/**
@@ -75,7 +74,6 @@ class ClearflagAction extends ProfileFormAction
*
* @return void
*/
-
function handle($args)
{
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
@@ -93,7 +91,6 @@ class ClearflagAction extends ProfileFormAction
*
* @return void
*/
-
function handlePost()
{
$ufp = new User_flag_profile();
@@ -104,7 +101,8 @@ class ClearflagAction extends ProfileFormAction
'AND profile_id = ' . $this->profile->id);
if ($result == false) {
- $msg = sprintf(_("Couldn't clear flags for profile '%s'."),
+ // TRANS: Server exception given when flags could not be cleared.
+ $msg = sprintf(_m('Couldn\'t clear flags for profile "%s".'),
$this->profile->nickname);
throw new ServerException($msg);
}
@@ -121,17 +119,18 @@ class ClearflagAction extends ProfileFormAction
*
* @return void
*/
-
function ajaxResults()
{
header('Content-Type: text/xml;charset=utf-8');
$this->xw->startDocument('1.0', 'UTF-8');
$this->elementStart('html');
$this->elementStart('head');
- $this->element('title', null, _('Flags cleared'));
+ // TRANS: Title for AJAX form to indicated that flags were removed.
+ $this->element('title', null, _m('Flags cleared'));
$this->elementEnd('head');
$this->elementStart('body');
- $this->element('p', 'cleared', _('Cleared'));
+ // TRANS: Body element for "flags cleared" form.
+ $this->element('p', 'cleared', _m('Cleared'));
$this->elementEnd('body');
$this->elementEnd('html');
}