Hi
Having 'View' and 'Edit' in user menu item can lead to some problems with translations. For example, I want to change 'View' to 'Account' and 'Edit' to 'Edit Account'. If I will do this now - all View and Edit titles will change, but this is not what I want to.
I think we need to change title for two menus - $items['user/%user/view'] and $items['user/%user/edit']
I've changed View to Account and Edit to Account edit
| Comment | File | Size | Author |
|---|---|---|---|
| user.module.patch | 632 bytes | drupalprojects |
Comments
Comment #1
Anonymous (not verified) commentedThis wording can be easily changed by you via a specialized module using the hook_menu to reset the title for the items.
-1 from me for this change.
Comment #2
drupalprojects commentedI'm partially agree with you, earnie.
However, I'm thinking from user's point of view. I think user can't just sit and write a module.
I just think that it would be easier for users to have an ability to change user tabs items via translations. For now I can translate this string but this translation will affect all places where View and Edit is defined.
Comment #3
Ozeuss commentedI would vote +1 for this, because generally i think that also 'edit account' should be seperate from 'edit profile' (which would come later)
Comment #4
damien tournoud commentedThe translation layer is designed to translate text, not to dynamically alter it.
Comment #5
drupalprojects commentedDamien, all I'm talking about is ability to translate things separately