More in this section

Forums / Developing with Sitefinity / Localized News Items

Localized News Items

1 posts, 0 answered
  1. Zubair
    Zubair avatar
    142 posts
    26 Dec 2007
    09 Feb 2014
    Link to this post
    Hi guys,

    I have hit a snag trying to import localized news items in Sitefinity using API

    I have tried everything I know so far but the problem I hit is that Sitefinity imports French localized news items from my xml as English and Publishes it but the French is not even published, I had to manually edit first item below then publish, there is no English translation for these items it must all be French (probably that’s why?)

    See that the text is actually French 
    Below is my code for inserting news items,
    I import an XElement which only contains French translations
    Set culture = “fr”

    and one thing I learned from Sitefinity Dev Guide is that I must create the first item and use its saved Guid to create the rest, that’s what I am doing below

    You can also see that I am setting the UI culture to French but still I get the above

    This is the code that calls the above method which is called when looping through a list of xElements
1 posts, 0 answered