change 'You and friends' to 'Home'

This commit is contained in:
Evan Prodromou 2011-05-04 10:48:12 -07:00
parent 6b1732d9a2
commit f67607d2f1

View File

@ -84,12 +84,12 @@ class AllAction extends ProfileAction
function title() function title()
{ {
if ($this->page > 1) { $user = common_current_user();
// TRANS: Page title. %1$s is user nickname, %2$d is page number if ($user->id == $this->user->id) {
return sprintf(_('%1$s and friends, page %2$d'), $this->user->nickname, $this->page); return _('Home');
} else { } else {
// TRANS: Page title. %s is user nickname $profile = $this->user->getProfile();
return sprintf(_("%s and friends"), $this->user->nickname); return sprintf(_("%s's Home"), $profile->getBestName());
} }
} }
@ -190,18 +190,6 @@ class AllAction extends ProfileAction
// $pop = new InboxTagCloudSection($this, $this->user); // $pop = new InboxTagCloudSection($this, $this->user);
// $pop->show(); // $pop->show();
} }
function showPageTitle()
{
$user = common_current_user();
if ($user && ($user->id == $this->user->id)) {
// TRANS: H1 text for page when viewing a list for self.
$this->element('h1', null, _("You and friends"));
} else {
// TRANS: H1 text for page. %s is a user nickname.
$this->element('h1', null, sprintf(_('%s and friends'), $this->user->nickname));
}
}
} }
class ThreadingInboxNoticeStream extends ThreadingNoticeStream class ThreadingInboxNoticeStream extends ThreadingNoticeStream