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

CommentFileSizeAuthor
user.module.patch632 bytesdrupalprojects

Comments

Anonymous’s picture

This 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.

drupalprojects’s picture

I'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.

Ozeuss’s picture

I would vote +1 for this, because generally i think that also 'edit account' should be seperate from 'edit profile' (which would come later)

damien tournoud’s picture

Status: Active » Closed (won't fix)

The translation layer is designed to translate text, not to dynamically alter it.

drupalprojects’s picture

Damien, all I'm talking about is ability to translate things separately