This project is read-only.

Setting language for other components through Orchard

Topics: Administration, Announcements, Core, Customizing Orchard, Francais (French), General, Installing Orchard, Jobs, Localization, Troubleshooting, Writing modules, Writing themes, Русский (Russian), 中文(Chinese)
Aug 15, 2012 at 9:33 AM

We're using Orchard and also using some third party libraries. Like DevExpress.

DevExpress provides localization. Orchard also provides this.

What we want to do is specify the localization that is set in Orchard, to the DevExpress components.

What we already can do is specify the localization through code. But we currently don't see any way to get the current (configured) localization in Orchard.

We were thinking of using the DevExpress sample, using Global.asax. But we don't see any possibility of getting for example ILocalizationService or IOrchardServices instance.

IOrchardHost doesn't provide us with any methods we think are useful for getting these instances.

Aug 17, 2012 at 2:14 AM

I'm afraid that won't work. Anything that requires you touch top-level resources such as global.asax or web.config is a big no-no in Orchard.