diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-10 10:56:48 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-10 10:56:48 +0000 |
commit | 572edcdf86ab15a13fb3b51668601d4b8dd4e34b (patch) | |
tree | 04940d505a427639e8cc86cbe331b04ef4ebf4f3 | |
parent | 8a6990a0544931dc05b20a29c8959e72434e36e2 (diff) | |
download | elgg-572edcdf86ab15a13fb3b51668601d4b8dd4e34b.tar.gz elgg-572edcdf86ab15a13fb3b51668601d4b8dd4e34b.tar.bz2 |
Closes #501
git-svn-id: https://code.elgg.org/elgg/trunk@2429 36083f99-b078-4883-b0ff-0f9b5a30f544
-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'); ?>');
}
});
|