From 0853342ae55328e2744a15aa1a8f37852ad76604 Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 26 Jan 2013 10:33:51 -0500 Subject: fixed comment language for brief display of comments - made it easier to translate - taken from PR 438 --- languages/en.php | 1 + views/default/annotation/generic_comment.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/languages/en.php b/languages/en.php index 78f37ab63..353896047 100644 --- a/languages/en.php +++ b/languages/en.php @@ -1155,6 +1155,7 @@ If you requested this, click on the link below. Otherwise ignore this email. 'generic_comment:failure' => "An unexpected error occurred when adding your comment.", 'generic_comment:none' => 'No comments', 'generic_comment:title' => 'Comment by %s', + 'generic_comment:on' => '%s on %s', 'generic_comment:email:subject' => 'You have a new comment!', 'generic_comment:email:body' => "You have a new comment on your item \"%s\" from %s. It reads: diff --git a/views/default/annotation/generic_comment.php b/views/default/annotation/generic_comment.php index 9891510e0..22a8d9211 100644 --- a/views/default/annotation/generic_comment.php +++ b/views/default/annotation/generic_comment.php @@ -55,13 +55,13 @@ HTML; //@todo need link to actual comment! - $on = elgg_echo('on'); + $commented_on = elgg_echo('generic_comment:on', array($commenter_link, $entity_link)); $excerpt = elgg_get_excerpt($comment->value, 80); $body = << - $commenter_link $on $entity_link ($friendlytime): $excerpt + $commented_on ($friendlytime): $excerpt HTML; -- cgit v1.2.3