..as discussed on 254#issuecomment-45995138
And made a final change on default.css to center icons on Sidebar top
I'm really sorry for double commit but you where faster then me with
merging^^
It automatically replaces the menu based on the cookie value. Also
the icon is placed accordingly. The JS is in the sidebar.inc.php
file due to the fact that changing from home to admin for instance
is actually an Ajax call and if the JS is not within the content
rendered with the Ajax call, it no longer works.
I couldn't get it to work for the Filters menu, as it's no rendered
by the sidebar.
Added a toggle switch on the left bar sub menus. Added a small icon
alongside the submenu name. It currently toggles the submenus correctly
and changes the icon orientation. However, the state of the menu isn't
kept in memory, therefore changing to another sidebar (from home to
admin for instance) doesn't keep the current display settings.
By default, all menus are expanded.
Even if we move away from php-gettext in the future, it's easy to
write a quick T_() as a simple wrapper; it's not so easy to rewrite
PHP to allow redeclaration of a function.