diff options
author | Friendika <info@friendika.com> | 2011-03-18 05:07:42 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-03-18 05:07:42 -0700 |
commit | 9838245c6c9b2e311650b53a1c3aa1ef778ef935 (patch) | |
tree | ceb9f5edd50cd039e28362a59c4c2d354bb88e67 /mod/like.php | |
parent | 43234a667878327a825914070884161c6d57271e (diff) | |
parent | e307846c2d89cf450ed2e7ddf8f325f5f4581f8f (diff) | |
download | volse-hubzilla-9838245c6c9b2e311650b53a1c3aa1ef778ef935.tar.gz volse-hubzilla-9838245c6c9b2e311650b53a1c3aa1ef778ef935.tar.bz2 volse-hubzilla-9838245c6c9b2e311650b53a1c3aa1ef778ef935.zip |
Merge branch 'gettext' of https://github.com/fabrixxm/friendika into fabrixxm-gettext
Diffstat (limited to 'mod/like.php')
-rw-r--r-- | mod/like.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mod/like.php b/mod/like.php index 3a8ca4b7d..3e3d69529 100644 --- a/mod/like.php +++ b/mod/like.php @@ -124,9 +124,9 @@ function like_content(&$a) { </object> EOT; if($verb === 'like') - $bodyverb = t('likes'); + $bodyverb = t('%1$s likes %2$s\'s %3$s'); if($verb === 'dislike') - $bodyverb = t('doesn\'t like'); + $bodyverb = t('%1$s doesn\'t like %2$s\'s %3$s'); if(! isset($bodyverb)) return; @@ -147,9 +147,11 @@ EOT; $arr['author-name'] = $contact['name']; $arr['author-link'] = $contact['url']; $arr['author-avatar'] = $contact['thumb']; - $arr['body'] = '[url=' . $contact['url'] . ']' . $contact['name'] . '[/url]' . ' ' . $bodyverb . ' ' - . '[url=' . $item['author-link'] . ']' . $item['author-name'] . t('\'s') . '[/url]' . ' ' - . '[url=' . $a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id'] . ']' . $post_type . '[/url]' ; + + $ulink = '[url=' . $contact['url'] . ']' . $contact['name'] . '[/url]'; + $alink = '[url=' . $item['author-link'] . ']' . $item['author-name'] . '[/url]'; + $plink = '[url=' . $a->get_baseurl() . '/display/' . $owner['nickname'] . '/' . $item['id'] . ']' . $post_type . '[/url]'; + $arr['body'] = sprintf( $bodyverb, $ulink, $alink, $plink ); $arr['verb'] = $activity; $arr['object-type'] = $objtype; |