In this article we will be seeing how to enable support for alternate languages
in SharePoint 2010.
The installed languages in the SharePoint server can be supported by the site
which is specified by the owner of the site, so that users who navigate to the
site can then change the display language of the user interface to any of these
alternate languages.
For more information on Alternate Languages refer http://www.c-sharpcorner.com/UploadFile/anavijai/7304/
(Copy the link and paste).
I have installed the Hindi language pack in my SharePoint 2010 server, in this I
am going to enable support for Hindi language (Alternate language).
Go to Site Actions => Site Settings => Site Administration => Language
Settings.
Check the Hindi language in the Alternate language's section.
Click on Ok.
Now the users have the ability to change the language of the User interface for
a website to Hindi language as shown in the following.
The same thing can be achieved using SharePoint 2010 object model.
Steps Involved:
Enable Alternate Languages using powershell:
- Go to Start => All Programs => Microsoft
SharePoint 2010 products => SharePoint 2010 Management Shell.
- Run as an administrator.
- Run the following script.
$site= Get-SPSite "http://servername:22222/sites/LanguageTest/"
$web=$site.Rootweb
$web.Ismultilingual=$true
$installedLanguages=$web.RegionalSettings.InstalledLanguages
$supportedLanguages = $web.SupportedUICultures
foreach ($language in $installedLanguages)
{
$culture = New-Object System.Globalization.CultureInfo($language.LCID)
if (($supportedLanguages -contains($culture)) -eq $false )
{
$web.AddSupportedUICulture($culture)
}
$web.Update()
}