diff options
author | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-08 05:45:31 -0400 |
---|---|---|
committer | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-08 05:45:31 -0400 |
commit | 87b494f1ebbe7640d194ef322af12fdf378295df (patch) | |
tree | f4b616fd8306bb92d3063d4e86dd1b87607163f4 /actions/finishaddopenid.php | |
parent | a25f5010e682a0fc950e2ef2476af7b631ada5bf (diff) |
Convert _t() to _() for gettext.
darcs-hash:20080708094531-533db-83399a46e6ec4c0fcc6249b0235961f969d1ae73.gz
Diffstat (limited to 'actions/finishaddopenid.php')
-rw-r--r-- | actions/finishaddopenid.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/actions/finishaddopenid.php b/actions/finishaddopenid.php index b1dce1474..49e54a34f 100644 --- a/actions/finishaddopenid.php +++ b/actions/finishaddopenid.php @@ -26,7 +26,7 @@ class FinishaddopenidAction extends Action { function handle($args) { parent::handle($args); if (!common_logged_in()) { - common_user_error(_t('Not logged in.')); + common_user_error(_('Not logged in.')); } else { $this->try_login(); } @@ -39,11 +39,11 @@ class FinishaddopenidAction extends Action { $response = $consumer->complete(common_local_url('finishaddopenid')); if ($response->status == Auth_OpenID_CANCEL) { - $this->message(_t('OpenID authentication cancelled.')); + $this->message(_('OpenID authentication cancelled.')); return; } else if ($response->status == Auth_OpenID_FAILURE) { // Authentication failed; display the error message. - $this->message(_t('OpenID authentication failed: ') . $response->message); + $this->message(sprintf(_('OpenID authentication failed: %s'), $response->message)); } else if ($response->status == Auth_OpenID_SUCCESS) { $display = $response->getDisplayIdentifier(); @@ -61,9 +61,9 @@ class FinishaddopenidAction extends Action { if ($other) { if ($other->id == $cur->id) { - $this->message(_t('You already have this OpenID!')); + $this->message(_('You already have this OpenID!')); } else { - $this->message(_t('Someone else already has this OpenID.')); + $this->message(_('Someone else already has this OpenID.')); } return; } @@ -75,12 +75,12 @@ class FinishaddopenidAction extends Action { $result = oid_link_user($cur->id, $canonical, $display); if (!$result) { - $this->message(_t('Error connecting user.')); + $this->message(_('Error connecting user.')); return; } if ($sreg) { if (!oid_update_user($cur, $sreg)) { - $this->message(_t('Error updating profile')); + $this->message(_('Error updating profile')); return; } } @@ -96,7 +96,7 @@ class FinishaddopenidAction extends Action { } function message($msg) { - common_show_header(_t('OpenID Login')); + common_show_header(_('OpenID Login')); common_element('p', NULL, $msg); common_show_footer(); } |