make reshares translateable
This commit is contained in:
parent
f988213af8
commit
6c9db5a1cf
@ -147,16 +147,24 @@ function bb_ShareAttributes($match) {
|
||||
preg_match('/posted="(.*?)"/ism', $attributes, $matches);
|
||||
if ($matches[1] != "")
|
||||
$posted = $matches[1];
|
||||
$reldate = (($posted) ? " " . relative_date($posted) : '');
|
||||
|
||||
// FIXME - this should really be a wall-item-ago so it will get updated on the client
|
||||
$reldate = (($posted) ? relative_date($posted) : '');
|
||||
|
||||
$headline = '<div class="shared_header">';
|
||||
|
||||
if ($avatar != "")
|
||||
$headline .= '<img src="'.$avatar.'" height="32" width="32" />';
|
||||
$headline .= '<img src="' . $avatar . '" alt="' . $author . '" height="32" width="32" />';
|
||||
|
||||
$headline .= sprintf(t('<span><a href="%s">%s</a> wrote the following <a href="%s">post</a>'.$reldate.':</span>'), $profile, $author, $link);
|
||||
// Bob Smith wrote the following post 2 hours ago
|
||||
|
||||
$headline .= "</div>";
|
||||
$fmt = sprintf( t('%1$s wrote the following %2$s %3$s'),
|
||||
'<a href="' . zid($profile) . '" >' . $author,
|
||||
'<a href="' . zid($link) . '" >' . t('post'),
|
||||
$reldate
|
||||
);
|
||||
|
||||
$headline .= '<span>' . $fmt . '</span></div>';
|
||||
|
||||
$text = $headline . '<div class="reshared-content">' . trim($match[2]) . '</div>';
|
||||
|
||||
|
@ -3754,3 +3754,4 @@ ul.menu-popup {
|
||||
.profile-match-connect { margin-top: 5px; }
|
||||
|
||||
.reshared-content { margin-left: 30px; }
|
||||
.shared_header img { margin-right: 10px; }
|
Reference in New Issue
Block a user