Closed (fixed)
Project:
Menu translation (Node)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2010 at 14:36 UTC
Updated:
22 Oct 2010 at 10:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
vurt commentedFirst I have to thank for the wonderful i18nmenu - great idea. For many websites this approach fits much better.
We had the same problem with paths as Johnny. Using his module fixed this - also a big thank you!
I think it would be a good idea to integrate the module - or it there another place where this token could be useful?
Cheers
Comment #2
plachThis is a desirable feature. I'll try to look into this asap.
Comment #3
plachThis probably fits better into the i18nmenu module.
Related issue: #881270: [bookpath], [menupath], [*path] tokens not cleaned: aliases without punctuation removed, lower casing, etc..
Comment #4
plachSorry, I did not consider that i18nmenu does not touch node menu item paths. Moving back to the MTN queue.
Comment #5
plachHere is a patch based on the code posted in the OP.
Please note that due to the above issue with Pathauto, the token has been renamed to
[i18n-menuhierarchy-raw]. Until that one is fixed we need to configure puntuaction settings to leave alone slashes to have working aliases.Note also that the
i18n-namespace should be used by the i18n project, but in this case Menu Translation (which is the right place where implement any other[i18n-menu*]token) does not need the hierarchy token, as it relies on menu item replication (which works with the standard [menupath-raw] token), so this should not be an issue.Comment #6
Johnny vd Laar commentedGreat i'll try to test this somewhere in the next few weeks. I'm overly busy with deadlines.
Comment #7
plachRerolled
Comment #8
plachCommitted to HEAD.
Comment #10
Johnny vd Laar commentedyou've renamed the token to i18n-menuhierarchy-raw but this is in the pathauto module
so if the token doesn't contain path, path-raw or alias then all slashes are removed.
so i propose to rename the token to i18n-menuhierarchy-path-raw
Comment #11
plachGive a look to #926130: Add support for Pathauto segment cleaning mode.