I have the Messages menu tab that points to the standard mywebsite/messages link.
Before installing nice_menus the tab title was showing number of new messages. With nice_menu it does not work any more.
For example when I check the menu links in the administrator/structure/menu page I have the link listed as "Messages (4 new)". But in the actual menu I still have the value of Menu link title - "Messages".
I don't exactly know how the mail module updates the menu link title so I don't know how to fix it. If I were to guess, it say that the implementation of nice_menus is missing translation function t() on the menu title.
Comment | File | Size | Author |
---|---|---|---|
Screenshot.png | 90.13 KB | pgancarski |
Comments
Comment #1
pgancarski CreditAttribution: pgancarski commentedI solved the issue. It appears that Nice menus is using for the display the
link_title
field instead oftitle
. Weather it is a bug or not I have no idea, but it is inconsistent with how the standard menus work.I fix it with a following code
(For the code to work, the menu link needs to have the alter flag set to TRUE)
Comment #2
xiukun.zhou CreditAttribution: xiukun.zhou commented