A more powerful name_generator

I'm trying to use Font-Awesome in my menu and I'm using `name_generator` to do so but I think using the name of the menu entry doesn't really make sense since it can change depending of the language.

I'd like to submit a PR to provide access to `self` in this block. There are two ways to do so, one which is not retro-compatible, passing `self` instead of just `@name`. The second is more conservative, it's just passing `self` as second argument.

What do you think?