Forcing a Specific Language
mojoPortal content management system provides configuration settings that let you specify the language used by your web site.
Note that in recent versions of mojoPortal we have moved most language resource files into a separate download named LanguagePak on our codeplex download page. You will need to add the .resx files for your language into the /App_GlobalResources folder in your installaiton of mojoPortal.
In Web.config or ideally in user.config:
<add key="UseCultureOverride" value="true" />
You would set this to true, then you would need to add a setting for each of your sites like:
<add key="site1culture" value="it-IT" />
<add key="site1uiculture" value="it-IT" />
<add key="site2culture" value="nl-NL" />
<add key="site2uiculture" value="nl-NL" />
The numeric part of the key corresponds to the SiteID so that it is possible to configure different sites in a multi site installation to use different languages/cultures.
Note that culture determines which culture is used for string formatting of dates and currency, etc, whereas uiculture is what determines which resources file is used for string localization. For string localization it will fall back to English if there are missing keys in the translated resource file(s).
If you are not forcing a specific language then the default behavior is to adapt to the prefferred language according to the user's browser language settings.
Created 2011-08-02 by Joe Audette