Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
menu system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2008 at 06:31 UTC
Updated:
24 Jan 2008 at 20:13 UTC
Jump to comment: Most recent file
Comments
Comment #1
chx commentedAlso there is code duplication, oh horror! We can certainly do better. I moved all the relevant code to menu_item_localize. Not much change needed there, the patch looks bigger because I needed to indent most of that function.
Comment #2
becw commentedComment #3
bdragon commented(setting to cnr while becw writes up how she tested..)
Comment #4
becw commentedI'm getting two errors on the admin/build/menu-customize/navigation page:
* notice: Undefined index: map in menu.inc on line 1460.
* notice: Uninitialized string offset: 0 in menu.module on line 177.
the menu item titles are showing up correctly, though (run through the custom translation callback).
Comment #5
chx commentedForgot to move a piece of code.
Comment #6
chx commentedThe
$item['map'] = $map;needs to be on its own.Comment #7
becw commentedtested w/ 3 menu items (one each specifying title and title callback, title and title arguments, and title arguments and title callback). worked in all cases.
Comment #8
becw commentedthe title of the breadcrumb link seems to be run through the custom translation function *twice*.
Comment #9
chx commentedWell, then the second call is not necessary... it's broken anyways because if a customized item is in the active trail which had a custom menu callback that would fire and overwrite the user set title.
Comment #10
becw commentedbreadcrumb double-translation issue fixed, everything else still works.
Comment #11
gábor hojtsyAsked chx to document $link_translate, as I tried to understand the changes made here, and this turned out to be quite unclear to me.
Comment #12
jvandyk commentedAttempt at documentation. chx, please review and comment/correct.
Comment #13
gábor hojtsyLooks better. Committed, thanks.
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.