I don't know how to create patches yet, but if anyone else need it, just edit function twitter_bootstrap_menu_navigation_links in includes/twitter_bootstrap.inc and start it with this code:
if (function_exists('i18n_menu_localize_tree')) {
$tree = i18n_menu_localize_tree($tree);
}
Hope it helps someone else.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | i18n_menu_translation-1761934-10.patch | 879 bytes | webnicola |
Comments
Comment #1
wundo commentedComment #2
andregriffin commentedComment #3
wundo commentedComment #4
natted commentedComment #5
natted commentedAnother similar issue was described here in #1678330: User menu does not select proper language items
I'll try to run some tests with the solution provided by RollWhisTler and see how things go.
Comment #6
sdfoui commentedsuscribe
Comment #7
ydahiAny update on this?
Can confirm that suggested update from RollWhisTler works (displays dropdown menu when language is selected).
Should this not be committed? (don't want to hack the bootstrap codebase unless absolutely necessary).
Thanks
Comment #8
markhalliwellI am unfamiliar with this module, please provide a patch or at least a general idea of what needs to happen and where so this can be fixed in 7.x-3.x.
Comment #9
markhalliwellNo response.
Comment #10
webnicola commentedHi guys,
I created a patch with my solution to this problem.
In: /templates/system/page.vars.php
Comment #11
webnicola commentedComment #13
markhalliwellComment #15
lynettew commentedWhen I updated my Bootstrap theme to 7.x-3.16, which includes this patch, I noticed my non-expanded menu items in my main navigation were not working correctly either with or without the "Show as expanded" checkbox marked. Menu items that I did not want expanded, that had several children, were expanding (so they stay expanded no matter what option I chose). I went back to the Bootstrap release notes, looked over them and assumed this patch may have been breaking the menu.
From what this patch listed, I removed the lines of code added added back in the line that was removed, and the menu was fine. I feel like this is removing base Drupal functionality, can this please be reopened?
-LynetteW
Comment #16
hass commentedAnother bug introduced by this case.