We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 34e26b53 authored by Evan Prodromou's avatar Evan Prodromou

show list of people who like something in threadednoticelist

parent 7aa35651
......@@ -465,22 +465,36 @@ class ThreadedNoticeListFavesItem extends NoticeListActorsItem
return $profiles;
function magicList($items)
if (count($items) > 4) {
return parent::magicList(array_slice($items, 0, 3));
} else {
return parent::magicList($items);
function getListMessage($count, $you)
if ($count == 1 && $you) {
// darn first person being different from third person!
// TRANS: List message for notice favoured by logged in user.
return _m('FAVELIST', 'You have favored this notice.');
return _m('FAVELIST', 'You like this.');
} else if ($count > 4) {
// TRANS: List message for when more than 4 people like something.
return sprintf(_m('FAVELIST', '%%s and %d others like this.'),
$count - 3);
} else {
// TRANS: List message for favoured notices.
// TRANS: %d is the number of users that have favoured a notice.
return sprintf(_m('One person has favored this notice.',
'%d people have favored this notice.',
return sprintf(_m('%%s likes this.',
'%%s like this.',
function showStart()
$this->out->elementStart('li', array('class' => 'notice-data notice-faves'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment