localization by domain

Topics: Administration, Localization
Apr 10, 2013 at 6:30 PM
I would like to localize the site:
domain.ru - ru-RU
domain.com - en-US
  1. localize some widget
  2. localize some blog post
  3. localize some projections with some projection items
  4. localize some lists with some list items
  5. localize menu
  6. localize some forms (name of fields, messages)
That is, I would like to make the English copy of my site.

on domain.ru - i would like to see all content in default culture (ru-RU)
on domain.com - i would like to see only localized content (en-US)

Can i do this with existing modules?
What the best way to do this? (localization + rewrite modules, multiTenancy module, ...)
Apr 18, 2013 at 12:47 AM
You can implement the ICultureSelector interface to define your own culture selection rules. So, in this case, you could create a culture selection rule that pulls the domain name, checks it for a value (like ".ru"), and sets the culture based on it.

Check out the culture picker module for some good examples of creating an implementation of ICultureSelector:
http://gallery.orchardproject.net/List/Modules/Orchard.Module.Orchard.CulturePicker
Aug 5, 2013 at 8:38 PM
Edited Aug 5, 2013 at 8:39 PM
the culture picker is broken in orchard 1.7
see: https://orchardculturepicker.codeplex.com/workitem/41