* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class TwitteradminpanelAction extends AdminPanelAction
{
/**
*
* @return string page title
*/
-
function title()
{
return _m('Twitter');
*
* @return string instructions
*/
-
function getInstructions()
{
return _m('Twitter bridge settings');
*
* @return void
*/
-
function showForm()
{
$form = new TwitterAdminPanelForm($this);
*
* @return void
*/
-
function saveSettings()
{
static $settings = array(
*
* @return int ID of the form
*/
-
function id()
{
return 'twitteradminpanel';
*
* @return string class of the form
*/
-
function formClass()
{
return 'form_settings';
*
* @return string URL of the action
*/
-
function action()
{
return common_local_url('twitteradminpanel');
*
* @return void
*/
-
function formData()
{
$this->out->elementStart(
if (!empty($globalConsumerKey) && !empty($globalConsumerSec)) {
$this->li();
- $this->out->element('p', 'form_guide', _('Note: a global consumer key and secret are set.'));
+ $this->out->element('p', 'form_guide', _m('Note: a global consumer key and secret are set.'));
$this->unli();
}
*
* @return void
*/
-
function formActions()
{
- $this->out->submit('submit', _('Save'), 'submit', null, _('Save Twitter settings'));
+ $this->out->submit('submit', _m('Save'), 'submit', null, _m('Save Twitter settings'));
}
}