Needs review
Project:
Aboutpeople
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2008 at 10:58 UTC
Updated:
28 Dec 2009 at 14:55 UTC
Jump to comment: Most recent
The phptemplate_flat_login() function of template.php file:
function phptemplate_flat_login() {
global $user;
if (!$user->uid) {
$message= '<ul>
<li class="usericon">'.l('Sing in..','user/login', array('attributes' => array('rel'=>'nofollow')) ).'</li>
<li>'.l('New password', 'user/password', array('attributes' => array('rel'=>'nofollow'))).'</li>
<li>'.l('Sign up', 'user/register', array('attributes' => array('rel'=>'nofollow')) ).'</li>
</ul>';
} else {
$message= '<ul>
<li class="usericon">'.l($user->name, 'user/'.$user->uid).'</li>
<li>'.l('Edit', 'user/' . $user->uid . '/edit').'</li>
<li>'.l('Logout', 'logout').'</li>
</ul>';
}
return $message;
}
should incorporate the t() function in the strings, and should be replaced by:
function phptemplate_flat_login() {
global $user;
if (!$user->uid) {
$message= '<ul>
<li class="usericon">'.l(t('Sing in..'),'user/login', array('attributes' => array('rel'=>'nofollow')) ).'</li>
<li>'.l(t('New password'), 'user/password', array('attributes' => array('rel'=>'nofollow'))).'</li>
<li>'.l(t('Sign up'), 'user/register', array('attributes' => array('rel'=>'nofollow')) ).'</li>
</ul>';
} else {
$message= '<ul>
<li class="usericon">'.l($user->name, 'user/'.$user->uid).'</li>
<li>'.l(t('Edit'), 'user/' . $user->uid . '/edit').'</li>
<li>'.l(t('Logout'), 'logout').'</li>
</ul>';
}
return $message;
}
Comments
Comment #1
pcoughlin commentedNeeds to fix the "Sing in.." error as well.
Please CLOSE this old issue.