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

Forums / Developing with Sitefinity / Multilinguality Everywhere

Multilinguality Everywhere

9 posts, 0 answered
  1. mustafa
    mustafa avatar
    10 posts
    Registered:
    22 Jun 2009
    02 Jul 2009
    Link to this post
    Hi folks,

    For a long time i have been trying this awesome product. I am planning to create a corporate website and i need multilinguality properties wverywhere.

    As far as I investiage, multilinguality is just restricted to PAGE's. There are no options in news , lists or other modules that can enable those contents to be multilingual.

    Are there any solutions about how can we make all modules (or just news modules only) to be multilingual ?

    I need this property as soon as possible.
    Any ideas ?
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Jul 2009
    Link to this post
    Hello Mustafa,

    Thank you for using our services,

    Multilingual content can be achieved everywhere. You can localize your public controls, so that their UI is in any language you would like.

    For more information on localization I would suggest that you look at our User Manual. You can also look at the following KB article on enabling localization in Sitefinity.

    For example in order to localize your News View public control you will have to do the following:

    1) Go to ~/Sitefinity/ControlTemplates/News/App_LocalResources  directory in your project
    2) Create copies of the ListPageDetails.ascx.resx and ListPageMaster.ascx.resx and name them like this ListPageDetails.ascx.hr.resx and in ListPageMaster.ascx.hr.resx (in this way when Croatian is selected for your site the NewsView control will use those files).
    3) Edit (translate) the strings for different labels in ListPageDetails.ascx.hr.resx and ListPageMaster.ascx.hr.resx
    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 even localize the back end of your website (the CMS), for that the approach is a little bit different. You will have to replacing some .dll files of your project. We have already compiled local resources in Russian, Italian, Hungarian, Croatian, French, and Spanish. If you need to localize your CMS in a different language, we will be happy to guide you through the process.

    I hope that this information shed some light on how to localize your entire site.

    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.
  3. mustafa
    mustafa avatar
    10 posts
    Registered:
    22 Jun 2009
    02 Jul 2009
    Link to this post
    Thanks for your immadiate reply.

    But actually I mean converting the contents of news modules to other languages.

    You explained how to make news modules multilingual.

    But I need to make the contents of the news modules support multilinguality.
    (Just like the PAGE's)

    Any suggesstion ?
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Jul 2009
    Link to this post
    Hi mustafa,

    I believe I did not express myself clearly enough. The user manual contains information on how to enable modules to support multilingual content.

    For the new module as an example you have to do the following.:

    1) Open your web.config file.

    2) Find the <localization tag and turn on localization for your project. To do this you can do the following:

    <localization defaultProvider="Sitefinity" persistenceMode="PathPrefix" defaultCulture="en" cultures="bg, en"

    You have to define which languages you want to support by defining the cultures.

    3) After you have enabled localization for your project, you have to enable localization for the news module find the following in the 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 this:

    allowLocalization="true"  

    Regards,
    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. mustafa
    mustafa avatar
    10 posts
    Registered:
    22 Jun 2009
    02 Jul 2009
    Link to this post
    After a little try ,  I changed the allowLocalization property and set it true in the web.Config.

        <cmsEngine defaultProvider="Generic_Content">
          <providers>
    .....
            <add name="News" urlRewriteFormat="[Publication_Date]/[Title].aspx" urlDateTimeFormat="yy-MM-dd" urlWhitespaceChar="_" visible="False" defaultMetaField="Title" securityProviderName="" allowVersioning="True" allowLocalization="True" applicationName="/News" versioningProviderName="" commentsModeration="true" connectionStringName="GenericContentConnection" type="Telerik.News.Data.DefaultNewsProvider, Telerik.News.Data" />
           .....

    This enables news modules to support multilinguality in news modules.

    However in this time, I think I find a tiny bug ...

    After editing a news module content in one language (ex : Turkish) the TITLE is set correctly. But when I try to change the TITLE in the other language (ex : English) the title remain same and the English version of the title I just entered is not saved into the DB. You can check this by looking sf_GCMetaData  Table.

    Is this a bug and how can i fix this ?
    Where is the news module related page that we enter the data to save our contents ?
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    02 Jul 2009
    Link to this post
    Hi mustafa,

    I just noticed that by default the tittles for News items are not set to be localizable. If you enable them to be localizable you will be able to save the tittle in different languages too. Open the web.config once again, and find the <metaFields> tag. Edit the News.Tittle metafield to be localizable like this:
    <metaFields> 
            ... 
            <add key="News.Title" localizable="true" valueType="ShortText" visible="True" searchable="True" sortable="True" defaultValue=""/> 
            ... 
    </metafields> 

    Regards,
    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.
  7. mustafa
    mustafa avatar
    10 posts
    Registered:
    22 Jun 2009
    02 Jul 2009
    Link to this post
    Yes I find it also... It is already written in the user manual. Thanks for your help...
  8. mustafa
    mustafa avatar
    10 posts
    Registered:
    22 Jun 2009
    18 Jul 2009
    Link to this post
    What about multilinguality on URLS ?

    I created two version of a page. One for turkish and one page for english.
    The default one is turkish.

    When i created pages the URL of the page is saved as in turkish. But when i change the language of the site, the url still remain the same and written in turkish.

    What I want to do is to change the page URL's according to the current language in that thread automatically.

    EX : In turkish : www.domain.com/iletisim.aspx

    After pressing the english button in the language selector user control, I want the url to be like this : 
    In English: www.domain.com/contact-us.aspx

    How  can i achive this ? Any ideas ?
  9. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    20 Jul 2009
    Link to this post
    Hi Mustafa,

    Unfortunately this is not possible yet. We have it logged though, and will discuss its implementation.

    Best wishes,
    Georgi
    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.
Register for webinar
9 posts, 0 answered