More in this section

Forums / Developing with Sitefinity / Multilingual featers of this product

Multilingual featers of this product

4 posts, 0 answered
  1. Sasa
    Sasa avatar
    17 posts
    Registered:
    24 Aug 2007
    28 Aug 2007
    Link to this post
    Hello,

    I'm currently evaluating this product and I'm a bit confused when trying to achieve multi-language functionality in my test project.

    Is it possible to have multilingual features at content item level, not just at page level?

    If I just work with generic content items, it's simple to create multi-language site (even though it's a bit clumsy).

    What I can't seem to figure out is: how to create news items in multiple languages?
  2. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    28 Aug 2007
    Link to this post
    Hello Sasa,

    Thank you very much for choosing to evaluate Sitefinity and contacting  us.

    In order to create multilingual news items, you need to turn on the feature in your project web.config file. This is how to do it:

    1. Find the <localization> section:
    <localization defaultProvider="Sitefinity" persistenceMode="None" defaultCulture="en" cultures="en, fr ">            
    First, you should set the persistenceMode attribute to either QueryString or PathPrefix to define the way URLs will be created. 
    Then set the default site language. Note that you can only have one default language per Web site. Once you have set the default language and started creating content items, you can no longer change it.

    2. Find the <cmsEngine> section in the project web.config file and set the allowLocalization attribute to True:

           <add name="News" visible="False"
           defaultMetaField="Title"
           securityProviderName=""
           allowVersioning="True"
           allowLocalization="True"


    Now you should be able to create different language versions of the news items and display them by switching the languages on the live site. Please look at the attached images for details.
    You can find more information on multilingual support on p.141 of the User Manual.

    Please do not hesitate to contact us if you need any further assistance.

    Kind regards,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Sasa
    Sasa avatar
    17 posts
    Registered:
    24 Aug 2007
    28 Aug 2007
    Link to this post
    Thanks, that was helpful.

    How do I achieve multi-language on other properties of News (such as Title, Author, Source,...)?

    Application seems to imply that these do not support multiple languages ("(For all languages)"). Is this intended or bugged?
  4. Rebecca
    Rebecca avatar
    536 posts
    Registered:
    24 Sep 2012
    28 Aug 2007
    Link to this post
    Hi Sasa,

    Find the < metaFields> section and set the localizable attribute to true for all the fields that you want to localize.

    For example, to make the author field of the News module localizable, add the text in bold:

    <add key="News.Author" valueType="ShortText" visible="True" searchable="True" sortable="True" localizable="True" defaultValue=""/>


    Please note that the fields used for URL creation, for example Title for the News module, should not be localized:

    <add providerName="News"
    publicationDateField="Publication_Date"
    urlRewriteFormat="[Publication_Date]/[Title].aspx"

    However, if you still need to make the Title localizable, you can add a Name field and use the name to form the URLs. Set localizable="False" for the Name field and change the urlRewriteFormat to:

    <add providerName="News"
    publicationDateField="Publication_Date"
    urlRewriteFormat="[Publication_Date]/[Name].aspx"

    Hope this helps.

    Best wishes,
    Rebecca
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
4 posts, 0 answered