summaryrefslogtreecommitdiff
path: root/lib/openid.php
diff options
context:
space:
mode:
authorMike Cochrane <mikec@mikenz.geek.nz>2008-07-08 05:45:31 -0400
committerMike Cochrane <mikec@mikenz.geek.nz>2008-07-08 05:45:31 -0400
commit87b494f1ebbe7640d194ef322af12fdf378295df (patch)
treef4b616fd8306bb92d3063d4e86dd1b87607163f4 /lib/openid.php
parenta25f5010e682a0fc950e2ef2476af7b631ada5bf (diff)
Convert _t() to _() for gettext.
darcs-hash:20080708094531-533db-83399a46e6ec4c0fcc6249b0235961f969d1ae73.gz
Diffstat (limited to 'lib/openid.php')
-rw-r--r--lib/openid.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/openid.php b/lib/openid.php
index 5ad744fa1..6e501c2b1 100644
--- a/lib/openid.php
+++ b/lib/openid.php
@@ -118,7 +118,7 @@ function oid_authenticate($openid_url, $returnto, $immediate=false) {
$consumer = oid_consumer();
if (!$consumer) {
- common_server_error(_t('Cannot instantiate OpenID consumer object.'));
+ common_server_error(_('Cannot instantiate OpenID consumer object.'));
return false;
}
@@ -128,9 +128,9 @@ function oid_authenticate($openid_url, $returnto, $immediate=false) {
// Handle failure status return values.
if (!$auth_request) {
- return _t('Not a valid OpenID.');
+ return _('Not a valid OpenID.');
} else if (Auth_OpenID::isFailure($auth_request)) {
- return _t('OpenID failure: ') . $auth_request->message;
+ return sprintf(_('OpenID failure: %s'), $auth_request->message);
}
$sreg_request = Auth_OpenID_SRegRequest::build(// Required
@@ -157,7 +157,7 @@ function oid_authenticate($openid_url, $returnto, $immediate=false) {
$immediate);
if (!$redirect_url) {
} else if (Auth_OpenID::isFailure($redirect_url)) {
- return _t('Could not redirect to server: ') . $redirect_url->message;
+ return sprintf(_('Could not redirect to server: %s'), $redirect_url->message);
} else {
common_redirect($redirect_url);
}
@@ -175,9 +175,9 @@ function oid_authenticate($openid_url, $returnto, $immediate=false) {
// Display an error if the form markup couldn't be generated;
// otherwise, render the HTML.
if (Auth_OpenID::isFailure($form_html)) {
- $this->show_form(_t('Could not create OpenID form: ') . $form_html->message);
+ $this->show_form(sprintf(_('Could not create OpenID form: %s'), $form_html->message));
} else {
- common_show_header(_t('OpenID Auto-Submit'), NULL, NULL, '_oid_print_instructions');
+ common_show_header(_('OpenID Auto-Submit'), NULL, NULL, '_oid_print_instructions');
common_raw($form_html);
common_element('script', NULL,
'$(document).ready(function() { ' .
@@ -192,7 +192,7 @@ function oid_authenticate($openid_url, $returnto, $immediate=false) {
function _oid_print_instructions() {
common_element('div', 'instructions',
- _t('This form should automatically submit itself. '.
+ _('This form should automatically submit itself. '.
'If not, click the submit button to go to your '.
'OpenID provider.'));
}
@@ -223,7 +223,7 @@ function oid_update_user(&$user, &$sreg) {
# XXX save timezone if it's passed
if (!$profile->update($orig_profile)) {
- common_server_error(_t('Error saving the profile.'));
+ common_server_error(_('Error saving the profile.'));
return false;
}
@@ -234,7 +234,7 @@ function oid_update_user(&$user, &$sreg) {
}
if (!$user->update($orig_user)) {
- common_server_error(_t('Error saving the user.'));
+ common_server_error(_('Error saving the user.'));
return false;
}