Hi, I found some problems with i18n and nice menus.
I use "Translate and Localize." option for translate menus but mainly I translate with localize (best with entity translation).
My localized nice menu, appears only in the default language. The same menu without nice menus appears correctly translated.
I searched in the code and I have found that editing nice_menus.module inside the function theme_nice_menus_build can correct the problem.
Precisely I change the lines 458 and 473 from:
'#title' => $menu_item['link']['link_title'],
to
'#title' => $menu_item['link']['title'],

(sorry for the rude way to show code diffs but I'm not a patch tool guru).

It seems that the i18n function i18n_menu_localize_tree returns $menu_item['link']['link_title'] untranslated but $menu_item['link']['title'] translated.

Two questions:
- Can this modifications brake something?
- If everything is ok, can the change be committed in the module code?

Thanks

Comments

xiukun.zhou’s picture

Status: Active » Fixed

Thanks brennino.

This issue has been resolved in nice_menus 7.x-2.x-dev.

http://drupal.org/node/1050352

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.