summaryrefslogtreecommitdiff
path: root/plugins/OpenID/openidtrust.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2009-12-08 12:17:11 -0800
committerBrion Vibber <brion@status.net>2009-12-08 12:17:11 -0800
commit4b5e977a7b1c390555d880d3dc7f8b8c6744646c (patch)
tree9aa0f21fdffcb8f737b28d8a676746735574944f /plugins/OpenID/openidtrust.php
parent3536f01258dc43bee764c98fbdda5a6f1df7bcb2 (diff)
New _m() gettext wrapper with smart detection of plugin domains. Plugin base class registers your gettext files if present at initialization.
update_pot.sh replaced with update_po_templates.php which can do core, plugins, or all (default). Top-level Makefile added to build .mo files for plugins as well as core. As described on list: http://lists.status.net/pipermail/statusnet-dev/2009-December/002869.html
Diffstat (limited to 'plugins/OpenID/openidtrust.php')
-rw-r--r--plugins/OpenID/openidtrust.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/OpenID/openidtrust.php b/plugins/OpenID/openidtrust.php
index 29c7bdc23..fa7ea36e2 100644
--- a/plugins/OpenID/openidtrust.php
+++ b/plugins/OpenID/openidtrust.php
@@ -48,7 +48,7 @@ class OpenidtrustAction extends Action
function title()
{
- return _('OpenID Identity Verification');
+ return _m('OpenID Identity Verification');
}
function prepare($args)
@@ -66,7 +66,7 @@ class OpenidtrustAction extends Action
$this->allowUrl = $_SESSION['openid_allow_url'];
$this->denyUrl = $_SESSION['openid_deny_url'];
if(empty($this->trust_root) || empty($this->allowUrl) || empty($this->denyUrl)){
- $this->clientError(_('This page should only be reached during OpenID processing, not directly.'));
+ $this->clientError(_m('This page should only be reached during OpenID processing, not directly.'));
return;
}
return true;
@@ -115,7 +115,7 @@ class OpenidtrustAction extends Action
function showPageNotice()
{
- $this->element('p',null,sprintf(_('%s has asked to verify your identity. Click Continue to verify your identity and login without creating a new password.'),$this->trust_root));
+ $this->element('p',null,sprintf(_m('%s has asked to verify your identity. Click Continue to verify your identity and login without creating a new password.'),$this->trust_root));
}
/**
@@ -133,8 +133,8 @@ class OpenidtrustAction extends Action
'class' => 'form_settings',
'action' => common_local_url('openidtrust')));
$this->elementStart('fieldset');
- $this->submit('allow', _('Continue'));
- $this->submit('deny', _('Cancel'));
+ $this->submit('allow', _m('Continue'));
+ $this->submit('deny', _m('Cancel'));
$this->elementEnd('fieldset');
$this->elementEnd('form');