From 86a5bcf743143f301d0828931338de3ca59e25c7 Mon Sep 17 00:00:00 2001 From: Brett Profitt Date: Tue, 24 Apr 2012 19:22:48 -0700 Subject: Fixes #4339. Checking for river:$action:$type in addition to river:$action:$type:$subtype. --- views/default/river/elements/summary.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'views/default/river/elements') diff --git a/views/default/river/elements/summary.php b/views/default/river/elements/summary.php index 84941131f..4402c6f65 100644 --- a/views/default/river/elements/summary.php +++ b/views/default/river/elements/summary.php @@ -40,5 +40,14 @@ if ($container instanceof ElggGroup) { $group_string = elgg_echo('river:ingroup', array($group_link)); } +// check summary translation keys. +// will use the $type:$subtype if that's defined, otherwise just uses $type +$key = "river:$action:$type:$subtype"; +$summary = elgg_echo($key, array($subject_link, $object_link)); + +if ($summary == $key) { + $key = "river:$action:$type"; + $summary = elgg_echo($key, array($subject_link, $object_link)); +} -echo elgg_echo("river:$action:$type:$subtype", array($subject_link, $object_link)); \ No newline at end of file +echo $summary; \ No newline at end of file -- cgit v1.2.3