does somebody know whether it's possible to set the culture using the contentService?
Currently I am doing something like this:
// create content service
var contentService = ApplicationContext.Current.Services.ContentService;
//create unique name for umbraco
var uniqueName = name + code;
var newJobPost = contentService.CreateContentWithIdentity(uniqueName, 4483, "job");
newJobPost.SetValue("betreff", name);
newJobPost.SetValue("code", code);
newJobPost.SetValue("location", location);
...
//save & publish
var status = contentService.SaveAndPublishWithStatus(newJobPost);
That creates nodes with the the culture "inherit".
Is there a way I can set a specific culture like "de" or "it"... ?
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(cookieLingua);
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(cookieLingua);
set culture using contentSevice
Hi everyone,
does somebody know whether it's possible to set the culture using the contentService?
Currently I am doing something like this:
That creates nodes with the the culture "inherit".
Is there a way I can set a specific culture like "de" or "it"... ?
Thanks a lot.
Hi Edgar
You need to set culture to thread like that:
Alex
Hi Alex,
thank you very much for your help. Very much appreciated!
Regards
Can I update the culture of existing node?
is working on a reply...