I'm using the DidYouMean webpart within the smart search feature.
I'm using 4 culture for my website: de-CH, en-GB, fr-fr, it-it. The webpart works great for all of them but the first one. If I set manually the culture with the following code
if(CultureCode.ToLower() == "de-ch")
CultureCode = "de-de";
it works.
How can I resolve this issue? Is it possible to change the site culture in use from "de-ch" to "de-de" without losing the content I've already inserted?
I found also a bug: you're using the following code to define the culture to be used
string currentCulture = String.IsNullOrEmpty(Language.Trim()) ? CMSContext.PreferredCultureCode : Language;
Instead of it, you should use the following
string currentCulture = String.IsNullOrEmpty(Language.Trim()) ? CMSContext.CurrentDocumentCulture.CultureCode : Language;
otherwise, if I don't set the Language property, I'll get the preferred culture, not the current one.
Many thanks
Regards
Emanuele Firmani