Page view counter

CalendarExtender and globalization.

Last post 02-22-2007 8:03 AM by pvahrenholt. 9 replies.

Sort Posts:

  • CalendarExtender and globalization.

    01-26-2007, 7:05 PM
    • Loading...
    • nvivo
    • Joined on 04-14-2006, 9:01 PM
    • Posts 14
    • Points 44

    Hi. I noticed that CalendarExtender only works in English.

    Although the Format parameter can customize the way it fills the textbox, there should be a way to display the calendar itself in other languages.

    Since Ajax Extensions has everything needed to create a calendar in any language, it could have a property "Culture" that gets the current ASP.NET culture defined in web.config, or even no property at all, and just works like the Calendar in .NET, get the current UICulture and voilá. Even the format gets the a default format depending on the language.

     
    thanks,.great job.
     

  • Re: CalendarExtender and globalization.

    01-26-2007, 10:56 PM
    • Loading...
    • teyou
    • Joined on 01-24-2007, 4:42 PM
    • Posts 2
    • Points 4

     

    Hi, Smile

    try to set the ScriptManager .EnableScriptGlobalization = True

    it Works!! Big Smile

     

    Filed under:
  • Re: CalendarExtender and globalization.

    01-26-2007, 10:56 PM
    • Loading...
    • teyou
    • Joined on 01-24-2007, 4:42 PM
    • Posts 2
    • Points 4

     

    Hi, Smile

    try to set the ScriptManager .EnableScriptGlobalization = True

    it Works!! Big Smile

     

    Filed under:
  • Re: CalendarExtender and globalization.

    01-28-2007, 6:10 AM
    • Loading...
    • nvivo
    • Joined on 04-14-2006, 9:01 PM
    • Posts 14
    • Points 44

    Hi. I tried your solution.

     
    while the day names (mon, tue, etc) are translated, the header (January, 2007) and the footer (Today: January 28, 2007) are always in english.

     

    Anything else? 

  • Re: CalendarExtender and globalization.

    01-29-2007, 3:21 AM
    • Loading...
    • djflex68
    • Joined on 01-29-2007, 8:17 AM
    • Posts 2
    • Points 2

    I have the same problem. Day names are translated, the header and the footer are not.

  • Re: CalendarExtender and globalization.

    01-29-2007, 8:06 AM
    • Loading...
    • MaritimeGirl
    • Joined on 01-29-2007, 1:03 PM
    • Posts 5
    • Points 6

    If you look at the source .js, you'll see that "Today" is a hardcoded string.

    I also need to globalize my CalendarExtender but I can't use the ScriptManager globalization, I have to customize it to be able to edit the month and day names to whatever text the user wants.  I've downloaded the .cs sourcecode in the toolkit but I'm a bit lost on how to recompile a custom version of the Extender and get it to be visible when I try to add it to my toolbox.

  • Re: CalendarExtender and globalization.

    01-29-2007, 12:44 PM
    • Loading...
    • VTP
    • Joined on 01-29-2007, 4:44 PM
    • Posts 11
    • Points 22

    set the EnableGloblisation property of script manager true

    and do the changes in calenderbehaviour.js

    In particular, you must substitute this line in file CalendarBehavior.js:

    1) this._title.innerHTML = visibleDate.format("MMMM, yyyy"); with

    this._title.innerHTML = visibleDate.localeFormat("MMMM, yyyy");

    2) dayCell.title = currentDate.format("D"); with

    dayCell.title = currentDate.localeFormat("D");

    3) this._today.innerHTML = "Today: " + todaysDate.format("MMMM d, yyyy"); with

    this._today.innerHTML = "Today: " + todaysDate.localeFormat("MMMM d, yyyy");

    Unfortunately, the string "Today" is mapped into the js file and it not parametrized.

     

    And it's all done.

    Bye, Thanks for the help to you all

  • Re: CalendarExtender and globalization.

    02-22-2007, 4:41 AM
    • Loading...
    • kallem
    • Joined on 02-22-2007, 9:36 AM
    • Posts 1
    • Points 2

    Sorry, stupid noob-question. Confused

    Where can I find the calenderbehaviour.js?
    Even in the sample app I can't find the file.

     

    Thank you. 

  • Re: CalendarExtender and globalization.

    02-22-2007, 6:59 AM
    • Loading...
    • d.th
    • Joined on 03-28-2003, 10:10 AM
    • Paris (France)
    • Posts 10
    • Points 36

    It's compiled into the dll's resources. To change it you need to donwload the Toolkit's sources.

     

    Then you either recompile or simply copy the CalendarBehaviour.js to your site and set it's path in the component's "ScriptPath" property.

     

     

    Damien Thouvenin
    ----------------------
    http://weblogs.asp.net/DamienThouvenin/
    http://www.clt-services.com/
  • Re: CalendarExtender and globalization.

    02-22-2007, 8:03 AM
    • Loading...
    • pvahrenholt
    • Joined on 02-22-2007, 7:48 AM
    • Germany
    • Posts 3
    • Points 2

    Hi there,

    I've made the changes to the calenderbehavior.js as told above. I implemented also the code from the very bottom of the thread http://forums.asp.net/thread/1550012.aspx. Cause I'm very new to this stuff can anyone give me a clue how to recompile a DLL so that the changes take effekt.

    THX in advance

Page 1 of 1 (10 items)