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

richsky’s picture

Category: bug » support

Well, 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.

richsky’s picture

Issue summary: View changes

typo

richsky’s picture

Priority: Normal » Minor
Status: Active » Closed (works as designed)

Shame on me, menu items have to be marked as customized...

richsky’s picture

Issue summary: View changes

Reformulate question

jwilson3’s picture

Issue summary: View changes

A working code snippet would be awesome, if you have one to share.

jwilson3’s picture

jwilson3’s picture

Title: Node translation not set for programmatically created menu item » How to programmatically create a translated node with localized menu items
Version: 7.x-1.7 » 7.x-1.x-dev