Rename admin menu items in SilverStripe

SilverStripe 3.0.x cheap trick of the week:

If you want to rename a menu item in the SilverStripe Admin Area, because f.e. you find “Security” or “Sicherheit”(since we are german ;)) a too harsh wording and you prefer “Members” or “Benutzer”:
simply override the translation!

Add a lang folder in your project folder and add the language file:
de.yml or en.yml and place your wording:

de:
  SecurityAdmin:
    MENUTITLE: Benutzer


Flush the cache, call the admin area again and you will see the menu item with changed wording.

Thanx to UndefinedOffset from IRC for the advise :)

In SilverStripe 2.4 overriding language files doesnt seem to work.
What you can do here is remove & add the menu item via config:

CMSMenu::remove_menu_item('SecurityAdmin');
CMSMenu::add_menu_item('SecurityAdmin','Benutzer','admin/security/');

Taken from the comments here: http://www.ssbits.com/snippets/2009/removing-an-item-from-the-main-cms-menu/

2 Replies to “Rename admin menu items in SilverStripe”

Comments are closed.