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

pcoughlin’s picture

Needs to fix the "Sing in.." error as well.

Please CLOSE this old issue.