I'm not sure if this issue is related to this module or to the i18nmenu module but for pathauto I always use the [menupath-raw] token. But when I enabled this module the translated pages receive the menupath of the source language. So what I've done is created a separate module that adds an [i18n-menupath-raw] token. Perhaps this new module can be integrated into this module.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | i18nmenu_node-867288-7.patch | 1.67 KB | plach |
| #5 | i18nmenu_node-867288-5.patch | 3.02 KB | plach |
| i18nmenu_token.zip | 1.35 KB | Johnny vd Laar |
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.