Sarawut Ninsawat wrote:
> Hi all,
>
> I am a new user for smile-widgets.
>
> I am implementing a system for historical site in South east Asia, which
> has a difference year system from UTC and western people.
>
> Mostly is based on Buddhist calendar. Normally just plus 543 to UTC'
> year such as this year is 2009 + 543 =2552
> (http://en.wikipedia.org/wiki/Buddhist_calendar)
>
> Can anyone advise me how I can adjust it to support Buddhist calender
> like locale support ?
>
> Best regards
>
Sarawut,
The date/time labels on the timeline are generated using the code in
this file
http://api.simile-widgets.org/timeline/2.3.1/scripts/labellers.js
So you would need to make a copy of the function
Timeline.GregorianDateLabeller.prototype.defaultLabelInterval
in it and include it after including timeline-api.js, so that your copy
overrides the default implementation. Then change your copy to do what
you want. Namely, in the last 4 cases, you would want
var y = date.getUTCFullYear() + 543;
David
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---