+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / Multilingual templates

Multilingual templates

8 posts, 0 answered
  1. Wessam
    Wessam avatar
    14 posts
    Registered:
    04 Jan 2007
    10 Jun 2009
    Link to this post
    Hi,
    I'm developing a multilingual website. I'm looking for best practices on how to create masterpages and themes that support multilanguages. Any working examples will be much appreciated

    Thanks.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Jun 2009
    Link to this post
    Hi Wessam,

    You can enable Sitefinity localization through <localization> node in your web.config file. Then create common masterpages. In App_Master folder of your website add a new foloder App_LocalResources and there create resx files for the different languge versions

    - Default.master.resx - culture neutral resource file.
    - Default.master.fr.resx - culture specific resource file.
    Then you can also create pages and content items in different languages.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Mehdi
    Mehdi avatar
    21 posts
    Registered:
    19 Feb 2009
    05 Jul 2009
    Link to this post
    hello,

    I am looking to develop a website in English and Arabic, i want the news module and other modules to be compatible with arabic as well. Could you please list out the steps in achiving an English and Arabic website using Sitefinity.
    A working example with the steps would be great.

    Thanks

    Mehdi
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    06 Jul 2009
    Link to this post
    Hi Mehdi,

    I have sent a response to your question in the support ticket you have opened on the same topic. Please, take a look at it, and see if the information provided there will help you.

    Greetings,
    Rado
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. citytech team1
    citytech team1 avatar
    16 posts
    Registered:
    17 Sep 2009
    17 Sep 2009
    Link to this post

    Hi

    I am looking to develop a website in English and Arabic, i want the news module and other modules to be compatible with arabic as well. Could you please list out the steps in achiving an English and Arabic website using Sitefinity.
    A working example with the steps would be great.


  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Sep 2009
    Link to this post
    Hello citytech team1,

    Thank you for using our services.

    Let 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:
    <localization defaultProvider="Sitefinity" persistenceMode="PathPrefix" defaultCulture="en" cultures="en, ar">  

    2) After enabling localization, you can enable localization for Generic Content Based modules (like Generic Content, News, Blogs, Events) 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:
    allowLocalization="true" 

    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:
    <metaFields> 
    ... 
    <add key="News.Title" localizable="true" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
    ... 
    </metafields>  

    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.

    You can also create localized master pages as described in one of the threads that you have posted too.

    My recommendation to you is if you want easily to achieve switching text direction from right to left and left to right is to create two separate themes for your site. For example create two theme folders in the App_Themes directory of your project. One of the themes will be used by your english pages. When you create an English page you will select the page to use that theme. In the second theme you will style your CSS so that the text direction is right to left, and you will set your Arabic pages to use this theme.

    Please, also note that multilingual content is not supported by Sitefinity Community Edition.

    I hope that this information will help you set up multilinguality for your web site. If you have further questions, please feel free to contact us

    Sincerely yours,
    Radoslav Georgiev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Dunstan
    Dunstan  avatar
    3 posts
    Registered:
    05 May 2008
    17 Sep 2010
    Link to this post
    My apologies if this is not the right place to ask the question. I was wondering if localization is possible in the community edition of sitefinity 3.7. I am testing it using the web installer from Microsoft. I did not see a localization section in my web.config file so I added it. I got an error. Any help greatly appreciated.
     <localization defaultProvider="Sitefinity" persistenceMode="PathPrefix" defaultCulture ="en" cultures="en, it">
          <providers>
            <clear/>
            <add name="Sitefinity" type="Telerik.Localization.Data.DefaultProvider, Telerik.Localization.Data" connectionStringName="DefaultConnection" visible="true" />
          </providers>
        </localization>
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    17 Sep 2010
    Link to this post
    Hi Dunstan ,

    Community Edition does not support localization and workflow.  These are features of standard edition. Community Edition could be upgraded to standard edition, but then you will need a license key.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
8 posts, 0 answered