I don't understand why nobody answer me or help me !! So it took me two days digging in the source code and looking at some localisation module to figure it out. But can someone please clarify what we need to do to have some answers in this forum ??? Do
we need to have some special status to get answers ??? or is this question not important or is it something obvious ?? ....
So for some people may want to use the same solution here what i used .
I used this in order to have a list of items in a widget the list contains items in different culture so when the page culture is changed the list is filtered .
So i thought that this might be useful
IEnumerable<object> items = Model.ContentItems;
@foreach (dynamic item in items)
if (WorkContext.CurrentCulture == item.ContentItem.LocalizationPart.Culture.Culture)
var html = new HtmlString(item.ContentItem.BodyPart.Text);