aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2013-01-26 10:33:51 -0500
committerCash Costello <cash.costello@gmail.com>2013-01-26 10:33:51 -0500
commit0853342ae55328e2744a15aa1a8f37852ad76604 (patch)
treeccae1bf1d3c91f18b6d63242010e528d59f9e5b2
parentd33d3521485138551d95d4c4187eb46a90ae4d9d (diff)
downloadelgg-0853342ae55328e2744a15aa1a8f37852ad76604.tar.gz
elgg-0853342ae55328e2744a15aa1a8f37852ad76604.tar.bz2
fixed comment language for brief display of comments - made it easier to translate - taken from PR 438
-rw-r--r--languages/en.php1
-rw-r--r--views/default/annotation/generic_comment.php4
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 = <<<HTML
<span class="elgg-subtext">
- $commenter_link $on $entity_link ($friendlytime): $excerpt
+ $commented_on ($friendlytime): $excerpt
</span>
HTML;