It happened to me using rules or a custom FeedsNodeProcessor.
I have a multilingual site using localize menu. I import nodes and creates menu items programmatically. The only thing is that I have to re-save menu items so they get language aware and show up as possible translation in select options in translation tab (and respect translate and localize when showed in different languages).
Should I pass the menu item in a function upon its creation? Or set a particuliar variable other than tid and language?
ps: translation set are set programmatically too, but this doesn't make menu item language aware either.
Thx
Comments
Comment #1
richsky CreditAttribution: richsky commentedWell, I could not say it's a bug. I'd rather like someone to tell me what variable needs to be set to localize a menu item on programmatic creation.
Comment #1.0
richsky CreditAttribution: richsky commentedtypo
Comment #2
richsky CreditAttribution: richsky commentedShame on me, menu items have to be marked as customized...
Comment #2.0
richsky CreditAttribution: richsky commentedReformulate question
Comment #3
jwilson3A working code snippet would be awesome, if you have one to share.
Comment #4
jwilson3Here is the code I used:
https://gist.github.com/338e44cd13afba682dcd
Comment #5
jwilson3