This project is read-only.

localization by domain

Topics: Administration, Localization
Apr 10, 2013 at 7:30 PM
I would like to localize the site: - ru-RU - 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 - i would like to see all content in default culture (ru-RU)
on - 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 1: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:
Aug 5, 2013 at 9:38 PM
Edited Aug 5, 2013 at 9:39 PM
the culture picker is broken in orchard 1.7