profcab / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

TIMELINE: how to set locale? #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
in china

no matter i set what "timeZone" in the Time.createHotZoneBandInfo(...)
firefix all ways print strings like 'Oct 5'
but ie print '10月5日'

have tried :
<script src="api/timeline-api.js?locales=en" type="text/javascript"></script>
but it doesn't work...

----
thanks.
liltos

Original issue reported on code.google.com by mylil...@gmail.com on 5 Sep 2008 at 9:14

GoogleCodeExporter commented 9 years ago
The locale is normally set by the browser. The Timeline-api file sniffs it out.

In your case, that isn't working, so use the new forceLocale parameter to 
timeline-
api.js. It is in release 2.1.0 and later. It forces the locale to be a 
particular 
value.

Note that you also need the matching localization files for the locale.

Please write an email to the Google group for this type of question. This does 
not 
appear to be an error in the sw.

Thanks.

Original comment by larryklu...@gmail.com on 25 Sep 2008 at 5:21