AlbertSid / dyndatetime

Automatically exported from code.google.com/p/dyndatetime
0 stars 0 forks source link

Language packs problem - "undefined" instead of week day names and no digits #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create new html-file, with dynDateTime included
...
<script type="text/javascript" src="js/jquery-min.js"></script>
<script type="text/javascript" src="js/jquery.dynDateTime.js"></script>
<script type="text/javascript" src="js/calendar-ru.js"></script>
<link rel="stylesheet" type="text/css" href="css/calendar-system.css" />
...

2. Apply dynDateTime to element

3. Click on element in browser

What is the expected output? 
Just calendar show.

What do you see instead?
Calendar without day names and digits.
I'm test "ru" and "fr" lang.packs.

What version of the product are you using? On what operating system?
v.0.2, Windows XP

Please provide any additional information below.
SOLUTION!!!!!!!!
Addind

//First day of the week. "0" means display Sunday first, "1" means display
//Monday first, etc.
Calendar._FD = 1;

to locale files "calendar-ru.js", "calendar-fr.js" ect.

Original issue reported on code.google.com by Timofey....@gmail.com on 5 Mar 2010 at 7:00

GoogleCodeExporter commented 8 years ago
You can just add the firstDay:

jQuery("input.element").dynDateTime({
firstDay: 0
});

Original comment by siile...@gmail.com on 2 Feb 2011 at 10:42