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

Forums / General Discussions / Localization

Localization

4 posts, 1 answered
  1. Carl Anderson
    Carl Anderson avatar
    27 posts
    Registered:
    26 Jun 2012
    04 Nov 2010
    Link to this post
    Hi,

    I'm trying-out Sitefinity 4.0 Beta 2 and I'd like to localize the content of one of my custom user control (.ascx).
    Obviously, I could do that using standard ASP.NET localization mechanism, however I'd like to know if I could benefit somehow from Sitefinity to do that.
    If so CMS users would have a single entry point for all text resources including custom user controls text which would be great!

    Best regards,
    Carl
  2. Carl Anderson
    Carl Anderson avatar
    27 posts
    Registered:
    26 Jun 2012
    04 Nov 2010
    Link to this post
    Ok I got it :)

    First you need to add in the administration site the cultures you want to support (Administration > Settings > Resources > Cultures).

    Then, in the labels & messages (Administration > Interface Labels & Messages) you can create new localized messages in each culture you defined previously.

    When creating a new label at the very bottom of the form you can specify a Type and a Key.
    In fact, the Type corresponds to the ASP.NET resource class in which you want your resource to be added into.
    Therefore, the Type concept is the Sitefinity equivalent of the ClassKey property in Visual Studio ASP.NET Designer.
    For instance, I created a label the type set as Labels, and of the CreateYourAccount key.

    Consequently, in my hand-made user control I can use my newly created label through an expression such as:
    <asp:Literal runat="server" Text="<%$ Resources:Labels, CreateYourAccount %>"/>

    In the end it all works great and it's thanks to the default web.config provided in Sitefinity Web Application projects, as it is already configured to use Sitefinity resources:
    <globalization uiCulture="auto" culture="auto" resourceProviderFactoryType="Telerik.Sitefinity.Localization.ExtendedResourceProviderFactory, Telerik.Sitefinity"/>

    Hope this helps,
    Carl


  3. Carl Anderson
    Carl Anderson avatar
    27 posts
    Registered:
    26 Jun 2012
    04 Nov 2010
    Link to this post
    Hi,

    I'd like to localize a standard page, however, unlike Sitefinity 3.x, I don't see a top right dropdown list with all available cultures of my site, nor a place to specify the PersistenceMode and so on.
    Is it because the localization feature isn't released yet in Sitefinity 4.0 beta 2 or is it because it's not handled this way anymore?

    Regards,
    Carl
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    04 Nov 2010
    Link to this post
    Hello Carl,

    Localization feature will be available in RC. Sitefinity BETA2 does not support pages localization.

    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
    Answered
4 posts, 1 answered