Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Soeren Sprogoe 575 posts 259 karma points
    Jan 05, 2012 @ 18:08
    Soeren Sprogoe
    0

    How do I Change DatePicker language?

    When I use the DatePicker field, all dates and months seems to be displayed in English. How can I change this to Danish?

    I've tried the following:

    1. Set globalization in web.config to:
      <globalization requestEncoding="UTF-8" responseEncoding="UTF-8" culture="da-DK" uiCulture="da-DK"/>
    2. Set a hostname on the site with language: Danish.
    3. Changed the language options in Internet Explorer to "Danish [da-DK]".

    Any other suggestions on what to try?

    /SoerenS

     

     

  • Comment author was deleted

    Jan 06, 2012 @ 14:08

    It should just use the culture of the current node structure so if you setup a language and assign it...

  • Soeren Sprogoe 575 posts 259 karma points
    Jan 06, 2012 @ 14:47
    Soeren Sprogoe
    0

    Yup, that's one of the things I've done. And republished the site afterwards also, ofcourse.

    Anything else I should try out?

    Oh, and I'm running Umbraco 4.7.1

  • Comment author was deleted

    Jan 06, 2012 @ 15:00

    And dictionary items are working? WIll try to reproduce and get back to you in a couple of minutes

  • Comment author was deleted

    Jan 06, 2012 @ 15:11

    Seems to work fine if it's the inline calendar control but when you have the runat="server" attribute it uses the ajax calender and that one doesn't seem to get translated

    Will check how this can be enabled

  • Soeren Sprogoe 575 posts 259 karma points
    Jan 06, 2012 @ 15:12
    Soeren Sprogoe
    0

    Yup, dictionary items inside Contour works. Tried setting one up on the submit button, and change the language. Submit button text changed accordingly.

    You can see an example here (site just went live):

    http://www.miniferierne.dk/ophold/midtjylland/best-western-joergensens-hotel.aspx

    Click the big green button labeled "FORETAG RESERVATION" ("book stay") a bit down the page, that'll take you to the form.

  • Comment author was deleted

    Jan 06, 2012 @ 15:18

    OK found the solution, just add the following within the form with runat server attribute

    <asp:ScriptManager EnableScriptLocalization="True" EnableScriptGlobalization="True" runat="server"/>
    
  • Comment author was deleted

    Jan 06, 2012 @ 15:19

    Once that is in place it should respect the culture set with the manage hostnames dialog

  • Soeren Sprogoe 575 posts 259 karma points
    Jan 06, 2012 @ 15:26
    Soeren Sprogoe
    0

    Sweet, that worked like a charm!

    Thank you very much for the support, Tim :-)

  • Lars 66 posts 136 karma points
    Aug 01, 2016 @ 08:17
    Lars
    0

    I have the same problem. But can you please tell me where exactly do I have to put this tag. In which file and in which map? It will not work in the form.chtml file. I am using the newest version of Umbraco and Umbraco Forms!

    Thank you in advance //Lars

Please Sign in or register to post replies

Write your reply to:

Draft