aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Profitt <brett.profitt@gmail.com>2012-04-24 19:22:48 -0700
committerBrett Profitt <brett.profitt@gmail.com>2012-04-24 19:22:48 -0700
commit86a5bcf743143f301d0828931338de3ca59e25c7 (patch)
treeff6e3778d5e25fb2969b9c8b03b8a73a30d96d22
parent23f5e53a41c763b4253dcba797c23b7c39b6ef41 (diff)
downloadelgg-86a5bcf743143f301d0828931338de3ca59e25c7.tar.gz
elgg-86a5bcf743143f301d0828931338de3ca59e25c7.tar.bz2
Fixes #4339. Checking for river:$action:$type in addition to river:$action:$type:$subtype.
-rw-r--r--views/default/river/elements/summary.php11
1 files changed, 10 insertions, 1 deletions
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