You could do it yourself, looks like it's not built in to umbraco:
string domain = HttpContext.Current.Request.Url.Host; // Not sure about this, might have to tweak
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(umbraco.cms.businesslogic.web.Domain.GetDomain(domain).Language.CultureAlias);
Base and dictionary
Hi, when I try use getDictionaryItem from umbraco.library in base method I found out it do not respect language setings from manage domain dialog.
I try check CurrentUICulture and it is not changed based on domain :-(
Is there any way how to set CurrentUICulture based on domain, which is necessery to getDictionaryItem works correctly?
Thanks
Petr
You could do it yourself, looks like it's not built in to umbraco:
That's exactly what I need (except CurrentUICulture instead of CurrentCulture :-).
Thank you very much.
I end with this code:
Petr
is working on a reply...