CodePlexProject Hosting for Open Source Software
Please help. How can i get default site localization id?
What do you mean?
This is current site culture:
int currentCultureId = _cultureManager.GetCultureByName(currentCulture).Id;
I need get default culture (Settings ->Default
Site Culture )
If you inject IOrchardServices, you'll be able to access the CurrentSite.SiteCulture property via WorkContext:
string currentCultureName = _orchardServices.WorkContext.CurrentSite.SiteCulture;
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.