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

Forums / Developing with Sitefinity / Localization - how does it work?

Localization - how does it work?

5 posts, 0 answered
  1. Fredrik
    Fredrik avatar
    5 posts
    Registered:
    18 Nov 2007
    15 Jan 2008
    Link to this post

    Dear Sitefinity team,

    I'm just starting to get a grip around the Sitefinity CMS and it's an untouched diamond - it's a great tool!. I've been looking at a few CMS-systems out there, but none so simple yet flexible as Sitefinity.

    However, I'm not getting a grip on localization. I've managed to get it working for pages and content via web.config, but I have a few questions...

    1. How to translate those small words:
    I've added 'sv' for 'Swedish' and 'en' for 'English'. Now, how do I make all those small translation working like 'Read more...', 'By:' etc. I can't find a way to translate them. Would you be so kind and explain the process, please?

    2. How to set admin tool to default language
    I've specified 'sv' as default language in web.config. However, when I log on to the admin tool, 'English' is selected in the top-right language drop-down list. Is it possible to default this drop-down to the selected default language in the web.config file? 'Swedish' is 'svenska' in the drop-down list which is correct, excpet that it would be nice to have a capital 's';-). Is it a bug or is it taken from the .Net framework?


    Thanks in advance,
    Fredrik Rodin

    PS I'm using the Standard Edition of Sitefinity in trial mode. I'm trying out all the features to make sure it will meet my needs.


  2. Andreas
    Andreas avatar
    49 posts
    Registered:
    29 Dec 2007
    15 Jan 2008
    Link to this post
    Yea, I wouldnt mind having a capital letter "s" in "Svenska" either. :)

    You make the translations in the resource files under "App_LocalResources" for each control/page. Just add a new resource file for the uiculture you need, eg. "Admin.master.sv.resx" and edit the values if you want the logout, profile labels etc in swedish instead.
  3. Fredrik
    Fredrik avatar
    5 posts
    Registered:
    18 Nov 2007
    15 Jan 2008
    Link to this post
    Thanks for the reply, Andreas!

    Ah, so the standard .NET-way then. But isn't that going to be overwritten when applying the next service release?

    /Fredrik
  4. Tihomir
    Tihomir avatar
    53 posts
    Registered:
    24 Sep 2012
    16 Jan 2008
    Link to this post
    Hello Fredrik,

    Let me start from the first question to the last:

    "1. How to translate those small words:"

    Follow Andreas' advice.

    "2. How to set admin tool to default language"

    You cannot do it. This is controlled by your browser settings. If you choose your default language in your browser to be Swedish, then you will see svenska selected in the language dropdown in admin.

    'Swedish' is 'svenska' in the drop-down list which is correct, excpet that it would be nice to have a capital 's';-). Is it a bug or is it taken from the .Net framework?

    This comes from the .NET framework and we cannot fix it, sorry for this.

    But isn't that going to be overwritten when applying the next service release?

    Your newly created language-specific resources won't be overwritten until we decide to provide Sitefinity translated in your language out-of-the-box.

    On a side note, it is always advisable to first backup your project before upgrading to a new version because occasionally there are problems during the upgrade.

    Hope this helps!

    Kind regards,
    Tihomir
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Fredrik
    Fredrik avatar
    5 posts
    Registered:
    18 Nov 2007
    16 Jan 2008
    Link to this post
    Tihomir,

    Thanks for your reply. I've followed Andreas' guidelines and it's working like a charm!

    I'm about to translate all controls.

    Thanks,
    Fredrik
Register for webinar
5 posts, 0 answered