Hi Mahjooob Ibrahim,
You should enable localization, in order to create a multilingual site with UI in different languages.
me try to give you a step by step guide on how to enable localization
on your website and use multilingual content in modules and controls.
Before I start I would like to recommend that the steps I am providing
you with are all described in our User Manual.
1) When starting to use multilingual content you will have first of all
enable localization for your web site. To do this you will have to find
the <localization> tag in your web.config and choose enter the
persistence mode for localization. The example bellow will enable
localization for pages with English and Arabic, with default language
English (for further detail see Multilingual Content Management in the User Manual, starting from page 242):
|<localization defaultProvider="Sitefinity" persistenceMode="PathPrefix" defaultCulture="en" cultures="en, ar">
2) After enabling localization, you can enable localization for
different modules (like Generic Content, News, Blogs) so that you can
manage content created in those modules to have different language
versions. Here is an example how to do it for News Module. Find the
following in your web.config:
|<add name="News" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" applicationName="/News" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data"/>
And add the following into the tag:
This will enable localization for your News Module. For more
information on enabling localization for different Sitefinity modules
you can look at Working with Modules in
the User Manual . If for an example you want your news items tittles to
have different language versions you have to enable localization for
news title. To do this find the <metaFields> tag and enable
localization for news tittles like this:
| <add key="News.Title" localizable="true" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/>
3) After you have done the above you will have enabled localization for
your project it is time that you localize the resources for your site.
Please look at the following KB article to see how you can localize your Blogs public controls.
For example in order to localize your News View public control you will have to do the following:
3.1) Go to ~/Sitefinity/ControlTemplates/News/App_LocalResources directory in your project
3.2) Create copies of the ListPageDetails.ascx.resx and ListPageMaster.ascx.resx and name them like this ListPageDetails.ascx.ar.resx and in ListPageMaster.ascx.ar.resx (in this way when Arabic is selected for your site the NewsView control will use those files).
3.3) Edit (translate) the strings for different labels in ListPageDetails.ascx.ar.resx and ListPageMaster.ascx.ar.resx
3.4) If you are using Sitefinity version 3.6 SP2 you will have to map
the templates for the controls whose resource files you are editing.
For more information on mapping controls to a template read here. You will also need to download the ExternalTemplates.zip file for your version of Sitefinity, if you have not done so already.
the Telerik team