aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--languages/en.php2
-rwxr-xr-xmod/profile/views/default/profile/owner_block.php4
2 files changed, 5 insertions, 1 deletions
diff --git a/languages/en.php b/languages/en.php
index 8ffb11547..6ccdbaecb 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -608,6 +608,8 @@ $english = array(
'admin:notices:could_not_delete' => 'Could not delete notice.',
+ 'admin:options' => 'Admin options',
+
/**
* Plugins
diff --git a/mod/profile/views/default/profile/owner_block.php b/mod/profile/views/default/profile/owner_block.php
index b8f912649..c93398034 100755
--- a/mod/profile/views/default/profile/owner_block.php
+++ b/mod/profile/views/default/profile/owner_block.php
@@ -32,8 +32,10 @@ if (elgg_is_logged_in() && $actions) {
// if admin, display admin links
$admin_links = '';
if (elgg_is_admin_logged_in() && elgg_get_logged_in_user_guid() != elgg_get_page_owner_guid()) {
+ $text = elgg_echo('admin:options');
+
$admin_links = '<ul class="profile-admin-menu-wrapper">';
- $admin_links .= '<li><a class="elgg-toggler href="#profile-menu-admin">Admin options&hellip;</a>';
+ $admin_links .= "<li><a class=\"elgg-toggler\" href=\"#profile-menu-admin\">$text&hellip;</a>";
$admin_links .= '<ul class="profile-admin-menu" id="profile-menu-admin">';
foreach ($admin as $menu_item) {
$admin_links .= elgg_view('navigation/menu/elements/item', array('item' => $menu_item));