diff options
-rw-r--r-- | languages/en.php | 2 | ||||
-rw-r--r-- | views/default/friends/collections.php | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/languages/en.php b/languages/en.php index 4c0b11160..ca2ff2e77 100644 --- a/languages/en.php +++ b/languages/en.php @@ -349,6 +349,8 @@ To remove a widget drag it back to the <b>Widget gallery</b>.", 'friends:collectiondeletefailed' => "We were unable to delete the collection. Either you don't have permission, or some other problem has occurred.", 'friends:collectionadded' => "Your collection was successfuly created", 'friends:nocollectionname' => "You need to give your collection a name before it can be created.", + 'friends:expandall' => 'Expand all', + 'friends:closeall' => 'Close all', 'friends:river:created' => "%s added the friends widget.", 'friends:river:updated' => "%s updated their friends widget.", diff --git a/views/default/friends/collections.php b/views/default/friends/collections.php index 7554a0545..c6af70dbe 100644 --- a/views/default/friends/collections.php +++ b/views/default/friends/collections.php @@ -18,7 +18,7 @@ if (is_array($vars['collections']) && sizeof($vars['collections'])) {
- echo "<div class=\"expandall\"><p>expand all</p></div>";
+ echo "<div class=\"expandall\"><p>".elgg_echo('friends:expandall')."</p></div>";
echo "<ul id=\"friends_collections_accordian\">";
foreach($vars['collections'] as $collection) {
@@ -50,11 +50,11 @@ $('#friends_collections_accordian h2').click(function () { $('div.expandall p').click(function () {
if (this.innerHTML == 'close all') {
$('div.friends_picker').slideUp("fast");
- $('div.expandall p').html('expand all');
+ $('div.expandall p').html('<?php echo elgg_echo('friends:expandall'); ?>');
}
else {
$('div.friends_picker:hidden').slideDown("fast");
- $('div.expandall p').html('close all');
+ $('div.expandall p').html('<?php echo elgg_echo('friends:closeall'); ?>');
}
});
|