Hello,
- $title = check_plain($result);
line 376 replace to this?
+ $title = (function_exists('tt')) ? tt('menu:menu:'. $menu_name .':title', check_plain($result)) : check_plain($result);
Is it bad solution?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | nice_menus-title-translation-870360-4.patch | 1.17 KB | reszli |
| #3 | nice_menus-title-translation-870360.patch | 388 bytes | mrf |
Comments
Comment #1
bsztreha commentedAnyone can comment it?
Comment #2
add1sun commentedSeems sane. I don't have any multilingual sites set up and haven't had a chance to test this. If someone can review and give a +1, I'll roll it in.
Comment #3
mrf commented$title already gets run through a check_plain before it hits this point so this simpler solution works for me.
Comment #4
reszliadditionally to the title of the menu, I also needed to add a couple of t() functions for the menu items as well
to make a nicemenu block render the menu items in the current language
Comment #5
xiukun.zhou commentedHi reszli
@see #1050352: translated menu items displayed in the default language
Comment #6
xiukun.zhou commented