From 87b494f1ebbe7640d194ef322af12fdf378295df Mon Sep 17 00:00:00 2001 From: Mike Cochrane Date: Tue, 8 Jul 2008 05:45:31 -0400 Subject: Convert _t() to _() for gettext. darcs-hash:20080708094531-533db-83399a46e6ec4c0fcc6249b0235961f969d1ae73.gz --- actions/finishaddopenid.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'actions/finishaddopenid.php') 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(); } -- cgit v1.2.3-54-g00ecf