Timeline for No "body" when creating a node programatically, with Internationalization
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 8, 2013 at 11:01 | vote | accept | Rob | ||
Jan 8, 2013 at 9:37 | comment | added | Rob | LOL. OK I will start a new question. But to confirm.. When I use $node->language = LANGUAGE_NONE; Event is shown when I go into the event page - But there is NO translate tab when editing....... Conversely, when i use $node->language = "en"; Nothing is shown when I go into the event page - But there is a translate tab | |
Jan 2, 2013 at 17:35 | comment | added | Clive♦ | Oh, and make sure you don't try to put the full name for Llanfairpwll station in anywhere...no database in the world would be able to handle that ;) | |
Jan 2, 2013 at 17:33 | comment | added | Clive♦ | Ah ok. I'm afraid I don't have masses of experience with the i18n module so I'm out of ideas off the top of my head...now that you've got the body field saving it's probably worth opening a new question to ask why the Translate tab is missing, referring back to this one for context. This question has a lot of comments and a couple of answers which might put people off from reading through it, so a new question would probably work in your favour | |
Jan 2, 2013 at 17:25 | comment | added | Rob | The site is English/Welsh. I'm importing a new event in English which will be manually translated to Welsh once successfully imported. | |
Jan 2, 2013 at 17:20 | comment | added | Clive♦ |
Ah so this node is a translation of another? 'en' is probably correct then, but I think you also need to set $node->tnid . That column in the node table is defined as: "The translation set id for this node, which equals the node id of the source post in each set.". Basically the $nid of the original node.
|
|
Jan 2, 2013 at 17:07 | comment | added | Rob | No it's not nonsense, I think you're right! Using LANGUAGE_NONE shows the body text. The problem is now, I'm using the Internationalization module, which doesn't display a Translate tab, with $node->language set to LANGUAGE_NONE; Only when set to "en" | |
Jan 2, 2013 at 16:47 | history | answered | Clive♦ | CC BY-SA 3.0 |