Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] How to get the date of my Calendar in Dutch ?

Expand Messages
  • Satyam
    See: http://developer.yahoo.com/yui/calendar/#internationalization If you are going to have your site permantenly in Dutch you might want to redefine the
    Message 1 of 3 , Oct 2, 2008
    • 0 Attachment
      See:

      http://developer.yahoo.com/yui/calendar/#internationalization

      If you are going to have your site permantenly in Dutch you might want
      to redefine the Calendar._DEFAULT_CONFIG object. You should search for
      it in the source of calendar.js and make a copy into an include file of
      your own which should be loaded after loading calendar.js and before
      creating any instance of calendar. It is not a good idea to modify the
      original YUI distribution file, just put your translations where they
      would override the default ones.

      Satyam


      matthew_be wrote:
      > Hi,
      >
      > The code below shows how I format my date, but it is in English.
      > I would like to have the date in Dutch.
      > Thank you for any help !!
      >
      >
      > function yuiDateToLocaleString(dt, cal) {
      > var wStr = cal.cfg.getProperty("WEEKDAYS_LONG")[dt.getDay()];
      > var dStr = dt.getDate();
      > var mStr = cal.cfg.getProperty("MONTHS_LONG")[dt.getMonth()];
      > var yStr = dt.getFullYear();
      > return (wStr + ", " + dStr + " " + mStr + " " + yStr);
      > }
      > function dateSelect(type,args,obj) {
      > var selected = args[0];
      > //$('#hiddenStartDate').val( selected[0][0] + '-' + selected[0][1] +
      > '-' + selected[0][2] );
      > var selDate = this.toDate(selected[0]);
      > //$('#dateText').html(yuiDateToLocaleString(selDate, this));
      > this.hide();
      > };
      >
      >
      >
      > ------------------------------------
      >
      > Yahoo! Groups Links
      >
      >
      >
      > ------------------------------------------------------------------------
      >
      >
      > No virus found in this incoming message.
      > Checked by AVG - http://www.avg.com
      > Version: 8.0.173 / Virus Database: 270.7.5/1702 - Release Date: 01/10/2008 9:05
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.