Merge lp:~openerp-dev/openerp-web/trunk-ui-to-bootstrap-datetimepicker into lp:openerp-web
- trunk-ui-to-bootstrap-datetimepicker
- Merge into trunk
Status: | Work in progress |
---|---|
Proposed branch: | lp:~openerp-dev/openerp-web/trunk-ui-to-bootstrap-datetimepicker |
Merge into: | lp:openerp-web |
Diff against target: |
8402 lines (+6520/-1419) 74 files modified
addons/web/__openerp__.py (+4/-2) addons/web/static/lib/bootstrap-datetimepicker/README.md (+127/-0) addons/web/static/lib/bootstrap-datetimepicker/moment/moment.js (+6/-0) addons/web/static/lib/bootstrap-datetimepicker/src/css/bootstrap-datetimepicker.css (+184/-0) addons/web/static/lib/bootstrap-datetimepicker/src/css/bootstrap-datetimepicker.min.css (+8/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js (+1111/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.min.js (+28/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ar-ma.js (+56/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ar.js (+56/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.bg.js (+86/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.br.js (+107/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.bs.js (+139/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ca.js (+66/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.cs.js (+155/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.cv.js (+59/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.da.js (+56/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.de.js (+71/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.el.js (+79/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-au.js (+62/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-ca.js (+59/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-gb.js (+63/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.eo.js (+65/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.es.js (+66/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.et.js (+60/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.eu.js (+60/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fa.js (+97/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fi.js (+103/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fr-ca.js (+54/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fr.js (+58/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.gl.js (+71/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.he.js (+77/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hi.js (+105/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hr.js (+140/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hu.js (+98/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.id.js (+67/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.is.js (+124/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.it.js (+59/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ja.js (+58/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ka.js (+108/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ko.js (+56/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.lt.js (+118/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.lv.js (+77/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ml.js (+64/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.mr.js (+104/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ms-my.js (+66/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.nb.js (+57/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ne.js (+105/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.nl.js (+67/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.nn.js (+56/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.pl.js (+98/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.pt-BR.js (+56/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.pt.js (+60/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ro.js (+56/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ru.js (+163/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.sk.js (+156/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.sl.js (+144/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.sq.js (+57/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.sv.js (+63/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.th.js (+58/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.tr.js (+93/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.tzm-la.js (+55/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.tzm.js (+55/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.uk.js (+157/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.uz.js (+55/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.vn.js (+62/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.zh-CN.js (+108/-0) addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.zh-TW.js (+84/-0) addons/web/static/lib/jquery.ui.timepicker/css/jquery-ui-timepicker-addon.css (+0/-6) addons/web/static/lib/jquery.ui.timepicker/js/jquery-ui-timepicker-addon.js (+0/-1326) addons/web/static/src/css/base.css (+19/-1) addons/web/static/src/css/base.sass (+13/-0) addons/web/static/src/js/formats.js (+49/-0) addons/web/static/src/js/view_form.js (+29/-76) addons/web/static/src/xml/base.xml (+8/-8) |
To merge this branch: | bzr merge lp:~openerp-dev/openerp-web/trunk-ui-to-bootstrap-datetimepicker |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP R&D Web Team | Pending | ||
Review via email: mp+206502@code.launchpad.net |
Commit message
Description of the change
Unmerged revisions
- 3922. By Paramjit Singh Sahota(OpenERP)
-
[MERGE] Merged lp:openerp-web
- 3921. By Paramjit Singh Sahota(OpenERP)
-
For right now fixed the issue by hacking the lib.
- 3920. By Paramjit Singh Sahota(OpenERP)
-
Uncommit the last change of revno 3919 which breaks the datetimepicker functionality
- 3919. By Paramjit Singh Sahota(OpenERP)
-
[FIX] Right now fixed the issue from library but will be do it properly soon when the datejs lib will completely be removed.
- 3918. By Paramjit Singh Sahota(OpenERP)
-
[MERGE] Merged lp:openerp-web.
- 3917. By Paramjit Singh Sahota(OpenERP)
-
[FIX] After changing the date time format in languages its not loading the new translation untill the server restarts.
- 3916. By Paramjit Singh Sahota(OpenERP)
-
[IMP] Added code for converting python.strftime format into moment.js format.
- 3915. By Paramjit Singh Sahota(OpenERP)
-
[LIB] Updated the lib with one feature of displaying calendarWeeks and proposal of this feature to add in the library is sent.
- 3914. By Paramjit Singh Sahota(OpenERP)
-
[MERGE] Merged lp:openerp-web
- 3913. By Paramjit Singh Sahota(OpenERP)
-
[IMP] Improved code according to the new improvements in the library.
The seconds are now visible.
Preview Diff
1 | === modified file 'addons/web/__openerp__.py' | |||
2 | --- addons/web/__openerp__.py 2014-01-23 15:19:34 +0000 | |||
3 | +++ addons/web/__openerp__.py 2014-02-14 15:04:13 +0000 | |||
4 | @@ -32,7 +32,6 @@ | |||
5 | 32 | "static/lib/jquery.hotkeys/jquery.hotkeys.js", | 32 | "static/lib/jquery.hotkeys/jquery.hotkeys.js", |
6 | 33 | "static/lib/jquery.placeholder/jquery.placeholder.js", | 33 | "static/lib/jquery.placeholder/jquery.placeholder.js", |
7 | 34 | "static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js", | 34 | "static/lib/jquery.ui/js/jquery-ui-1.9.1.custom.js", |
8 | 35 | "static/lib/jquery.ui.timepicker/js/jquery-ui-timepicker-addon.js", | ||
9 | 36 | "static/lib/jquery.ui.notify/js/jquery.notify.js", | 35 | "static/lib/jquery.ui.notify/js/jquery.notify.js", |
10 | 37 | "static/lib/jquery.deferred-queue/jquery.deferred-queue.js", | 36 | "static/lib/jquery.deferred-queue/jquery.deferred-queue.js", |
11 | 38 | "static/lib/jquery.scrollTo/jquery.scrollTo-min.js", | 37 | "static/lib/jquery.scrollTo/jquery.scrollTo-min.js", |
12 | @@ -40,6 +39,9 @@ | |||
13 | 40 | "static/lib/jquery.textext/jquery.textext.js", | 39 | "static/lib/jquery.textext/jquery.textext.js", |
14 | 41 | "static/lib/jquery.timeago/jquery.timeago.js", | 40 | "static/lib/jquery.timeago/jquery.timeago.js", |
15 | 42 | "static/lib/bootstrap/js/bootstrap.js", | 41 | "static/lib/bootstrap/js/bootstrap.js", |
16 | 42 | "static/lib/bootstrap-datetimepicker/moment/moment.js", | ||
17 | 43 | "static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js", | ||
18 | 44 | "static/lib/bootstrap-datetimepicker/src/js/locales/*.js", | ||
19 | 43 | "static/lib/qweb/qweb2.js", | 45 | "static/lib/qweb/qweb2.js", |
20 | 44 | "static/lib/underscore/underscore.js", | 46 | "static/lib/underscore/underscore.js", |
21 | 45 | "static/lib/underscore.string/lib/underscore.string.js", | 47 | "static/lib/underscore.string/lib/underscore.string.js", |
22 | @@ -65,7 +67,7 @@ | |||
23 | 65 | ], | 67 | ], |
24 | 66 | 'css' : [ | 68 | 'css' : [ |
25 | 67 | "static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css", | 69 | "static/lib/jquery.ui.bootstrap/css/custom-theme/jquery-ui-1.9.0.custom.css", |
27 | 68 | "static/lib/jquery.ui.timepicker/css/jquery-ui-timepicker-addon.css", | 70 | "static/lib/bootstrap-datetimepicker/src/css/bootstrap-datetimepicker.css", |
28 | 69 | "static/lib/jquery.ui.notify/css/ui.notify.css", | 71 | "static/lib/jquery.ui.notify/css/ui.notify.css", |
29 | 70 | "static/lib/jquery.tipsy/tipsy.css", | 72 | "static/lib/jquery.tipsy/tipsy.css", |
30 | 71 | "static/lib/jquery.textext/jquery.textext.css", | 73 | "static/lib/jquery.textext/jquery.textext.css", |
31 | 72 | 74 | ||
32 | === added directory 'addons/web/static/lib/bootstrap-datetimepicker' | |||
33 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/README.md' | |||
34 | --- addons/web/static/lib/bootstrap-datetimepicker/README.md 1970-01-01 00:00:00 +0000 | |||
35 | +++ addons/web/static/lib/bootstrap-datetimepicker/README.md 2014-02-14 15:04:13 +0000 | |||
36 | @@ -0,0 +1,127 @@ | |||
37 | 1 | # Bootstrap v3 datetimepicker widget | ||
38 | 2 | |||
39 | 3 | ![DateTimePicker](http://i.imgur.com/nfnvh5g.png) | ||
40 | 4 | |||
41 | 5 | ### [⇢ View the manual and demos](http://eonasdan.github.io/bootstrap-datetimepicker/) | ||
42 | 6 | |||
43 | 7 | ##Where do you use this? | ||
44 | 8 | I'd love to know if your public site is using this plugin and list your logo on the documentation site. Please email me `eonasdan at outlook dot com` | ||
45 | 9 | |||
46 | 10 | ## Quick installation using | ||
47 | 11 | |||
48 | 12 | ## [bower](http://bower.io): | ||
49 | 13 | |||
50 | 14 | Run the following command: | ||
51 | 15 | ```` | ||
52 | 16 | bower install eonasdan-bootstrap-datetimepicker#latest --save | ||
53 | 17 | ```` | ||
54 | 18 | ## [Nuget](https://www.nuget.org/packages/Bootstrap.v3.Datetimepicker/): | ||
55 | 19 | ```` | ||
56 | 20 | PM> Install-Package Bootstrap.v3.Datetimepicker | ||
57 | 21 | ```` | ||
58 | 22 | |||
59 | 23 | ## See the [Change Log](#change-log) for important changes and updates | ||
60 | 24 | |||
61 | 25 | Include necessary scripts and styles: | ||
62 | 26 | ````html | ||
63 | 27 | <head> | ||
64 | 28 | <!-- ... --> | ||
65 | 29 | <script type="text/javascript" src="/bower_components/jquery/jquery.min.js"></script> | ||
66 | 30 | <script type="text/javascript" src="/bower_components/moment/min/moment.min.js"></script> | ||
67 | 31 | <script type="text/javascript" src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script> | ||
68 | 32 | <script type="text/javascript" src="/bower_components/eonasdan-bootstrap-datetimepicker/build/bootstrap-datetimepicker.min.js"></script> | ||
69 | 33 | <link rel="stylesheet" href="/bower_components/bootstrap/dist/css/boostrap.min.css" /> | ||
70 | 34 | <link rel="stylesheet" href="/bower_components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" /> | ||
71 | 35 | </head> | ||
72 | 36 | ```` | ||
73 | 37 | |||
74 | 38 | Done! [Now take a look at the manual](http://eonasdan.github.io/bootstrap-datetimepicker/) for examples and available options. | ||
75 | 39 | |||
76 | 40 | |||
77 | 41 | |||
78 | 42 | ## Manual installation | ||
79 | 43 | |||
80 | 44 | ### [Moment.js](https://github.com/moment/moment) | ||
81 | 45 | Datetimepicker requires moment.js. This allows for better support for various date formats and locales. See [documentation](http://eonasdan.github.io/bootstrap-datetimepicker/) for examples. Check [Momentjs' homepage](http://momentjs.com/) for documentation on date formats. If you can't use moment.js there's still older version of datetimewidget [available here](https://github.com/Eonasdan/bootstrap-datetimepicker/tree/version1). | ||
82 | 46 | |||
83 | 47 | ````html | ||
84 | 48 | <script type="text/javascript" src="/path/to/moment.js"></script> | ||
85 | 49 | ```` | ||
86 | 50 | |||
87 | 51 | ### Bootstrap 3 collapse and transition plugins | ||
88 | 52 | Make sure to include *.JS files for plugins [collapse](http://getbootstrap.com/javascript/#collapse) and [transitions](http://getbootstrap.com/javascript/#transitions). They are included with [bootstrap in js/ directory](https://github.com/twbs/bootstrap/tree/master/js) | ||
89 | 53 | |||
90 | 54 | ````html | ||
91 | 55 | <script type="text/javascript" src="/path/to/bootstrap/js/transition.js"></script> | ||
92 | 56 | <script type="text/javascript" src="/path/to/bootstrap/js/collapse.js"></script> | ||
93 | 57 | ```` | ||
94 | 58 | |||
95 | 59 | Alternatively you could include the whole bundle of bootstrap plugins from [bootstrap.js](https://github.com/twbs/bootstrap/tree/master/dist/js) | ||
96 | 60 | |||
97 | 61 | ````html | ||
98 | 62 | <script type="text/javascript" src="/path/to/bootstrap/dist/bootstrap.min.js"></script> | ||
99 | 63 | ```` | ||
100 | 64 | |||
101 | 65 | |||
102 | 66 | ### CSS styles | ||
103 | 67 | |||
104 | 68 | #### Using LESS | ||
105 | 69 | ````css | ||
106 | 70 | @import "/path/to/bootstrap/less/variables"; | ||
107 | 71 | @import "/path/to/bootstrap-datetimepicker/src/less/bootstrap-datetimepicker"; | ||
108 | 72 | |||
109 | 73 | // [...] your custom styles and variables | ||
110 | 74 | ```` | ||
111 | 75 | |||
112 | 76 | #### Using CSS (default color palette) | ||
113 | 77 | ````html | ||
114 | 78 | <link rel="stylesheet" href="/path/to/bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" /> | ||
115 | 79 | ```` | ||
116 | 80 | |||
117 | 81 | ### Main JS file | ||
118 | 82 | |||
119 | 83 | Finally include the main javascript file. | ||
120 | 84 | ````html | ||
121 | 85 | <script type="text/javascript" src="/path/to/bootstrap-datetimepicker.min.js"></script> | ||
122 | 86 | ```` | ||
123 | 87 | |||
124 | 88 | # Change Log | ||
125 | 89 | |||
126 | 90 | ## New features (2.1.20)! | ||
127 | 91 | * Fix for #83: Changes to the picker should fire native `change` event for knockout and the like as well as `change.dp` which contains the old date and the new date | ||
128 | 92 | * Fix for #78: Script has been update for breaking changes in Moment 2.4.0 | ||
129 | 93 | * Fix for #73: IE8 should be working now | ||
130 | 94 | |||
131 | 95 | * Enhancement for #79: `minuteStepping` option takes a number (default is 1). Changing the minutes in the time picker will step by this number. | ||
132 | 96 | * Enhancement for #74 and #65: `useMinutes` and `useSeconds` are now options. Disabling seconds will hide the seconds spinner. Disabling minutes will display `00` and hide the arrows | ||
133 | 97 | * Enhancement for #67: Picker will now attempt to convert all `data-OPTION` into its appropriate option | ||
134 | 98 | |||
135 | 99 | ## New features (2.1.11)! | ||
136 | 100 | * Fix for #51, #60 | ||
137 | 101 | * Fix for #52: Picker has its own `moment` object since moment 2.4.0 has removed global reference | ||
138 | 102 | * Fix for #57: New option for `useStrict`. When validating dates in `update` and `change`, the picker can use a stricter formatting validation | ||
139 | 103 | * Fix for #61: Picker should now properly take formatted date. Should also have correct start of the week for locales. | ||
140 | 104 | * Fix for #62: Default format will properly validate time picker only. | ||
141 | 105 | |||
142 | 106 | ## New features (2.1.5)! | ||
143 | 107 | * Custom icons, such as Font Awesome, are now supported. (#49) See [Example#9](http://eonasdan.github.io/bootstrap-datetimepicker/#example9) | ||
144 | 108 | * If more then one `input-group-addon` is present use `datepickerbutton` to identify where the picker should popup from. (#48) | ||
145 | 109 | * New Event: `error.dp`. Fires when Moment cannot parse the date or when the timepicker cannot change because of a `disabledDates` setting. Returns a Moment date object. The specific error can be found be using `invalidAt()`. For more information see [Moment's docs](http://momentjs.com/docs/#/parsing/is-valid/) | ||
146 | 110 | * Fix for #42, plugin will now check for `A` or `a` in the format string to determine if the AM/PM selector should display. | ||
147 | 111 | * Fix for #45, fixed null/empty and invalid dates | ||
148 | 112 | * Fix for #46, fixed active date highlighting | ||
149 | 113 | * Fix for #47, `change.dp` event to also include the previous date. | ||
150 | 114 | |||
151 | 115 | ####New features (2.0.1)! | ||
152 | 116 | * New event `error.dp` fires when plugin cannot parse date or when increase/descreasing hours/minutes to a disabled date. See [Example#7](http://eonasdan.github.io/bootstrap-datetimepicker/#example7) | ||
153 | 117 | * Minor fixes | ||
154 | 118 | |||
155 | 119 | ####New features (2.0.0)! | ||
156 | 120 | * `disabledDates` is now an option to set the disabled dates. It accepts date objects like `new Date("November 12, 2013 00:00:00")` and `12/25/2013' and `moment` date objects. See [Example#7](http://eonasdan.github.io/bootstrap-datetimepicker/#example7) for usage. | ||
157 | 121 | * Events are easier to use; see [Example#8](http://eonasdan.github.io/bootstrap-datetimepicker/#example8) | ||
158 | 122 | |||
159 | 123 | ###Removed features | ||
160 | 124 | * pickSeconds | ||
161 | 125 | * pick12HourFormat | ||
162 | 126 | * maskInput | ||
163 | 127 | |||
164 | 0 | 128 | ||
165 | === added directory 'addons/web/static/lib/bootstrap-datetimepicker/moment' | |||
166 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/moment/moment.js' | |||
167 | --- addons/web/static/lib/bootstrap-datetimepicker/moment/moment.js 1970-01-01 00:00:00 +0000 | |||
168 | +++ addons/web/static/lib/bootstrap-datetimepicker/moment/moment.js 2014-02-14 15:04:13 +0000 | |||
169 | @@ -0,0 +1,6 @@ | |||
170 | 1 | //! moment.js | ||
171 | 2 | //! version : 2.5.0 | ||
172 | 3 | //! authors : Tim Wood, Iskren Chernev, Moment.js contributors | ||
173 | 4 | //! license : MIT | ||
174 | 5 | //! momentjs.com | ||
175 | 6 | (function(a){function b(a,b){return function(c){return i(a.call(this,c),b)}}function c(a,b){return function(c){return this.lang().ordinal(a.call(this,c),b)}}function d(){}function e(a){u(a),g(this,a)}function f(a){var b=o(a),c=b.year||0,d=b.month||0,e=b.week||0,f=b.day||0,g=b.hour||0,h=b.minute||0,i=b.second||0,j=b.millisecond||0;this._milliseconds=+j+1e3*i+6e4*h+36e5*g,this._days=+f+7*e,this._months=+d+12*c,this._data={},this._bubble()}function g(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return b.hasOwnProperty("toString")&&(a.toString=b.toString),b.hasOwnProperty("valueOf")&&(a.valueOf=b.valueOf),a}function h(a){return 0>a?Math.ceil(a):Math.floor(a)}function i(a,b,c){for(var d=Math.abs(a)+"",e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function j(a,b,c,d){var e,f,g=b._milliseconds,h=b._days,i=b._months;g&&a._d.setTime(+a._d+g*c),(h||i)&&(e=a.minute(),f=a.hour()),h&&a.date(a.date()+h*c),i&&a.month(a.month()+i*c),g&&!d&&cb.updateOffset(a),(h||i)&&(a.minute(e),a.hour(f))}function k(a){return"[object Array]"===Object.prototype.toString.call(a)}function l(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function m(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&q(a[d])!==q(b[d]))&&g++;return g+f}function n(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=Qb[a]||Rb[b]||b}return a}function o(a){var b,c,d={};for(c in a)a.hasOwnProperty(c)&&(b=n(c),b&&(d[b]=a[c]));return d}function p(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}cb[b]=function(e,f){var g,h,i=cb.fn._lang[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=cb().utc().set(d,a);return i.call(cb.fn._lang,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function q(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function r(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function s(a){return t(a)?366:365}function t(a){return a%4===0&&a%100!==0||a%400===0}function u(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[ib]<0||a._a[ib]>11?ib:a._a[jb]<1||a._a[jb]>r(a._a[hb],a._a[ib])?jb:a._a[kb]<0||a._a[kb]>23?kb:a._a[lb]<0||a._a[lb]>59?lb:a._a[mb]<0||a._a[mb]>59?mb:a._a[nb]<0||a._a[nb]>999?nb:-1,a._pf._overflowDayOfYear&&(hb>b||b>jb)&&(b=jb),a._pf.overflow=b)}function v(a){a._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function w(a){return null==a._isValid&&(a._isValid=!isNaN(a._d.getTime())&&a._pf.overflow<0&&!a._pf.empty&&!a._pf.invalidMonth&&!a._pf.nullInput&&!a._pf.invalidFormat&&!a._pf.userInvalidated,a._strict&&(a._isValid=a._isValid&&0===a._pf.charsLeftOver&&0===a._pf.unusedTokens.length)),a._isValid}function x(a){return a?a.toLowerCase().replace("_","-"):a}function y(a,b){return b._isUTC?cb(a).zone(b._offset||0):cb(a).local()}function z(a,b){return b.abbr=a,ob[a]||(ob[a]=new d),ob[a].set(b),ob[a]}function A(a){delete ob[a]}function B(a){var b,c,d,e,f=0,g=function(a){if(!ob[a]&&pb)try{require("./lang/"+a)}catch(b){}return ob[a]};if(!a)return cb.fn._lang;if(!k(a)){if(c=g(a))return c;a=[a]}for(;f<a.length;){for(e=x(a[f]).split("-"),b=e.length,d=x(a[f+1]),d=d?d.split("-"):null;b>0;){if(c=g(e.slice(0,b).join("-")))return c;if(d&&d.length>=b&&m(e,d,!0)>=b-1)break;b--}f++}return cb.fn._lang}function C(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function D(a){var b,c,d=a.match(tb);for(b=0,c=d.length;c>b;b++)d[b]=Vb[d[b]]?Vb[d[b]]:C(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function E(a,b){return a.isValid()?(b=F(b,a.lang()),Sb[b]||(Sb[b]=D(b)),Sb[b](a)):a.lang().invalidDate()}function F(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(ub.lastIndex=0;d>=0&&ub.test(a);)a=a.replace(ub,c),ub.lastIndex=0,d-=1;return a}function G(a,b){var c,d=b._strict;switch(a){case"DDDD":return Gb;case"YYYY":case"GGGG":case"gggg":return d?Hb:xb;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?Ib:yb;case"S":if(d)return Eb;case"SS":if(d)return Fb;case"SSS":case"DDD":return d?Gb:wb;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Ab;case"a":case"A":return B(b._l)._meridiemParse;case"X":return Db;case"Z":case"ZZ":return Bb;case"T":return Cb;case"SSSS":return zb;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?Fb:vb;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return d?Eb:vb;default:return c=new RegExp(O(N(a.replace("\\","")),"i"))}}function H(a){a=a||"";var b=a.match(Bb)||[],c=b[b.length-1]||[],d=(c+"").match(Nb)||["-",0,0],e=+(60*d[1])+q(d[2]);return"+"===d[0]?-e:e}function I(a,b,c){var d,e=c._a;switch(a){case"M":case"MM":null!=b&&(e[ib]=q(b)-1);break;case"MMM":case"MMMM":d=B(c._l).monthsParse(b),null!=d?e[ib]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[jb]=q(b));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=q(b));break;case"YY":e[hb]=q(b)+(q(b)>68?1900:2e3);break;case"YYYY":case"YYYYY":case"YYYYYY":e[hb]=q(b);break;case"a":case"A":c._isPm=B(c._l).isPM(b);break;case"H":case"HH":case"h":case"hh":e[kb]=q(b);break;case"m":case"mm":e[lb]=q(b);break;case"s":case"ss":e[mb]=q(b);break;case"S":case"SS":case"SSS":case"SSSS":e[nb]=q(1e3*("0."+b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=H(b);break;case"w":case"ww":case"W":case"WW":case"d":case"dd":case"ddd":case"dddd":case"e":case"E":a=a.substr(0,1);case"gg":case"gggg":case"GG":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=b)}}function J(a){var b,c,d,e,f,g,h,i,j,k,l=[];if(!a._d){for(d=L(a),a._w&&null==a._a[jb]&&null==a._a[ib]&&(f=function(b){var c=parseInt(b,10);return b?b.length<3?c>68?1900+c:2e3+c:c:null==a._a[hb]?cb().weekYear():a._a[hb]},g=a._w,null!=g.GG||null!=g.W||null!=g.E?h=Y(f(g.GG),g.W||1,g.E,4,1):(i=B(a._l),j=null!=g.d?U(g.d,i):null!=g.e?parseInt(g.e,10)+i._week.dow:0,k=parseInt(g.w,10)||1,null!=g.d&&j<i._week.dow&&k++,h=Y(f(g.gg),k,j,i._week.doy,i._week.dow)),a._a[hb]=h.year,a._dayOfYear=h.dayOfYear),a._dayOfYear&&(e=null==a._a[hb]?d[hb]:a._a[hb],a._dayOfYear>s(e)&&(a._pf._overflowDayOfYear=!0),c=T(e,0,a._dayOfYear),a._a[ib]=c.getUTCMonth(),a._a[jb]=c.getUTCDate()),b=0;3>b&&null==a._a[b];++b)a._a[b]=l[b]=d[b];for(;7>b;b++)a._a[b]=l[b]=null==a._a[b]?2===b?1:0:a._a[b];l[kb]+=q((a._tzm||0)/60),l[lb]+=q((a._tzm||0)%60),a._d=(a._useUTC?T:S).apply(null,l)}}function K(a){var b;a._d||(b=o(a._i),a._a=[b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond],J(a))}function L(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function M(a){a._a=[],a._pf.empty=!0;var b,c,d,e,f,g=B(a._l),h=""+a._i,i=h.length,j=0;for(d=F(a._f,g).match(tb)||[],b=0;b<d.length;b++)e=d[b],c=(h.match(G(e,a))||[])[0],c&&(f=h.substr(0,h.indexOf(c)),f.length>0&&a._pf.unusedInput.push(f),h=h.slice(h.indexOf(c)+c.length),j+=c.length),Vb[e]?(c?a._pf.empty=!1:a._pf.unusedTokens.push(e),I(e,c,a)):a._strict&&!c&&a._pf.unusedTokens.push(e);a._pf.charsLeftOver=i-j,h.length>0&&a._pf.unusedInput.push(h),a._isPm&&a._a[kb]<12&&(a._a[kb]+=12),a._isPm===!1&&12===a._a[kb]&&(a._a[kb]=0),J(a),u(a)}function N(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function O(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function P(a){var b,c,d,e,f;if(0===a._f.length)return a._pf.invalidFormat=!0,a._d=new Date(0/0),void 0;for(e=0;e<a._f.length;e++)f=0,b=g({},a),v(b),b._f=a._f[e],M(b),w(b)&&(f+=b._pf.charsLeftOver,f+=10*b._pf.unusedTokens.length,b._pf.score=f,(null==d||d>f)&&(d=f,c=b));g(a,c||b)}function Q(a){var b,c=a._i,d=Jb.exec(c);if(d){for(a._pf.iso=!0,b=4;b>0;b--)if(d[b]){a._f=Lb[b-1]+(d[6]||" ");break}for(b=0;4>b;b++)if(Mb[b][1].exec(c)){a._f+=Mb[b][0];break}c.match(Bb)&&(a._f+="Z"),M(a)}else a._d=new Date(c)}function R(b){var c=b._i,d=qb.exec(c);c===a?b._d=new Date:d?b._d=new Date(+d[1]):"string"==typeof c?Q(b):k(c)?(b._a=c.slice(0),J(b)):l(c)?b._d=new Date(+c):"object"==typeof c?K(b):b._d=new Date(c)}function S(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function T(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function U(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function V(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function W(a,b,c){var d=gb(Math.abs(a)/1e3),e=gb(d/60),f=gb(e/60),g=gb(f/24),h=gb(g/365),i=45>d&&["s",d]||1===e&&["m"]||45>e&&["mm",e]||1===f&&["h"]||22>f&&["hh",f]||1===g&&["d"]||25>=g&&["dd",g]||45>=g&&["M"]||345>g&&["MM",gb(g/30)]||1===h&&["y"]||["yy",h];return i[2]=b,i[3]=a>0,i[4]=c,V.apply({},i)}function X(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=cb(a).add("d",f),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function Y(a,b,c,d,e){var f,g,h=new Date(i(a,6,!0)+"-01-01").getUTCDay();return c=null!=c?c:e,f=e-h+(h>d?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:s(a-1)+g}}function Z(a){var b=a._i,c=a._f;return"undefined"==typeof a._pf&&v(a),null===b?cb.invalid({nullInput:!0}):("string"==typeof b&&(a._i=b=B().preparse(b)),cb.isMoment(b)?(a=g({},b),a._d=new Date(+b._d)):c?k(c)?P(a):M(a):R(a),new e(a))}function $(a,b){cb.fn[a]=cb.fn[a+"s"]=function(a){var c=this._isUTC?"UTC":"";return null!=a?(this._d["set"+c+b](a),cb.updateOffset(this),this):this._d["get"+c+b]()}}function _(a){cb.duration.fn[a]=function(){return this._data[a]}}function ab(a,b){cb.duration.fn["as"+a]=function(){return+this/b}}function bb(a){var b=!1,c=cb;"undefined"==typeof ender&&(a?(fb.moment=function(){return!b&&console&&console.warn&&(b=!0,console.warn("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.")),c.apply(null,arguments)},g(fb.moment,c)):fb.moment=cb)}for(var cb,db,eb="2.5.0",fb=this,gb=Math.round,hb=0,ib=1,jb=2,kb=3,lb=4,mb=5,nb=6,ob={},pb="undefined"!=typeof module&&module.exports&&"undefined"!=typeof require,qb=/^\/?Date\((\-?\d+)/i,rb=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,sb=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,tb=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,ub=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,vb=/\d\d?/,wb=/\d{1,3}/,xb=/\d{1,4}/,yb=/[+\-]?\d{1,6}/,zb=/\d+/,Ab=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Bb=/Z|[\+\-]\d\d:?\d\d/gi,Cb=/T/i,Db=/[\+\-]?\d+(\.\d{1,3})?/,Eb=/\d/,Fb=/\d\d/,Gb=/\d{3}/,Hb=/\d{4}/,Ib=/[+\-]?\d{6}/,Jb=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Kb="YYYY-MM-DDTHH:mm:ssZ",Lb=["YYYY-MM-DD","GGGG-[W]WW","GGGG-[W]WW-E","YYYY-DDD"],Mb=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d{1,3}/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Nb=/([\+\-]|\d\d)/gi,Ob="Date|Hours|Minutes|Seconds|Milliseconds".split("|"),Pb={Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6},Qb={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},Rb={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Sb={},Tb="DDD w W M D d".split(" "),Ub="M D H h m s w W".split(" "),Vb={M:function(){return this.month()+1},MMM:function(a){return this.lang().monthsShort(this,a)},MMMM:function(a){return this.lang().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.lang().weekdaysMin(this,a)},ddd:function(a){return this.lang().weekdaysShort(this,a)},dddd:function(a){return this.lang().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return i(this.year()%100,2)},YYYY:function(){return i(this.year(),4)},YYYYY:function(){return i(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+i(Math.abs(a),6)},gg:function(){return i(this.weekYear()%100,2)},gggg:function(){return this.weekYear()},ggggg:function(){return i(this.weekYear(),5)},GG:function(){return i(this.isoWeekYear()%100,2)},GGGG:function(){return this.isoWeekYear()},GGGGG:function(){return i(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return q(this.milliseconds()/100)},SS:function(){return i(q(this.milliseconds()/10),2)},SSS:function(){return i(this.milliseconds(),3)},SSSS:function(){return i(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+i(q(a/60),2)+":"+i(q(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+i(q(a/60),2)+i(q(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},Wb=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Tb.length;)db=Tb.pop(),Vb[db+"o"]=c(Vb[db],db);for(;Ub.length;)db=Ub.pop(),Vb[db+db]=b(Vb[db],2);for(Vb.DDDD=b(Vb.DDD,3),g(d.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a){var b,c,d;for(this._monthsParse||(this._monthsParse=[]),b=0;12>b;b++)if(this._monthsParse[b]||(c=cb.utc([2e3,b]),d="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[b]=new RegExp(d.replace(".",""),"i")),this._monthsParse[b].test(a))return b},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=cb([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b){var c=this._calendar[a];return"function"==typeof c?c.apply(b):c},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",preparse:function(a){return a},postformat:function(a){return a},week:function(a){return X(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),cb=function(b,c,d,e){return"boolean"==typeof d&&(e=d,d=a),Z({_i:b,_f:c,_l:d,_strict:e,_isUTC:!1})},cb.utc=function(b,c,d,e){var f;return"boolean"==typeof d&&(e=d,d=a),f=Z({_useUTC:!0,_isUTC:!0,_l:d,_i:b,_f:c,_strict:e}).utc()},cb.unix=function(a){return cb(1e3*a)},cb.duration=function(a,b){var c,d,e,g=a,h=null;return cb.isDuration(a)?g={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(g={},b?g[b]=a:g.milliseconds=a):(h=rb.exec(a))?(c="-"===h[1]?-1:1,g={y:0,d:q(h[jb])*c,h:q(h[kb])*c,m:q(h[lb])*c,s:q(h[mb])*c,ms:q(h[nb])*c}):(h=sb.exec(a))&&(c="-"===h[1]?-1:1,e=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*c},g={y:e(h[2]),M:e(h[3]),d:e(h[4]),h:e(h[5]),m:e(h[6]),s:e(h[7]),w:e(h[8])}),d=new f(g),cb.isDuration(a)&&a.hasOwnProperty("_lang")&&(d._lang=a._lang),d},cb.version=eb,cb.defaultFormat=Kb,cb.updateOffset=function(){},cb.lang=function(a,b){var c;return a?(b?z(x(a),b):null===b?(A(a),a="en"):ob[a]||B(a),c=cb.duration.fn._lang=cb.fn._lang=B(a),c._abbr):cb.fn._lang._abbr},cb.langData=function(a){return a&&a._lang&&a._lang._abbr&&(a=a._lang._abbr),B(a)},cb.isMoment=function(a){return a instanceof e},cb.isDuration=function(a){return a instanceof f},db=Wb.length-1;db>=0;--db)p(Wb[db]);for(cb.normalizeUnits=function(a){return n(a)},cb.invalid=function(a){var b=cb.utc(0/0);return null!=a?g(b._pf,a):b._pf.userInvalidated=!0,b},cb.parseZone=function(a){return cb(a).parseZone()},g(cb.fn=e.prototype,{clone:function(){return cb(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=cb(this).utc();return 0<a.year()&&a.year()<=9999?E(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):E(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return w(this)},isDSTShifted:function(){return this._a?this.isValid()&&m(this._a,(this._isUTC?cb.utc(this._a):cb(this._a)).toArray())>0:!1},parsingFlags:function(){return g({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(a){var b=E(this,a||cb.defaultFormat);return this.lang().postformat(b)},add:function(a,b){var c;return c="string"==typeof a?cb.duration(+b,a):cb.duration(a,b),j(this,c,1),this},subtract:function(a,b){var c;return c="string"==typeof a?cb.duration(+b,a):cb.duration(a,b),j(this,c,-1),this},diff:function(a,b,c){var d,e,f=y(a,this),g=6e4*(this.zone()-f.zone());return b=n(b),"year"===b||"month"===b?(d=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-cb(this).startOf("month")-(f-cb(f).startOf("month")))/d,e-=6e4*(this.zone()-cb(this).startOf("month").zone()-(f.zone()-cb(f).startOf("month").zone()))/d,"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:h(e)},from:function(a,b){return cb.duration(this.diff(a)).lang(this.lang()._abbr).humanize(!b)},fromNow:function(a){return this.from(cb(),a)},calendar:function(){var a=y(cb(),this).startOf("day"),b=this.diff(a,"days",!0),c=-6>b?"sameElse":-1>b?"lastWeek":0>b?"lastDay":1>b?"sameDay":2>b?"nextDay":7>b?"nextWeek":"sameElse";return this.format(this.lang().calendar(c,this))},isLeapYear:function(){return t(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=U(a,this.lang()),this.add({d:a-b})):b},month:function(a){var b,c=this._isUTC?"UTC":"";return null!=a?"string"==typeof a&&(a=this.lang().monthsParse(a),"number"!=typeof a)?this:(b=this.date(),this.date(1),this._d["set"+c+"Month"](a),this.date(Math.min(b,this.daysInMonth())),cb.updateOffset(this),this):this._d["get"+c+"Month"]()},startOf:function(a){switch(a=n(a)){case"year":this.month(0);case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a?this.weekday(0):"isoWeek"===a&&this.isoWeekday(1),this},endOf:function(a){return a=n(a),this.startOf(a).add("isoWeek"===a?"week":a,1).subtract("ms",1)},isAfter:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)>+cb(a).startOf(b)},isBefore:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)<+cb(a).startOf(b)},isSame:function(a,b){return b=b||"ms",+this.clone().startOf(b)===+y(a,this).startOf(b)},min:function(a){return a=cb.apply(null,arguments),this>a?this:a},max:function(a){return a=cb.apply(null,arguments),a>this?this:a},zone:function(a){var b=this._offset||0;return null==a?this._isUTC?b:this._d.getTimezoneOffset():("string"==typeof a&&(a=H(a)),Math.abs(a)<16&&(a=60*a),this._offset=a,this._isUTC=!0,b!==a&&j(this,cb.duration(b-a,"m"),1,!0),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?cb(a).zone():0,(this.zone()-a)%60===0},daysInMonth:function(){return r(this.year(),this.month())},dayOfYear:function(a){var b=gb((cb(this).startOf("day")-cb(this).startOf("year"))/864e5)+1;return null==a?b:this.add("d",a-b)},quarter:function(){return Math.ceil((this.month()+1)/3)},weekYear:function(a){var b=X(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==a?b:this.add("y",a-b)},isoWeekYear:function(a){var b=X(this,1,4).year;return null==a?b:this.add("y",a-b)},week:function(a){var b=this.lang().week(this);return null==a?b:this.add("d",7*(a-b))},isoWeek:function(a){var b=X(this,1,4).week;return null==a?b:this.add("d",7*(a-b))},weekday:function(a){var b=(this.day()+7-this.lang()._week.dow)%7;return null==a?b:this.add("d",a-b)},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},get:function(a){return a=n(a),this[a]()},set:function(a,b){return a=n(a),"function"==typeof this[a]&&this[a](b),this},lang:function(b){return b===a?this._lang:(this._lang=B(b),this)}}),db=0;db<Ob.length;db++)$(Ob[db].toLowerCase().replace(/s$/,""),Ob[db]);$("year","FullYear"),cb.fn.days=cb.fn.day,cb.fn.months=cb.fn.month,cb.fn.weeks=cb.fn.week,cb.fn.isoWeeks=cb.fn.isoWeek,cb.fn.toJSON=cb.fn.toISOString,g(cb.duration.fn=f.prototype,{_bubble:function(){var a,b,c,d,e=this._milliseconds,f=this._days,g=this._months,i=this._data;i.milliseconds=e%1e3,a=h(e/1e3),i.seconds=a%60,b=h(a/60),i.minutes=b%60,c=h(b/60),i.hours=c%24,f+=h(c/24),i.days=f%30,g+=h(f/30),i.months=g%12,d=h(g/12),i.years=d},weeks:function(){return h(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12)},humanize:function(a){var b=+this,c=W(b,!a,this.lang());return a&&(c=this.lang().pastFuture(b,c)),this.lang().postformat(c)},add:function(a,b){var c=cb.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=cb.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=n(a),this[a.toLowerCase()+"s"]()},as:function(a){return a=n(a),this["as"+a.charAt(0).toUpperCase()+a.slice(1)+"s"]()},lang:cb.fn.lang,toIsoString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"}});for(db in Pb)Pb.hasOwnProperty(db)&&(ab(db,Pb[db]),_(db.toLowerCase()));ab("Weeks",6048e5),cb.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},cb.lang("en",{ordinal:function(a){var b=a%10,c=1===q(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),pb?(module.exports=cb,bb(!0)):"function"==typeof define&&define.amd?define("moment",function(b,c,d){return d.config&&d.config()&&d.config().noGlobal!==!0&&bb(d.config().noGlobal===a),cb}):bb()}).call(this); | ||
176 | 0 | \ No newline at end of file | 7 | \ No newline at end of file |
177 | 1 | 8 | ||
178 | === added directory 'addons/web/static/lib/bootstrap-datetimepicker/src' | |||
179 | === added directory 'addons/web/static/lib/bootstrap-datetimepicker/src/css' | |||
180 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/css/bootstrap-datetimepicker.css' | |||
181 | --- addons/web/static/lib/bootstrap-datetimepicker/src/css/bootstrap-datetimepicker.css 1970-01-01 00:00:00 +0000 | |||
182 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/css/bootstrap-datetimepicker.css 2014-02-14 15:04:13 +0000 | |||
183 | @@ -0,0 +1,184 @@ | |||
184 | 1 | /** | ||
185 | 2 | * Build file for the dist version of datetimepicker.css | ||
186 | 3 | */ | ||
187 | 4 | /*! | ||
188 | 5 | * Datetimepicker for Bootstrap v3 | ||
189 | 6 | * https://github.com/Eonasdan/bootstrap-datetimepicker/ | ||
190 | 7 | * Copyright 2012 Stefan Petre | ||
191 | 8 | * Licensed under the Apache License v2.0 | ||
192 | 9 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
193 | 10 | * | ||
194 | 11 | */ | ||
195 | 12 | .bootstrap-datetimepicker-widget { | ||
196 | 13 | top: 0; | ||
197 | 14 | left: 0; | ||
198 | 15 | width: 250px; | ||
199 | 16 | padding: 4px; | ||
200 | 17 | margin-top: 1px; | ||
201 | 18 | z-index: 9999; | ||
202 | 19 | border-radius: 4px; | ||
203 | 20 | /*.dow { | ||
204 | 21 | border-top: 1px solid #ddd !important; | ||
205 | 22 | }*/ | ||
206 | 23 | } | ||
207 | 24 | .bootstrap-datetimepicker-widget .btn { | ||
208 | 25 | padding: 6px; | ||
209 | 26 | } | ||
210 | 27 | .bootstrap-datetimepicker-widget:before { | ||
211 | 28 | content: ''; | ||
212 | 29 | display: inline-block; | ||
213 | 30 | border-left: 7px solid transparent; | ||
214 | 31 | border-right: 7px solid transparent; | ||
215 | 32 | border-bottom: 7px solid #ccc; | ||
216 | 33 | border-bottom-color: rgba(0, 0, 0, 0.2); | ||
217 | 34 | position: absolute; | ||
218 | 35 | top: -7px; | ||
219 | 36 | left: 6px; | ||
220 | 37 | } | ||
221 | 38 | .bootstrap-datetimepicker-widget:after { | ||
222 | 39 | content: ''; | ||
223 | 40 | display: inline-block; | ||
224 | 41 | border-left: 6px solid transparent; | ||
225 | 42 | border-right: 6px solid transparent; | ||
226 | 43 | border-bottom: 6px solid white; | ||
227 | 44 | position: absolute; | ||
228 | 45 | top: -6px; | ||
229 | 46 | left: 7px; | ||
230 | 47 | } | ||
231 | 48 | .bootstrap-datetimepicker-widget.pull-right:before { | ||
232 | 49 | left: auto; | ||
233 | 50 | right: 6px; | ||
234 | 51 | } | ||
235 | 52 | .bootstrap-datetimepicker-widget.pull-right:after { | ||
236 | 53 | left: auto; | ||
237 | 54 | right: 7px; | ||
238 | 55 | } | ||
239 | 56 | .bootstrap-datetimepicker-widget > ul { | ||
240 | 57 | list-style-type: none; | ||
241 | 58 | margin: 0; | ||
242 | 59 | } | ||
243 | 60 | .bootstrap-datetimepicker-widget .timepicker-hour, | ||
244 | 61 | .bootstrap-datetimepicker-widget .timepicker-minute, | ||
245 | 62 | .bootstrap-datetimepicker-widget .timepicker-second { | ||
246 | 63 | width: 100%; | ||
247 | 64 | font-weight: bold; | ||
248 | 65 | font-size: 1.2em; | ||
249 | 66 | } | ||
250 | 67 | .bootstrap-datetimepicker-widget table[data-hour-format="12"] .separator { | ||
251 | 68 | width: 4px; | ||
252 | 69 | padding: 0; | ||
253 | 70 | margin: 0; | ||
254 | 71 | } | ||
255 | 72 | .bootstrap-datetimepicker-widget .datepicker > div { | ||
256 | 73 | display: none; | ||
257 | 74 | } | ||
258 | 75 | .bootstrap-datetimepicker-widget .picker-switch { | ||
259 | 76 | text-align: center; | ||
260 | 77 | } | ||
261 | 78 | .bootstrap-datetimepicker-widget table { | ||
262 | 79 | width: 100%; | ||
263 | 80 | margin: 0; | ||
264 | 81 | } | ||
265 | 82 | .bootstrap-datetimepicker-widget td, | ||
266 | 83 | .bootstrap-datetimepicker-widget th { | ||
267 | 84 | text-align: center; | ||
268 | 85 | width: 20px; | ||
269 | 86 | height: 20px; | ||
270 | 87 | border-radius: 4px; | ||
271 | 88 | } | ||
272 | 89 | .bootstrap-datetimepicker-widget td.day:hover, | ||
273 | 90 | .bootstrap-datetimepicker-widget td.hour:hover, | ||
274 | 91 | .bootstrap-datetimepicker-widget td.minute:hover, | ||
275 | 92 | .bootstrap-datetimepicker-widget td.second:hover { | ||
276 | 93 | background: #eeeeee; | ||
277 | 94 | cursor: pointer; | ||
278 | 95 | } | ||
279 | 96 | .bootstrap-datetimepicker-widget td.old, | ||
280 | 97 | .bootstrap-datetimepicker-widget td.new { | ||
281 | 98 | color: #999999; | ||
282 | 99 | } | ||
283 | 100 | .bootstrap-datetimepicker-widget td.active, | ||
284 | 101 | .bootstrap-datetimepicker-widget td.active:hover { | ||
285 | 102 | background-color: #428bca; | ||
286 | 103 | color: #fff; | ||
287 | 104 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
288 | 105 | } | ||
289 | 106 | .bootstrap-datetimepicker-widget td.disabled, | ||
290 | 107 | .bootstrap-datetimepicker-widget td.disabled:hover { | ||
291 | 108 | background: none; | ||
292 | 109 | color: #999999; | ||
293 | 110 | cursor: not-allowed; | ||
294 | 111 | } | ||
295 | 112 | .bootstrap-datetimepicker-widget td span { | ||
296 | 113 | display: block; | ||
297 | 114 | width: 47px; | ||
298 | 115 | height: 54px; | ||
299 | 116 | line-height: 54px; | ||
300 | 117 | float: left; | ||
301 | 118 | margin: 2px; | ||
302 | 119 | cursor: pointer; | ||
303 | 120 | border-radius: 4px; | ||
304 | 121 | } | ||
305 | 122 | .bootstrap-datetimepicker-widget td span:hover { | ||
306 | 123 | background: #eeeeee; | ||
307 | 124 | } | ||
308 | 125 | .bootstrap-datetimepicker-widget td span.active { | ||
309 | 126 | background-color: #428bca; | ||
310 | 127 | color: #fff; | ||
311 | 128 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
312 | 129 | } | ||
313 | 130 | .bootstrap-datetimepicker-widget td span.old { | ||
314 | 131 | color: #999999; | ||
315 | 132 | } | ||
316 | 133 | .bootstrap-datetimepicker-widget td span.disabled, | ||
317 | 134 | .bootstrap-datetimepicker-widget td span.disabled:hover { | ||
318 | 135 | background: none; | ||
319 | 136 | color: #999999; | ||
320 | 137 | cursor: not-allowed; | ||
321 | 138 | } | ||
322 | 139 | .bootstrap-datetimepicker-widget th.switch { | ||
323 | 140 | width: 145px; | ||
324 | 141 | } | ||
325 | 142 | .bootstrap-datetimepicker-widget th.next, | ||
326 | 143 | .bootstrap-datetimepicker-widget th.prev { | ||
327 | 144 | font-size: 21px; | ||
328 | 145 | } | ||
329 | 146 | .bootstrap-datetimepicker-widget th.disabled, | ||
330 | 147 | .bootstrap-datetimepicker-widget th.disabled:hover { | ||
331 | 148 | background: none; | ||
332 | 149 | color: #999999; | ||
333 | 150 | cursor: not-allowed; | ||
334 | 151 | } | ||
335 | 152 | .bootstrap-datetimepicker-widget thead tr:first-child th { | ||
336 | 153 | cursor: pointer; | ||
337 | 154 | } | ||
338 | 155 | .bootstrap-datetimepicker-widget thead tr:first-child th:hover { | ||
339 | 156 | background: #eeeeee; | ||
340 | 157 | } | ||
341 | 158 | .input-group.date .input-group-addon span { | ||
342 | 159 | display: block; | ||
343 | 160 | cursor: pointer; | ||
344 | 161 | width: 16px; | ||
345 | 162 | height: 16px; | ||
346 | 163 | } | ||
347 | 164 | .bootstrap-datetimepicker-widget.left-oriented:before { | ||
348 | 165 | left: auto; | ||
349 | 166 | right: 6px; | ||
350 | 167 | } | ||
351 | 168 | .bootstrap-datetimepicker-widget.left-oriented:after { | ||
352 | 169 | left: auto; | ||
353 | 170 | right: 7px; | ||
354 | 171 | } | ||
355 | 172 | .bootstrap-datetimepicker-widget ul.list-unstyled li.in div.timepicker div.timepicker-picker table.table-condensed tbody > tr > td { | ||
356 | 173 | padding: 0px !important; | ||
357 | 174 | } | ||
358 | 175 | .bootstrap-datetimepicker-widget .cw { | ||
359 | 176 | font-size: 10px; | ||
360 | 177 | width: 12px; | ||
361 | 178 | padding: 0 2px 0 5px; | ||
362 | 179 | vertical-align: middle; | ||
363 | 180 | } | ||
364 | 181 | .bootstrap-datetimepicker-widget thead tr:first-child th.cw { | ||
365 | 182 | cursor: default; | ||
366 | 183 | background-color: transparent; | ||
367 | 184 | } | ||
368 | 0 | \ No newline at end of file | 185 | \ No newline at end of file |
369 | 1 | 186 | ||
370 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/css/bootstrap-datetimepicker.min.css' | |||
371 | --- addons/web/static/lib/bootstrap-datetimepicker/src/css/bootstrap-datetimepicker.min.css 1970-01-01 00:00:00 +0000 | |||
372 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/css/bootstrap-datetimepicker.min.css 2014-02-14 15:04:13 +0000 | |||
373 | @@ -0,0 +1,8 @@ | |||
374 | 1 | /*! | ||
375 | 2 | * Datetimepicker for Bootstrap v3 | ||
376 | 3 | * https://github.com/Eonasdan/bootstrap-datetimepicker/ | ||
377 | 4 | * Copyright 2012 Stefan Petre | ||
378 | 5 | * Licensed under the Apache License v2.0 | ||
379 | 6 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
380 | 7 | * | ||
381 | 8 | */.bootstrap-datetimepicker-widget{top:0;left:0;width:250px;padding:4px;margin-top:1px;z-index:9999;border-radius:4px}.bootstrap-datetimepicker-widget .btn{padding:6px}.bootstrap-datetimepicker-widget:before{content:'';display:inline-block;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,0.2);position:absolute;top:-7px;left:6px}.bootstrap-datetimepicker-widget:after{content:'';display:inline-block;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #fff;position:absolute;top:-6px;left:7px}.bootstrap-datetimepicker-widget.pull-right:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.pull-right:after{left:auto;right:7px}.bootstrap-datetimepicker-widget>ul{list-style-type:none;margin:0}.bootstrap-datetimepicker-widget .timepicker-hour,.bootstrap-datetimepicker-widget .timepicker-minute,.bootstrap-datetimepicker-widget .timepicker-second{width:100%;font-weight:bold;font-size:1.2em}.bootstrap-datetimepicker-widget table[data-hour-format="12"] .separator{width:4px;padding:0;margin:0}.bootstrap-datetimepicker-widget .datepicker>div{display:none}.bootstrap-datetimepicker-widget .picker-switch{text-align:center}.bootstrap-datetimepicker-widget table{width:100%;margin:0}.bootstrap-datetimepicker-widget td,.bootstrap-datetimepicker-widget th{text-align:center;width:20px;height:20px;border-radius:4px}.bootstrap-datetimepicker-widget td.day:hover,.bootstrap-datetimepicker-widget td.hour:hover,.bootstrap-datetimepicker-widget td.minute:hover,.bootstrap-datetimepicker-widget td.second:hover{background:#eee;cursor:pointer}.bootstrap-datetimepicker-widget td.old,.bootstrap-datetimepicker-widget td.new{color:#999}.bootstrap-datetimepicker-widget td.active,.bootstrap-datetimepicker-widget td.active:hover{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.bootstrap-datetimepicker-widget td.disabled,.bootstrap-datetimepicker-widget td.disabled:hover{background:none;color:#999;cursor:not-allowed}.bootstrap-datetimepicker-widget td span{display:block;width:47px;height:54px;line-height:54px;float:left;margin:2px;cursor:pointer;border-radius:4px}.bootstrap-datetimepicker-widget td span:hover{background:#eee}.bootstrap-datetimepicker-widget td span.active{background-color:#428bca;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.bootstrap-datetimepicker-widget td span.old{color:#999}.bootstrap-datetimepicker-widget td span.disabled,.bootstrap-datetimepicker-widget td span.disabled:hover{background:none;color:#999;cursor:not-allowed}.bootstrap-datetimepicker-widget th.switch{width:145px}.bootstrap-datetimepicker-widget th.next,.bootstrap-datetimepicker-widget th.prev{font-size:21px}.bootstrap-datetimepicker-widget th.disabled,.bootstrap-datetimepicker-widget th.disabled:hover{background:none;color:#999;cursor:not-allowed}.bootstrap-datetimepicker-widget thead tr:first-child th{cursor:pointer}.bootstrap-datetimepicker-widget thead tr:first-child th:hover{background:#eee}.input-group.date .input-group-addon span{display:block;cursor:pointer;width:16px;height:16px}.bootstrap-datetimepicker-widget.left-oriented:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.left-oriented:after{left:auto;right:7px}.bootstrap-datetimepicker-widget ul.list-unstyled li.in div.timepicker div.timepicker-picker table.table-condensed tbody>tr>td{padding:0 !important}.bootstrap-datetimepicker-widget .cw {font-size: 10px;width: 12px;padding: 0 2px 0 5px;vertical-align: middle;}.bootstrap-datetimepicker-widget thead tr:first-child th.cw {cursor: default;background-color: transparent;} | ||
382 | 0 | \ No newline at end of file | 9 | \ No newline at end of file |
383 | 1 | 10 | ||
384 | === added directory 'addons/web/static/lib/bootstrap-datetimepicker/src/js' | |||
385 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js' | |||
386 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js 1970-01-01 00:00:00 +0000 | |||
387 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js 2014-02-14 15:04:13 +0000 | |||
388 | @@ -0,0 +1,1111 @@ | |||
389 | 1 | /** | ||
390 | 2 | * version 2.1.20 | ||
391 | 3 | * @license | ||
392 | 4 | * ========================================================= | ||
393 | 5 | * bootstrap-datetimepicker.js | ||
394 | 6 | * http://www.eyecon.ro/bootstrap-datepicker | ||
395 | 7 | * ========================================================= | ||
396 | 8 | * Copyright 2012 Stefan Petre | ||
397 | 9 | * | ||
398 | 10 | * Contributions: | ||
399 | 11 | * - updated for Bootstrap v3 by Jonathan Peterson (@Eonasdan) and (almost) | ||
400 | 12 | * completely rewritten to use Momentjs | ||
401 | 13 | * - based on tarruda's bootstrap-datepicker | ||
402 | 14 | * | ||
403 | 15 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
404 | 16 | * you may not use this file except in compliance with the License. | ||
405 | 17 | * You may obtain a copy of the License at | ||
406 | 18 | * | ||
407 | 19 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
408 | 20 | * | ||
409 | 21 | * Unless required by applicable law or agreed to in writing, software | ||
410 | 22 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
411 | 23 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
412 | 24 | * See the License for the specific language governing permissions and | ||
413 | 25 | * limitations under the License. | ||
414 | 26 | * ========================================================= | ||
415 | 27 | */ | ||
416 | 28 | (function (factory) { | ||
417 | 29 | if (typeof define === 'function' && define.amd) { | ||
418 | 30 | // AMD is used - Register as an anonymous module. | ||
419 | 31 | define(['jquery', 'moment'], factory); | ||
420 | 32 | } else { | ||
421 | 33 | // AMD is not used - Attempt to fetch dependencies from scope. | ||
422 | 34 | if(!jQuery){ | ||
423 | 35 | throw 'bootstrap-datetimepicker requires jQuery to be loaded first'; | ||
424 | 36 | }else if(!moment) { | ||
425 | 37 | throw 'bootstrap-datetimepicker requires moment.js to be loaded first'; | ||
426 | 38 | }else{ | ||
427 | 39 | factory(jQuery, moment); | ||
428 | 40 | } | ||
429 | 41 | } | ||
430 | 42 | } | ||
431 | 43 | |||
432 | 44 | (function ($, moment) { | ||
433 | 45 | if (typeof moment === 'undefined') { | ||
434 | 46 | alert("momentjs is requried"); | ||
435 | 47 | throw new Error('momentjs is requried'); | ||
436 | 48 | }; | ||
437 | 49 | |||
438 | 50 | var dpgId = 0, | ||
439 | 51 | |||
440 | 52 | pMoment = moment, | ||
441 | 53 | |||
442 | 54 | // ReSharper disable once InconsistentNaming | ||
443 | 55 | DateTimePicker = function (element, options) { | ||
444 | 56 | var defaults = { | ||
445 | 57 | pickDate: true, | ||
446 | 58 | pickTime: true, | ||
447 | 59 | useMinutes: true, | ||
448 | 60 | useSeconds: false, | ||
449 | 61 | minuteStepping: 1, | ||
450 | 62 | startDate: new pMoment({ y: 1970 }), | ||
451 | 63 | endDate: new pMoment().add(50, "y"), | ||
452 | 64 | collapse: true, | ||
453 | 65 | language: "en", | ||
454 | 66 | defaultDate: "", | ||
455 | 67 | disabledDates: [], | ||
456 | 68 | enabledDates: false, | ||
457 | 69 | icons: {}, | ||
458 | 70 | useStrict: false, | ||
459 | 71 | calendarWeeks: false, | ||
460 | 72 | }, | ||
461 | 73 | |||
462 | 74 | icons = { | ||
463 | 75 | time: 'glyphicon glyphicon-time', | ||
464 | 76 | date: 'glyphicon glyphicon-calendar', | ||
465 | 77 | up: 'glyphicon glyphicon-chevron-up', | ||
466 | 78 | down: 'glyphicon glyphicon-chevron-down' | ||
467 | 79 | }, | ||
468 | 80 | |||
469 | 81 | picker = this, | ||
470 | 82 | |||
471 | 83 | init = function () { | ||
472 | 84 | |||
473 | 85 | var icon = false, i, dDate, longDateFormat; | ||
474 | 86 | picker.options = $.extend({}, defaults, options); | ||
475 | 87 | picker.options.icons = $.extend({}, icons, picker.options.icons); | ||
476 | 88 | |||
477 | 89 | picker.element = $(element); | ||
478 | 90 | |||
479 | 91 | dataToOptions(); | ||
480 | 92 | |||
481 | 93 | if (!(picker.options.pickTime || picker.options.pickDate)) | ||
482 | 94 | throw new Error('Must choose at least one picker'); | ||
483 | 95 | |||
484 | 96 | picker.id = dpgId++; | ||
485 | 97 | pMoment.lang(picker.options.language); | ||
486 | 98 | picker.date = pMoment(); | ||
487 | 99 | picker.unset = false; | ||
488 | 100 | picker.isInput = picker.element.is('input'); | ||
489 | 101 | picker.component = false; | ||
490 | 102 | |||
491 | 103 | if (picker.element.hasClass('input-group')) { | ||
492 | 104 | if (picker.element.find('.datepickerbutton').size() == 0) {//in case there is more then one 'input-group-addon` #48 | ||
493 | 105 | picker.component = picker.element.find("[class^='input-group-']"); | ||
494 | 106 | } | ||
495 | 107 | else { | ||
496 | 108 | picker.component = picker.element.find('.datepickerbutton'); | ||
497 | 109 | } | ||
498 | 110 | } | ||
499 | 111 | picker.format = picker.options.format; | ||
500 | 112 | |||
501 | 113 | longDateFormat = pMoment()._lang._longDateFormat; | ||
502 | 114 | |||
503 | 115 | if (!picker.format) { | ||
504 | 116 | if (picker.isInput) picker.format = picker.element.data('format'); | ||
505 | 117 | else picker.format = picker.element.find('input').data('format'); | ||
506 | 118 | if (!picker.format) { | ||
507 | 119 | picker.format = (picker.options.pickDate ? longDateFormat.L : ''); | ||
508 | 120 | if (picker.options.pickDate && picker.options.pickTime) picker.format += ' '; | ||
509 | 121 | picker.format += (picker.options.pickTime ? longDateFormat.LT : ''); | ||
510 | 122 | if (picker.options.useSeconds) { | ||
511 | 123 | if (~longDateFormat.LT.indexOf(' A')) { | ||
512 | 124 | picker.format = picker.format.split(" A")[0] + ":ss A"; | ||
513 | 125 | } | ||
514 | 126 | else { | ||
515 | 127 | picker.format += ':ss'; | ||
516 | 128 | } | ||
517 | 129 | } | ||
518 | 130 | } | ||
519 | 131 | } | ||
520 | 132 | |||
521 | 133 | picker.options.use24hours = picker.format.toLowerCase().indexOf("a") < 1; | ||
522 | 134 | |||
523 | 135 | if (picker.component) icon = picker.component.find('span'); | ||
524 | 136 | |||
525 | 137 | if (picker.options.pickTime) { | ||
526 | 138 | if (icon) icon.addClass(picker.options.icons.time); | ||
527 | 139 | } | ||
528 | 140 | if (picker.options.pickDate) { | ||
529 | 141 | if (icon) { | ||
530 | 142 | icon.removeClass(picker.options.icons.time); | ||
531 | 143 | icon.addClass(picker.options.icons.date); | ||
532 | 144 | } | ||
533 | 145 | } | ||
534 | 146 | |||
535 | 147 | picker.widget = $(getTemplate(picker.options.pickDate, picker.options.pickTime, picker.options.collapse)).appendTo('body'); | ||
536 | 148 | picker.minViewMode = picker.options.minViewMode || picker.element.data('date-minviewmode') || 0; | ||
537 | 149 | if (typeof picker.minViewMode === 'string') { | ||
538 | 150 | switch (picker.minViewMode) { | ||
539 | 151 | case 'months': | ||
540 | 152 | picker.minViewMode = 1; | ||
541 | 153 | break; | ||
542 | 154 | case 'years': | ||
543 | 155 | picker.minViewMode = 2; | ||
544 | 156 | break; | ||
545 | 157 | default: | ||
546 | 158 | picker.minViewMode = 0; | ||
547 | 159 | break; | ||
548 | 160 | } | ||
549 | 161 | } | ||
550 | 162 | |||
551 | 163 | if (picker.options.calendarWeeks) | ||
552 | 164 | picker.widget.find('tfoot th.today') | ||
553 | 165 | .attr('colspan', function(i, val){ | ||
554 | 166 | return parseInt(val) + 1; | ||
555 | 167 | }); | ||
556 | 168 | |||
557 | 169 | picker.viewMode = picker.options.viewMode || picker.element.data('date-viewmode') || 0; | ||
558 | 170 | if (typeof picker.viewMode === 'string') { | ||
559 | 171 | switch (picker.viewMode) { | ||
560 | 172 | case 'months': | ||
561 | 173 | picker.viewMode = 1; | ||
562 | 174 | break; | ||
563 | 175 | case 'years': | ||
564 | 176 | picker.viewMode = 2; | ||
565 | 177 | break; | ||
566 | 178 | default: | ||
567 | 179 | picker.viewMode = 0; | ||
568 | 180 | break; | ||
569 | 181 | } | ||
570 | 182 | } | ||
571 | 183 | |||
572 | 184 | for (i = 0; i < picker.options.disabledDates.length; i++) { | ||
573 | 185 | dDate = picker.options.disabledDates[i]; | ||
574 | 186 | dDate = pMoment(dDate); | ||
575 | 187 | //if this is not a valid date then set it to the startdate -1 day so it's disabled. | ||
576 | 188 | if (!dDate.isValid()) dDate = pMoment(picker.options.startDate).subtract(1, "day"); | ||
577 | 189 | picker.options.disabledDates[i] = dDate.format("L"); | ||
578 | 190 | } | ||
579 | 191 | |||
580 | 192 | for (i = 0; i < picker.options.enabledDates.length; i++) { | ||
581 | 193 | dDate = picker.options.enabledDates[i]; | ||
582 | 194 | dDate = pMoment(dDate); | ||
583 | 195 | //if this is not a valid date then set it to the startdate -1 day so it's disabled. | ||
584 | 196 | if (!dDate.isValid()) dDate = pMoment(picker.options.startDate).subtract(1, "day"); | ||
585 | 197 | picker.options.enabledDates[i] = dDate.format("L"); | ||
586 | 198 | } | ||
587 | 199 | picker.startViewMode = picker.viewMode; | ||
588 | 200 | picker.setStartDate(picker.options.startDate || picker.element.data('date-startdate')); | ||
589 | 201 | picker.setEndDate(picker.options.endDate || picker.element.data('date-enddate')); | ||
590 | 202 | fillDow(); | ||
591 | 203 | fillMonths(); | ||
592 | 204 | fillHours(); | ||
593 | 205 | fillMinutes(); | ||
594 | 206 | fillSeconds(); | ||
595 | 207 | update(); | ||
596 | 208 | showMode(); | ||
597 | 209 | attachDatePickerEvents(); | ||
598 | 210 | if (picker.options.defaultDate !== "") picker.setValue(picker.options.defaultDate); | ||
599 | 211 | }, | ||
600 | 212 | |||
601 | 213 | dataToOptions = function () { | ||
602 | 214 | var eData = picker.element.data(); | ||
603 | 215 | if (eData.pickdate !== undefined) picker.options.pickDate = eData.pickdate; | ||
604 | 216 | if (eData.picktime !== undefined) picker.options.pickTime = eData.picktime; | ||
605 | 217 | if (eData.useminutes !== undefined) picker.options.useMinutes = eData.useminutes; | ||
606 | 218 | if (eData.useseconds !== undefined) picker.options.useSeconds = eData.useseconds; | ||
607 | 219 | if (eData.minutestepping !== undefined) picker.options.minuteStepping = eData.minutestepping; | ||
608 | 220 | if (eData.startdate !== undefined) picker.options.startDate = eData.startdate; | ||
609 | 221 | if (eData.enddate !== undefined) picker.options.endDate = eData.enddate; | ||
610 | 222 | if (eData.collapse !== undefined) picker.options.collapse = eData.collapse; | ||
611 | 223 | if (eData.language !== undefined) picker.options.language = eData.language; | ||
612 | 224 | if (eData.defaultdate !== undefined) picker.options.defaultDate = eData.defaultdate; | ||
613 | 225 | if (eData.disableddates !== undefined) picker.options.disabledDates = eData.disableddates; | ||
614 | 226 | if (eData.enableddates !== undefined) picker.options.enabledDates = eData.enableddates; | ||
615 | 227 | if (eData.icons !== undefined) picker.options.icons = eData.icons; | ||
616 | 228 | if (eData.usestrict !== undefined) picker.options.useStrict = eData.usestrict; | ||
617 | 229 | if (eData.calendarWeeks !== undefined) picker.options.calendarWeeks = eData.calendarWeeks; | ||
618 | 230 | }, | ||
619 | 231 | |||
620 | 232 | place = function () { | ||
621 | 233 | var position = 'absolute', | ||
622 | 234 | offset = picker.component ? picker.component.offset() : picker.element.offset(), $window = $(window); | ||
623 | 235 | picker.width = picker.component ? picker.component.outerWidth() : picker.element.outerWidth(); | ||
624 | 236 | offset.top = offset.top + picker.element.outerHeight(); | ||
625 | 237 | |||
626 | 238 | //if (offset.top + picker.widget.height() > $window.height()) offset.top = offset.top - (picker.widget.height() + picker.height + 10); | ||
627 | 239 | |||
628 | 240 | if (picker.options.width !== undefined) { | ||
629 | 241 | picker.widget.width(picker.options.width); | ||
630 | 242 | } | ||
631 | 243 | |||
632 | 244 | if (picker.options.orientation === 'left') { | ||
633 | 245 | picker.widget.addClass('left-oriented'); | ||
634 | 246 | offset.left = offset.left - picker.widget.width() + 20; | ||
635 | 247 | } | ||
636 | 248 | |||
637 | 249 | if (isInFixed()) { | ||
638 | 250 | position = 'fixed'; | ||
639 | 251 | offset.top -= $window.scrollTop(); | ||
640 | 252 | offset.left -= $window.scrollLeft(); | ||
641 | 253 | } | ||
642 | 254 | |||
643 | 255 | if ($window.width() < offset.left + picker.widget.outerWidth()) { | ||
644 | 256 | offset.right = $window.width() - offset.left - picker.width; | ||
645 | 257 | offset.left = 'auto'; | ||
646 | 258 | picker.widget.addClass('pull-right'); | ||
647 | 259 | } else { | ||
648 | 260 | offset.right = 'auto'; | ||
649 | 261 | picker.widget.removeClass('pull-right'); | ||
650 | 262 | } | ||
651 | 263 | |||
652 | 264 | picker.widget.css({ | ||
653 | 265 | position: position, | ||
654 | 266 | top: offset.top, | ||
655 | 267 | left: offset.left, | ||
656 | 268 | right: offset.right | ||
657 | 269 | }); | ||
658 | 270 | }, | ||
659 | 271 | |||
660 | 272 | notifyChange = function (oldDate, eventType) { | ||
661 | 273 | picker.element.trigger({ | ||
662 | 274 | type: 'change.dp', | ||
663 | 275 | date: pMoment(picker.date), | ||
664 | 276 | oldDate: pMoment(oldDate) | ||
665 | 277 | }); | ||
666 | 278 | |||
667 | 279 | //if (eventType !== 'change') | ||
668 | 280 | //picker.element.change(); | ||
669 | 281 | }, | ||
670 | 282 | |||
671 | 283 | notifyError = function (date) { | ||
672 | 284 | picker.element.trigger({ | ||
673 | 285 | type: 'error.dp', | ||
674 | 286 | date: pMoment(date) | ||
675 | 287 | }); | ||
676 | 288 | }, | ||
677 | 289 | |||
678 | 290 | update = function (newDate) { | ||
679 | 291 | pMoment.lang(picker.options.language); | ||
680 | 292 | var dateStr = newDate; | ||
681 | 293 | if (!dateStr) { | ||
682 | 294 | if (picker.isInput) { | ||
683 | 295 | dateStr = picker.element.val(); | ||
684 | 296 | } else { | ||
685 | 297 | dateStr = picker.element.find('input').val(); | ||
686 | 298 | } | ||
687 | 299 | if (dateStr) picker.date = pMoment(dateStr, picker.format, picker.options.useStrict); | ||
688 | 300 | if (!picker.date) picker.date = pMoment(); | ||
689 | 301 | } | ||
690 | 302 | picker.viewDate = pMoment(picker.date).startOf("month"); | ||
691 | 303 | fillDate(); | ||
692 | 304 | fillTime(); | ||
693 | 305 | }, | ||
694 | 306 | |||
695 | 307 | |||
696 | 308 | fillDow = function () { | ||
697 | 309 | pMoment.lang(picker.options.language); | ||
698 | 310 | var html = $('<tr>'), weekdaysMin = pMoment.weekdaysMin(), i; | ||
699 | 311 | if(picker.options.calendarWeeks){ | ||
700 | 312 | var cell = '<th class="cw">Wk</th>'; | ||
701 | 313 | html.append(cell); | ||
702 | 314 | // picker.widget.find('.datepicker-days thead tr:first-child').prepend(cell); | ||
703 | 315 | } | ||
704 | 316 | if (pMoment()._lang._week.dow == 0) { // starts on Sunday | ||
705 | 317 | for(i = 0; i < 7; i++) { | ||
706 | 318 | html.append('<th class="dow">' + weekdaysMin[i] + '</th>'); | ||
707 | 319 | } | ||
708 | 320 | } else { | ||
709 | 321 | for (i = 1; i < 8; i++) { | ||
710 | 322 | if (i == 7) { | ||
711 | 323 | html.append('<th class="dow">' + weekdaysMin[0] + '</th>'); | ||
712 | 324 | } else { | ||
713 | 325 | html.append('<th class="dow">' + weekdaysMin[i] + '</th>'); | ||
714 | 326 | } | ||
715 | 327 | } | ||
716 | 328 | } | ||
717 | 329 | picker.widget.find('.datepicker-days thead').append(html); | ||
718 | 330 | }, | ||
719 | 331 | |||
720 | 332 | fillMonths = function () { | ||
721 | 333 | pMoment.lang(picker.options.language); | ||
722 | 334 | var html = '', i = 0, monthsShort = pMoment.monthsShort(); | ||
723 | 335 | while (i < 12) { | ||
724 | 336 | html += '<span class="month">' + monthsShort[i++] + '</span>'; | ||
725 | 337 | } | ||
726 | 338 | picker.widget.find('.datepicker-months td').append(html); | ||
727 | 339 | }, | ||
728 | 340 | |||
729 | 341 | d = function() { | ||
730 | 342 | return new Date(Date.UTC.apply(Date, arguments)) | ||
731 | 343 | }, | ||
732 | 344 | |||
733 | 345 | fillDate = function () { | ||
734 | 346 | pMoment.lang(picker.options.language); | ||
735 | 347 | var year = picker.viewDate.year(), | ||
736 | 348 | month = picker.viewDate.month(), | ||
737 | 349 | startYear = picker.options.startDate.year(), | ||
738 | 350 | startMonth = picker.options.startDate.month(), | ||
739 | 351 | endYear = picker.options.endDate.year(), | ||
740 | 352 | endMonth = picker.options.endDate.month(), | ||
741 | 353 | prevMonth, nextMonth, html = [], row, clsName, i, days, yearCont, currentYear, months = pMoment.months(); | ||
742 | 354 | |||
743 | 355 | picker.widget.find('.datepicker-days').find('.disabled').removeClass('disabled'); | ||
744 | 356 | picker.widget.find('.datepicker-months').find('.disabled').removeClass('disabled'); | ||
745 | 357 | picker.widget.find('.datepicker-years').find('.disabled').removeClass('disabled'); | ||
746 | 358 | |||
747 | 359 | picker.widget.find('.datepicker-days th:eq(1)').text( | ||
748 | 360 | months[month] + ' ' + year); | ||
749 | 361 | |||
750 | 362 | prevMonth = pMoment(picker.viewDate).subtract("months", 1); | ||
751 | 363 | days = prevMonth.daysInMonth(); | ||
752 | 364 | prevMonth.date(days).startOf('week'); | ||
753 | 365 | if ((year == startYear && month <= startMonth) || year < startYear) { | ||
754 | 366 | picker.widget.find('.datepicker-days th:eq(0)').addClass('disabled'); | ||
755 | 367 | } | ||
756 | 368 | if ((year == endYear && month >= endMonth) || year > endYear) { | ||
757 | 369 | picker.widget.find('.datepicker-days th:eq(2)').addClass('disabled'); | ||
758 | 370 | } | ||
759 | 371 | |||
760 | 372 | nextMonth = pMoment(prevMonth).add(42, "d"); | ||
761 | 373 | while (prevMonth.isBefore(nextMonth)) { | ||
762 | 374 | if (prevMonth.weekday() === pMoment().startOf('week').weekday()) { | ||
763 | 375 | row = $('<tr>'); | ||
764 | 376 | html.push(row); | ||
765 | 377 | if(picker.options.calendarWeeks){ | ||
766 | 378 | var | ||
767 | 379 | ws = new Date(+prevMonth + (pMoment().startOf('week').weekday() - prevMonth.weekday() - 7) % 7 * 864e5), | ||
768 | 380 | th = new Date(+ws + (7 + 4 - ws.getUTCDay()) % 7 * 864e5), | ||
769 | 381 | yth = new Date(+(yth = d(th.getUTCFullYear(), 0, 1)) + (7 + 4 - yth.getUTCDay())%7*864e5), | ||
770 | 382 | calWeek = (th - yth) / 864e5 / 7 + 1; | ||
771 | 383 | row.append('<td class="cw">'+ parseInt(calWeek) +'</td>'); | ||
772 | 384 | } | ||
773 | 385 | } | ||
774 | 386 | clsName = ''; | ||
775 | 387 | if (prevMonth.year() < year || (prevMonth.year() == year && prevMonth.month() < month)) { | ||
776 | 388 | clsName += ' old'; | ||
777 | 389 | } else if (prevMonth.year() > year || (prevMonth.year() == year && prevMonth.month() > month)) { | ||
778 | 390 | clsName += ' new'; | ||
779 | 391 | } | ||
780 | 392 | if (prevMonth.isSame(pMoment({ y: picker.date.year(), M: picker.date.month(), d: picker.date.date() }))) { | ||
781 | 393 | clsName += ' active'; | ||
782 | 394 | } | ||
783 | 395 | if ((pMoment(prevMonth).add(1, "d") <= picker.options.startDate) || (prevMonth > picker.options.endDate) || isInDisableDates(prevMonth) || !isInEnableDates(prevMonth)) { | ||
784 | 396 | clsName += ' disabled'; | ||
785 | 397 | } | ||
786 | 398 | row.append('<td class="day' + clsName + '">' + prevMonth.date() + '</td>'); | ||
787 | 399 | prevMonth.add(1, "d"); | ||
788 | 400 | } | ||
789 | 401 | picker.widget.find('.datepicker-days tbody').empty().append(html); | ||
790 | 402 | currentYear = pMoment().year(), months = picker.widget.find('.datepicker-months') | ||
791 | 403 | .find('th:eq(1)').text(year).end().find('span').removeClass('active'); | ||
792 | 404 | if (currentYear === year) { | ||
793 | 405 | months.eq(pMoment().month()).addClass('active'); | ||
794 | 406 | } | ||
795 | 407 | if (currentYear - 1 < startYear) { | ||
796 | 408 | picker.widget.find('.datepicker-months th:eq(0)').addClass('disabled'); | ||
797 | 409 | } | ||
798 | 410 | if (currentYear + 1 > endYear) { | ||
799 | 411 | picker.widget.find('.datepicker-months th:eq(2)').addClass('disabled'); | ||
800 | 412 | } | ||
801 | 413 | for (i = 0; i < 12; i++) { | ||
802 | 414 | if ((year == startYear && startMonth > i) || (year < startYear)) { | ||
803 | 415 | $(months[i]).addClass('disabled'); | ||
804 | 416 | } else if ((year == endYear && endMonth < i) || (year > endYear)) { | ||
805 | 417 | $(months[i]).addClass('disabled'); | ||
806 | 418 | } | ||
807 | 419 | } | ||
808 | 420 | |||
809 | 421 | html = ''; | ||
810 | 422 | year = parseInt(year / 10, 10) * 10; | ||
811 | 423 | yearCont = picker.widget.find('.datepicker-years').find( | ||
812 | 424 | 'th:eq(1)').text(year + '-' + (year + 9)).end().find('td'); | ||
813 | 425 | picker.widget.find('.datepicker-years').find('th').removeClass('disabled'); | ||
814 | 426 | if (startYear > year) { | ||
815 | 427 | picker.widget.find('.datepicker-years').find('th:eq(0)').addClass('disabled'); | ||
816 | 428 | } | ||
817 | 429 | if (endYear < year + 9) { | ||
818 | 430 | picker.widget.find('.datepicker-years').find('th:eq(2)').addClass('disabled'); | ||
819 | 431 | } | ||
820 | 432 | year -= 1; | ||
821 | 433 | for (i = -1; i < 11; i++) { | ||
822 | 434 | html += '<span class="year' + (i === -1 || i === 10 ? ' old' : '') + (currentYear === year ? ' active' : '') + ((year < startYear || year > endYear) ? ' disabled' : '') + '">' + year + '</span>'; | ||
823 | 435 | year += 1; | ||
824 | 436 | } | ||
825 | 437 | yearCont.html(html); | ||
826 | 438 | }, | ||
827 | 439 | |||
828 | 440 | fillHours = function () { | ||
829 | 441 | pMoment.lang(picker.options.language); | ||
830 | 442 | var table = picker.widget.find('.timepicker .timepicker-hours table'), html = '', current, i, j; | ||
831 | 443 | table.parent().hide(); | ||
832 | 444 | if (picker.options.use24hours) { | ||
833 | 445 | current = 0; | ||
834 | 446 | for (i = 0; i < 6; i += 1) { | ||
835 | 447 | html += '<tr>'; | ||
836 | 448 | for (j = 0; j < 4; j += 1) { | ||
837 | 449 | html += '<td class="hour">' + padLeft(current.toString()) + '</td>'; | ||
838 | 450 | current++; | ||
839 | 451 | } | ||
840 | 452 | html += '</tr>'; | ||
841 | 453 | } | ||
842 | 454 | } | ||
843 | 455 | else { | ||
844 | 456 | current = 1; | ||
845 | 457 | for (i = 0; i < 3; i += 1) { | ||
846 | 458 | html += '<tr>'; | ||
847 | 459 | for (j = 0; j < 4; j += 1) { | ||
848 | 460 | html += '<td class="hour">' + padLeft(current.toString()) + '</td>'; | ||
849 | 461 | current++; | ||
850 | 462 | } | ||
851 | 463 | html += '</tr>'; | ||
852 | 464 | } | ||
853 | 465 | } | ||
854 | 466 | table.html(html); | ||
855 | 467 | }, | ||
856 | 468 | |||
857 | 469 | fillMinutes = function () { | ||
858 | 470 | var table = picker.widget.find('.timepicker .timepicker-minutes table'), html = '', current = 0, i, j; | ||
859 | 471 | table.parent().hide(); | ||
860 | 472 | for (i = 0; i < 5; i++) { | ||
861 | 473 | html += '<tr>'; | ||
862 | 474 | for (j = 0; j < 4; j += 1) { | ||
863 | 475 | html += '<td class="minute">' + padLeft(current.toString()) + '</td>'; | ||
864 | 476 | current += 3; | ||
865 | 477 | } | ||
866 | 478 | html += '</tr>'; | ||
867 | 479 | } | ||
868 | 480 | table.html(html); | ||
869 | 481 | }, | ||
870 | 482 | |||
871 | 483 | fillSeconds = function () { | ||
872 | 484 | var table = picker.widget.find('.timepicker .timepicker-seconds table'), html = '', current = 0, i, j; | ||
873 | 485 | table.parent().hide(); | ||
874 | 486 | for (i = 0; i < 5; i++) { | ||
875 | 487 | html += '<tr>'; | ||
876 | 488 | for (j = 0; j < 4; j += 1) { | ||
877 | 489 | html += '<td class="second">' + padLeft(current.toString()) + '</td>'; | ||
878 | 490 | current += 3; | ||
879 | 491 | } | ||
880 | 492 | html += '</tr>'; | ||
881 | 493 | } | ||
882 | 494 | table.html(html); | ||
883 | 495 | }, | ||
884 | 496 | |||
885 | 497 | fillTime = function () { | ||
886 | 498 | if (!picker.date) return; | ||
887 | 499 | var timeComponents = picker.widget.find('.timepicker span[data-time-component]'), | ||
888 | 500 | hour = picker.date.hours(), | ||
889 | 501 | period = 'AM'; | ||
890 | 502 | if (!picker.options.use24hours) { | ||
891 | 503 | if (hour >= 12) period = 'PM'; | ||
892 | 504 | if (hour === 0) hour = 12; | ||
893 | 505 | else if (hour != 12) hour = hour % 12; | ||
894 | 506 | picker.widget.find('.timepicker [data-action=togglePeriod]').text(period); | ||
895 | 507 | } | ||
896 | 508 | timeComponents.filter('[data-time-component=hours]').text(padLeft(hour)); | ||
897 | 509 | timeComponents.filter('[data-time-component=minutes]').text(padLeft(picker.date.minutes())); | ||
898 | 510 | timeComponents.filter('[data-time-component=seconds]').text(padLeft(picker.date.second())); | ||
899 | 511 | }, | ||
900 | 512 | |||
901 | 513 | click = function (e) { | ||
902 | 514 | e.stopPropagation(); | ||
903 | 515 | e.preventDefault(); | ||
904 | 516 | picker.unset = false; | ||
905 | 517 | var target = $(e.target).closest('span, td, th'), month, year, step, day, oldDate = pMoment(picker.date); | ||
906 | 518 | if (target.length === 1) { | ||
907 | 519 | if (!target.is('.disabled')) { | ||
908 | 520 | switch (target[0].nodeName.toLowerCase()) { | ||
909 | 521 | case 'th': | ||
910 | 522 | switch (target[0].className) { | ||
911 | 523 | case 'switch': | ||
912 | 524 | showMode(1); | ||
913 | 525 | break; | ||
914 | 526 | case 'prev': | ||
915 | 527 | case 'next': | ||
916 | 528 | step = dpGlobal.modes[picker.viewMode].navStep; | ||
917 | 529 | if (target[0].className === 'prev') step = step * -1; | ||
918 | 530 | picker.viewDate.add(step, dpGlobal.modes[picker.viewMode].navFnc); | ||
919 | 531 | fillDate(); | ||
920 | 532 | break; | ||
921 | 533 | } | ||
922 | 534 | break; | ||
923 | 535 | case 'span': | ||
924 | 536 | if (target.is('.month')) { | ||
925 | 537 | month = target.parent().find('span').index(target); | ||
926 | 538 | picker.viewDate.month(month); | ||
927 | 539 | } else { | ||
928 | 540 | year = parseInt(target.text(), 10) || 0; | ||
929 | 541 | picker.viewDate.year(year); | ||
930 | 542 | } | ||
931 | 543 | if (picker.viewMode !== 0) { | ||
932 | 544 | picker.date = pMoment({ | ||
933 | 545 | y: picker.viewDate.year(), | ||
934 | 546 | M: picker.viewDate.month(), | ||
935 | 547 | d: picker.viewDate.date(), | ||
936 | 548 | h: picker.date.hours(), | ||
937 | 549 | m: picker.date.minutes() | ||
938 | 550 | }); | ||
939 | 551 | notifyChange(oldDate, e.type); | ||
940 | 552 | } | ||
941 | 553 | showMode(-1); | ||
942 | 554 | fillDate(); | ||
943 | 555 | break; | ||
944 | 556 | case 'td': | ||
945 | 557 | if (target.is('.day')) { | ||
946 | 558 | day = parseInt(target.text(), 10) || 1; | ||
947 | 559 | month = picker.viewDate.month(); | ||
948 | 560 | year = picker.viewDate.year(); | ||
949 | 561 | if (target.is('.old')) { | ||
950 | 562 | if (month === 0) { | ||
951 | 563 | month = 11; | ||
952 | 564 | year -= 1; | ||
953 | 565 | } else { | ||
954 | 566 | month -= 1; | ||
955 | 567 | } | ||
956 | 568 | } else if (target.is('.new')) { | ||
957 | 569 | if (month == 11) { | ||
958 | 570 | month = 0; | ||
959 | 571 | year += 1; | ||
960 | 572 | } else { | ||
961 | 573 | month += 1; | ||
962 | 574 | } | ||
963 | 575 | } | ||
964 | 576 | picker.date = pMoment({ | ||
965 | 577 | y: year, | ||
966 | 578 | M: month, | ||
967 | 579 | d: day, | ||
968 | 580 | h: picker.date.hours(), | ||
969 | 581 | m: picker.date.minutes() | ||
970 | 582 | } | ||
971 | 583 | ); | ||
972 | 584 | picker.viewDate = pMoment({ | ||
973 | 585 | y: year, M: month, d: Math.min(28, day) | ||
974 | 586 | }); | ||
975 | 587 | fillDate(); | ||
976 | 588 | set(); | ||
977 | 589 | notifyChange(oldDate, e.type); | ||
978 | 590 | } | ||
979 | 591 | break; | ||
980 | 592 | } | ||
981 | 593 | } | ||
982 | 594 | } | ||
983 | 595 | }, | ||
984 | 596 | |||
985 | 597 | actions = { | ||
986 | 598 | incrementHours: function () { | ||
987 | 599 | checkDate("add", "hours", 1); | ||
988 | 600 | }, | ||
989 | 601 | |||
990 | 602 | incrementMinutes: function () { | ||
991 | 603 | checkDate("add", "minutes", picker.options.minuteStepping); | ||
992 | 604 | }, | ||
993 | 605 | |||
994 | 606 | incrementSeconds: function () { | ||
995 | 607 | checkDate("add", "seconds", 1); | ||
996 | 608 | }, | ||
997 | 609 | |||
998 | 610 | decrementHours: function () { | ||
999 | 611 | checkDate("subtract", "hours", 1); | ||
1000 | 612 | }, | ||
1001 | 613 | |||
1002 | 614 | decrementMinutes: function () { | ||
1003 | 615 | checkDate("subtract", "minutes", picker.options.minuteStepping); | ||
1004 | 616 | }, | ||
1005 | 617 | |||
1006 | 618 | decrementSeconds: function () { | ||
1007 | 619 | checkDate("subtract", "seconds", 1); | ||
1008 | 620 | }, | ||
1009 | 621 | |||
1010 | 622 | togglePeriod: function () { | ||
1011 | 623 | var hour = picker.date.hours(); | ||
1012 | 624 | if (hour >= 12) hour -= 12; | ||
1013 | 625 | else hour += 12; | ||
1014 | 626 | picker.date.hours(hour); | ||
1015 | 627 | }, | ||
1016 | 628 | |||
1017 | 629 | showPicker: function () { | ||
1018 | 630 | picker.widget.find('.timepicker > div:not(.timepicker-picker)').hide(); | ||
1019 | 631 | picker.widget.find('.timepicker .timepicker-picker').show(); | ||
1020 | 632 | }, | ||
1021 | 633 | |||
1022 | 634 | showHours: function () { | ||
1023 | 635 | picker.widget.find('.timepicker .timepicker-picker').hide(); | ||
1024 | 636 | picker.widget.find('.timepicker .timepicker-hours').show(); | ||
1025 | 637 | }, | ||
1026 | 638 | |||
1027 | 639 | showMinutes: function () { | ||
1028 | 640 | picker.widget.find('.timepicker .timepicker-picker').hide(); | ||
1029 | 641 | picker.widget.find('.timepicker .timepicker-minutes').show(); | ||
1030 | 642 | }, | ||
1031 | 643 | |||
1032 | 644 | showSeconds: function () { | ||
1033 | 645 | picker.widget.find('.timepicker .timepicker-picker').hide(); | ||
1034 | 646 | picker.widget.find('.timepicker .timepicker-seconds').show(); | ||
1035 | 647 | }, | ||
1036 | 648 | |||
1037 | 649 | selectHour: function (e) { | ||
1038 | 650 | picker.date.hours(parseInt($(e.target).text(), 10)); | ||
1039 | 651 | actions.showPicker.call(picker); | ||
1040 | 652 | }, | ||
1041 | 653 | |||
1042 | 654 | selectMinute: function (e) { | ||
1043 | 655 | picker.date.minutes(parseInt($(e.target).text(), 10)); | ||
1044 | 656 | actions.showPicker.call(picker); | ||
1045 | 657 | }, | ||
1046 | 658 | |||
1047 | 659 | selectSecond: function (e) { | ||
1048 | 660 | picker.date.seconds(parseInt($(e.target).text(), 10)); | ||
1049 | 661 | actions.showPicker.call(picker); | ||
1050 | 662 | } | ||
1051 | 663 | }, | ||
1052 | 664 | |||
1053 | 665 | doAction = function (e) { | ||
1054 | 666 | var oldDate = pMoment(picker.date), action = $(e.currentTarget).data('action'), rv = actions[action].apply(picker, arguments); | ||
1055 | 667 | stopEvent(e); | ||
1056 | 668 | if (!picker.date) picker.date = pMoment({ y: 1970 }); | ||
1057 | 669 | set(); | ||
1058 | 670 | fillTime(); | ||
1059 | 671 | notifyChange(oldDate); | ||
1060 | 672 | return rv; | ||
1061 | 673 | }, | ||
1062 | 674 | |||
1063 | 675 | stopEvent = function (e) { | ||
1064 | 676 | e.stopPropagation(); | ||
1065 | 677 | e.preventDefault(); | ||
1066 | 678 | }, | ||
1067 | 679 | |||
1068 | 680 | change = function (e) { | ||
1069 | 681 | pMoment.lang(picker.options.language); | ||
1070 | 682 | var input = $(e.target), oldDate = pMoment(picker.date), d = pMoment(input.val(), Date.parse(picker.format), picker.options.useStrict); | ||
1071 | 683 | if (d.isValid()) { | ||
1072 | 684 | update(); | ||
1073 | 685 | picker.setValue(d); | ||
1074 | 686 | notifyChange(oldDate); | ||
1075 | 687 | set(); | ||
1076 | 688 | } | ||
1077 | 689 | else { | ||
1078 | 690 | picker.viewDate = oldDate; | ||
1079 | 691 | //picker.setValue(""); // unset the date when the input is erased | ||
1080 | 692 | notifyChange(oldDate); | ||
1081 | 693 | // notifyError(d); // We don't won't the error message. | ||
1082 | 694 | picker.unset = true; | ||
1083 | 695 | // input.val(''); // We don't need to clear the value of the inputbox. | ||
1084 | 696 | } | ||
1085 | 697 | }, | ||
1086 | 698 | |||
1087 | 699 | showMode = function (dir) { | ||
1088 | 700 | if (dir) { | ||
1089 | 701 | picker.viewMode = Math.max(picker.minViewMode, Math.min(2, picker.viewMode + dir)); | ||
1090 | 702 | } | ||
1091 | 703 | |||
1092 | 704 | picker.widget.find('.datepicker > div').hide().filter('.datepicker-' + dpGlobal.modes[picker.viewMode].clsName).show(); | ||
1093 | 705 | }, | ||
1094 | 706 | |||
1095 | 707 | attachDatePickerEvents = function () { | ||
1096 | 708 | var $this, $parent, expanded, closed, collapseData; | ||
1097 | 709 | picker.widget.on('click', '.datepicker *', $.proxy(click, this)); // this handles date picker clicks | ||
1098 | 710 | picker.widget.on('click', '[data-action]', $.proxy(doAction, this)); // this handles time picker clicks | ||
1099 | 711 | picker.widget.on('mousedown', $.proxy(stopEvent, this)); | ||
1100 | 712 | if (picker.options.pickDate && picker.options.pickTime) { | ||
1101 | 713 | picker.widget.on('click.togglePicker', '.accordion-toggle', function (e) { | ||
1102 | 714 | e.stopPropagation(); | ||
1103 | 715 | $this = $(this); | ||
1104 | 716 | $parent = $this.closest('ul'); | ||
1105 | 717 | expanded = $parent.find('.in'); | ||
1106 | 718 | closed = $parent.find('.collapse:not(.in)'); | ||
1107 | 719 | |||
1108 | 720 | if (expanded && expanded.length) { | ||
1109 | 721 | collapseData = expanded.data('collapse'); | ||
1110 | 722 | if (collapseData && collapseData.transitioning) return; | ||
1111 | 723 | expanded.collapse('hide'); | ||
1112 | 724 | closed.collapse('show'); | ||
1113 | 725 | $this.find('span').toggleClass(picker.options.icons.time + ' ' + picker.options.icons.date); | ||
1114 | 726 | picker.element.find('.input-group-addon span').toggleClass(picker.options.icons.time + ' ' + picker.options.icons.date); | ||
1115 | 727 | } | ||
1116 | 728 | }); | ||
1117 | 729 | } | ||
1118 | 730 | if (picker.isInput) { | ||
1119 | 731 | picker.element.on({ | ||
1120 | 732 | 'focus': $.proxy(picker.show, this), | ||
1121 | 733 | 'change': $.proxy(change, this), | ||
1122 | 734 | 'blur': $.proxy(picker.hide, this) | ||
1123 | 735 | }); | ||
1124 | 736 | } else { | ||
1125 | 737 | picker.element.on({ | ||
1126 | 738 | 'change': $.proxy(change, this) | ||
1127 | 739 | }, 'input'); | ||
1128 | 740 | if (picker.component) { | ||
1129 | 741 | picker.component.on('click', $.proxy(picker.show, this)); | ||
1130 | 742 | } else { | ||
1131 | 743 | picker.element.on('click', $.proxy(picker.show, this)); | ||
1132 | 744 | } | ||
1133 | 745 | } | ||
1134 | 746 | }, | ||
1135 | 747 | |||
1136 | 748 | attachDatePickerGlobalEvents = function () { | ||
1137 | 749 | $(window).on( | ||
1138 | 750 | 'resize.datetimepicker' + picker.id, $.proxy(place, this)); | ||
1139 | 751 | if (!picker.isInput) { | ||
1140 | 752 | $(document).on( | ||
1141 | 753 | 'mousedown.datetimepicker' + picker.id, $.proxy(picker.hide, this)); | ||
1142 | 754 | } | ||
1143 | 755 | }, | ||
1144 | 756 | |||
1145 | 757 | detachDatePickerEvents = function () { | ||
1146 | 758 | picker.widget.off('click', '.datepicker *', picker.click); | ||
1147 | 759 | picker.widget.off('click', '[data-action]'); | ||
1148 | 760 | picker.widget.off('mousedown', picker.stopEvent); | ||
1149 | 761 | if (picker.options.pickDate && picker.options.pickTime) { | ||
1150 | 762 | picker.widget.off('click.togglePicker'); | ||
1151 | 763 | } | ||
1152 | 764 | if (picker.isInput) { | ||
1153 | 765 | picker.element.off({ | ||
1154 | 766 | 'focus': picker.show, | ||
1155 | 767 | 'change': picker.change | ||
1156 | 768 | }); | ||
1157 | 769 | } else { | ||
1158 | 770 | picker.element.off({ | ||
1159 | 771 | 'change': picker.change | ||
1160 | 772 | }, 'input'); | ||
1161 | 773 | if (picker.component) { | ||
1162 | 774 | picker.component.off('click', picker.show); | ||
1163 | 775 | } else { | ||
1164 | 776 | picker.element.off('click', picker.show); | ||
1165 | 777 | } | ||
1166 | 778 | } | ||
1167 | 779 | }, | ||
1168 | 780 | |||
1169 | 781 | detachDatePickerGlobalEvents = function () { | ||
1170 | 782 | $(window).off('resize.datetimepicker' + picker.id); | ||
1171 | 783 | if (!picker.isInput) { | ||
1172 | 784 | $(document).off('mousedown.datetimepicker' + picker.id); | ||
1173 | 785 | } | ||
1174 | 786 | }, | ||
1175 | 787 | |||
1176 | 788 | isInFixed = function () { | ||
1177 | 789 | if (picker.element) { | ||
1178 | 790 | var parents = picker.element.parents(), inFixed = false, i; | ||
1179 | 791 | for (i = 0; i < parents.length; i++) { | ||
1180 | 792 | if ($(parents[i]).css('position') == 'fixed') { | ||
1181 | 793 | inFixed = true; | ||
1182 | 794 | break; | ||
1183 | 795 | } | ||
1184 | 796 | } | ||
1185 | 797 | ; | ||
1186 | 798 | return inFixed; | ||
1187 | 799 | } else { | ||
1188 | 800 | return false; | ||
1189 | 801 | } | ||
1190 | 802 | }, | ||
1191 | 803 | |||
1192 | 804 | set = function () { | ||
1193 | 805 | pMoment.lang(picker.options.language); | ||
1194 | 806 | var formatted = '', input; | ||
1195 | 807 | if (!picker.unset) formatted = pMoment(picker.date).format(picker.format); | ||
1196 | 808 | if (!picker.isInput) { | ||
1197 | 809 | if (picker.component) { | ||
1198 | 810 | input = picker.element.find('input'); | ||
1199 | 811 | input.val(formatted); | ||
1200 | 812 | } | ||
1201 | 813 | picker.element.data('date', formatted); | ||
1202 | 814 | } else { | ||
1203 | 815 | picker.element.val(formatted); | ||
1204 | 816 | } | ||
1205 | 817 | if (!picker.options.pickTime) picker.hide(); | ||
1206 | 818 | }, | ||
1207 | 819 | |||
1208 | 820 | checkDate = function (direction, unit, amount) { | ||
1209 | 821 | pMoment.lang(picker.options.language); | ||
1210 | 822 | var newDate; | ||
1211 | 823 | if (direction == "add") { | ||
1212 | 824 | newDate = pMoment(picker.date); | ||
1213 | 825 | if (newDate.hours() == 23) newDate.add(amount, unit); | ||
1214 | 826 | newDate.add(amount, unit); | ||
1215 | 827 | } | ||
1216 | 828 | else { | ||
1217 | 829 | newDate = pMoment(picker.date).subtract(amount, unit); | ||
1218 | 830 | } | ||
1219 | 831 | if (newDate.isAfter(picker.options.endDate) || pMoment(newDate.subtract(amount, unit)).isBefore(picker.options.startDate) || isInDisableDates(newDate)) { | ||
1220 | 832 | notifyError(newDate.format(picker.format)); | ||
1221 | 833 | return; | ||
1222 | 834 | } | ||
1223 | 835 | |||
1224 | 836 | if (direction == "add") { | ||
1225 | 837 | picker.date.add(amount, unit); | ||
1226 | 838 | } | ||
1227 | 839 | else { | ||
1228 | 840 | picker.date.subtract(amount, unit); | ||
1229 | 841 | } | ||
1230 | 842 | }, | ||
1231 | 843 | |||
1232 | 844 | isInDisableDates = function (date) { | ||
1233 | 845 | pMoment.lang(picker.options.language); | ||
1234 | 846 | var disabled = picker.options.disabledDates, i; | ||
1235 | 847 | for (i in disabled) { | ||
1236 | 848 | if (disabled[i] == pMoment(date).format("L")) { | ||
1237 | 849 | return true; | ||
1238 | 850 | } | ||
1239 | 851 | } | ||
1240 | 852 | return false; | ||
1241 | 853 | }, | ||
1242 | 854 | |||
1243 | 855 | isInEnableDates = function (date) { | ||
1244 | 856 | pMoment.lang(picker.options.language); | ||
1245 | 857 | var enabled = picker.options.enabledDates, i; | ||
1246 | 858 | if (enabled.length) { | ||
1247 | 859 | for (i in enabled) { | ||
1248 | 860 | if (enabled[i] == pMoment(date).format("L")) { | ||
1249 | 861 | return true; | ||
1250 | 862 | } | ||
1251 | 863 | } | ||
1252 | 864 | return false; | ||
1253 | 865 | } | ||
1254 | 866 | return enabled === false ? true : false; | ||
1255 | 867 | }, | ||
1256 | 868 | padLeft = function (string) { | ||
1257 | 869 | string = string.toString(); | ||
1258 | 870 | if (string.length >= 2) return string; | ||
1259 | 871 | else return '0' + string; | ||
1260 | 872 | }, | ||
1261 | 873 | |||
1262 | 874 | getTemplate = function (pickDate, pickTime, collapse) { | ||
1263 | 875 | if (pickDate && pickTime) { | ||
1264 | 876 | return ( | ||
1265 | 877 | '<div class="bootstrap-datetimepicker-widget dropdown-menu" style="z-index:9999 !important;">' + | ||
1266 | 878 | '<ul class="list-unstyled">' + | ||
1267 | 879 | '<li' + (collapse ? ' class="collapse in"' : '') + '>' + | ||
1268 | 880 | '<div class="datepicker">' + dpGlobal.template + '</div>' + | ||
1269 | 881 | '</li>' + | ||
1270 | 882 | '<li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="' + picker.options.icons.time + '"></span></a></li>' + | ||
1271 | 883 | '<li' + (collapse ? ' class="collapse"' : '') + '>' + | ||
1272 | 884 | '<div class="timepicker">' + tpGlobal.getTemplate() + '</div>' + | ||
1273 | 885 | '</li>' + | ||
1274 | 886 | '</ul>' + | ||
1275 | 887 | '</div>' | ||
1276 | 888 | ); | ||
1277 | 889 | } else if (pickTime) { | ||
1278 | 890 | return ( | ||
1279 | 891 | '<div class="bootstrap-datetimepicker-widget dropdown-menu">' + | ||
1280 | 892 | '<div class="timepicker">' + tpGlobal.getTemplate() + '</div>' + | ||
1281 | 893 | '</div>' | ||
1282 | 894 | ); | ||
1283 | 895 | } else { | ||
1284 | 896 | return ( | ||
1285 | 897 | '<div class="bootstrap-datetimepicker-widget dropdown-menu">' + | ||
1286 | 898 | '<div class="datepicker">' + dpGlobal.template + '</div>' + | ||
1287 | 899 | '</div>' | ||
1288 | 900 | ); | ||
1289 | 901 | } | ||
1290 | 902 | }, | ||
1291 | 903 | |||
1292 | 904 | dpGlobal = { | ||
1293 | 905 | modes: [ | ||
1294 | 906 | { | ||
1295 | 907 | clsName: 'days', | ||
1296 | 908 | navFnc: 'month', | ||
1297 | 909 | navStep: 1 | ||
1298 | 910 | }, | ||
1299 | 911 | { | ||
1300 | 912 | clsName: 'months', | ||
1301 | 913 | navFnc: 'year', | ||
1302 | 914 | navStep: 1 | ||
1303 | 915 | }, | ||
1304 | 916 | { | ||
1305 | 917 | clsName: 'years', | ||
1306 | 918 | navFnc: 'year', | ||
1307 | 919 | navStep: 10 | ||
1308 | 920 | }], | ||
1309 | 921 | headTemplate: | ||
1310 | 922 | '<thead>' + | ||
1311 | 923 | '<tr>' + | ||
1312 | 924 | '<th class="prev">‹</th><th colspan="5" class="switch"></th><th class="next">›</th>' + | ||
1313 | 925 | '</tr>' + | ||
1314 | 926 | '</thead>', | ||
1315 | 927 | contTemplate: | ||
1316 | 928 | '<tbody><tr><td colspan="7"></td></tr></tbody>' | ||
1317 | 929 | }, | ||
1318 | 930 | |||
1319 | 931 | tpGlobal = { | ||
1320 | 932 | hourTemplate: '<span data-action="showHours" data-time-component="hours" class="timepicker-hour"></span>', | ||
1321 | 933 | minuteTemplate: '<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>', | ||
1322 | 934 | secondTemplate: '<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"></span>' | ||
1323 | 935 | }; | ||
1324 | 936 | |||
1325 | 937 | dpGlobal.template = | ||
1326 | 938 | '<div class="datepicker-days">' + | ||
1327 | 939 | '<table class="table-condensed">' + dpGlobal.headTemplate + '<tbody></tbody></table>' + | ||
1328 | 940 | '</div>' + | ||
1329 | 941 | '<div class="datepicker-months">' + | ||
1330 | 942 | '<table class="table-condensed">' + dpGlobal.headTemplate + dpGlobal.contTemplate + '</table>' + | ||
1331 | 943 | '</div>' + | ||
1332 | 944 | '<div class="datepicker-years">' + | ||
1333 | 945 | '<table class="table-condensed">' + dpGlobal.headTemplate + dpGlobal.contTemplate + '</table>' + | ||
1334 | 946 | '</div>'; | ||
1335 | 947 | |||
1336 | 948 | tpGlobal.getTemplate = function () { | ||
1337 | 949 | return ( | ||
1338 | 950 | '<div class="timepicker-picker">' + | ||
1339 | 951 | '<table class="table-condensed">' + | ||
1340 | 952 | '<tr>' + | ||
1341 | 953 | '<td><a href="#" class="btn" data-action="incrementHours"><span class="' + picker.options.icons.up + '"></span></a></td>' + | ||
1342 | 954 | '<td class="separator"></td>' + | ||
1343 | 955 | '<td>' + (picker.options.useMinutes ? '<a href="#" class="btn" data-action="incrementMinutes"><span class="' + picker.options.icons.up + '"></span></a>' : '') + '</td>' + | ||
1344 | 956 | (picker.options.useSeconds ? | ||
1345 | 957 | '<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="' + picker.options.icons.up + '"></span></a></td>' : '') + | ||
1346 | 958 | (picker.options.use24hours ? '' : '<td class="separator"></td>') + | ||
1347 | 959 | '</tr>' + | ||
1348 | 960 | '<tr>' + | ||
1349 | 961 | '<td>' + tpGlobal.hourTemplate + '</td> ' + | ||
1350 | 962 | '<td class="separator">:</td>' + | ||
1351 | 963 | '<td>' + (picker.options.useMinutes ? tpGlobal.minuteTemplate : '<span class="timepicker-minute">00</span>') + '</td> ' + | ||
1352 | 964 | (picker.options.useSeconds ? | ||
1353 | 965 | '<td class="separator">:</td><td>' + tpGlobal.secondTemplate + '</td>' : '') + | ||
1354 | 966 | (picker.options.use24hours ? '' : '<td class="separator"></td>' + | ||
1355 | 967 | '<td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>') + | ||
1356 | 968 | '</tr>' + | ||
1357 | 969 | '<tr>' + | ||
1358 | 970 | '<td><a href="#" class="btn" data-action="decrementHours"><span class="' + picker.options.icons.down + '"></span></a></td>' + | ||
1359 | 971 | '<td class="separator"></td>' + | ||
1360 | 972 | '<td>' + (picker.options.useMinutes ? '<a href="#" class="btn" data-action="decrementMinutes"><span class="' + picker.options.icons.down + '"></span></a>' : '') + '</td>' + | ||
1361 | 973 | (picker.options.useSeconds ? | ||
1362 | 974 | '<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="' + picker.options.icons.down + '"></span></a></td>' : '') + | ||
1363 | 975 | (picker.options.use24hours ? '' : '<td class="separator"></td>') + | ||
1364 | 976 | '</tr>' + | ||
1365 | 977 | '</table>' + | ||
1366 | 978 | '</div>' + | ||
1367 | 979 | '<div class="timepicker-hours" data-action="selectHour">' + | ||
1368 | 980 | '<table class="table-condensed"></table>' + | ||
1369 | 981 | '</div>' + | ||
1370 | 982 | '<div class="timepicker-minutes" data-action="selectMinute">' + | ||
1371 | 983 | '<table class="table-condensed"></table>' + | ||
1372 | 984 | '</div>' + | ||
1373 | 985 | (picker.options.useSeconds ? | ||
1374 | 986 | '<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>' : '') | ||
1375 | 987 | ); | ||
1376 | 988 | }; | ||
1377 | 989 | |||
1378 | 990 | picker.destroy = function () { | ||
1379 | 991 | detachDatePickerEvents(); | ||
1380 | 992 | detachDatePickerGlobalEvents(); | ||
1381 | 993 | picker.widget.remove(); | ||
1382 | 994 | picker.element.removeData('DateTimePicker'); | ||
1383 | 995 | if (picker.component) | ||
1384 | 996 | picker.component.removeData('DateTimePicker'); | ||
1385 | 997 | }; | ||
1386 | 998 | |||
1387 | 999 | picker.show = function (e) { | ||
1388 | 1000 | picker.widget.show(); | ||
1389 | 1001 | picker.height = picker.component ? picker.component.outerHeight() : picker.element.outerHeight(); | ||
1390 | 1002 | place(); | ||
1391 | 1003 | picker.element.trigger({ | ||
1392 | 1004 | type: 'show.dp', | ||
1393 | 1005 | date: pMoment(picker.date) | ||
1394 | 1006 | }); | ||
1395 | 1007 | attachDatePickerGlobalEvents(); | ||
1396 | 1008 | if (e) { | ||
1397 | 1009 | stopEvent(e); | ||
1398 | 1010 | } | ||
1399 | 1011 | }, | ||
1400 | 1012 | |||
1401 | 1013 | picker.disable = function () { | ||
1402 | 1014 | var input = picker.element.find('input'); | ||
1403 | 1015 | if(!input.prop('disabled')) return; | ||
1404 | 1016 | |||
1405 | 1017 | input.prop('disabled', true); | ||
1406 | 1018 | detachDatePickerEvents(); | ||
1407 | 1019 | }, | ||
1408 | 1020 | |||
1409 | 1021 | picker.enable = function () { | ||
1410 | 1022 | var input = picker.element.find('input'); | ||
1411 | 1023 | if(!input.prop('disabled')) return; | ||
1412 | 1024 | |||
1413 | 1025 | input.prop('disabled', true); | ||
1414 | 1026 | attachDatePickerEvents(); | ||
1415 | 1027 | }, | ||
1416 | 1028 | |||
1417 | 1029 | picker.hide = function (event) { | ||
1418 | 1030 | if (event && $(event.target).is(picker.element.attr("id"))) | ||
1419 | 1031 | return; | ||
1420 | 1032 | // Ignore event if in the middle of a picker transition | ||
1421 | 1033 | var collapse = picker.widget.find('.collapse'), i, collapseData; | ||
1422 | 1034 | for (i = 0; i < collapse.length; i++) { | ||
1423 | 1035 | collapseData = collapse.eq(i).data('collapse'); | ||
1424 | 1036 | if (collapseData && collapseData.transitioning) | ||
1425 | 1037 | return; | ||
1426 | 1038 | } | ||
1427 | 1039 | picker.widget.hide(); | ||
1428 | 1040 | picker.viewMode = picker.startViewMode; | ||
1429 | 1041 | showMode(); | ||
1430 | 1042 | picker.element.trigger({ | ||
1431 | 1043 | type: 'hide.dp', | ||
1432 | 1044 | date: pMoment(picker.date) | ||
1433 | 1045 | }); | ||
1434 | 1046 | detachDatePickerGlobalEvents(); | ||
1435 | 1047 | }, | ||
1436 | 1048 | |||
1437 | 1049 | picker.setValue = function (newDate) { | ||
1438 | 1050 | pMoment.lang(picker.options.language); | ||
1439 | 1051 | if (!newDate) { | ||
1440 | 1052 | picker.unset = true; | ||
1441 | 1053 | } else { | ||
1442 | 1054 | picker.unset = false; | ||
1443 | 1055 | } | ||
1444 | 1056 | if (!pMoment.isMoment(newDate)) newDate = pMoment(newDate); | ||
1445 | 1057 | if (newDate.isValid()) { | ||
1446 | 1058 | picker.date = newDate; | ||
1447 | 1059 | set(); | ||
1448 | 1060 | picker.viewDate = pMoment({ y: picker.date.year(), M: picker.date.month() }); | ||
1449 | 1061 | fillDate(); | ||
1450 | 1062 | fillTime(); | ||
1451 | 1063 | } | ||
1452 | 1064 | else { | ||
1453 | 1065 | notifyError(newDate); | ||
1454 | 1066 | } | ||
1455 | 1067 | }, | ||
1456 | 1068 | |||
1457 | 1069 | picker.getDate = function () { | ||
1458 | 1070 | if (picker.unset) return null; | ||
1459 | 1071 | return picker.date; | ||
1460 | 1072 | }, | ||
1461 | 1073 | |||
1462 | 1074 | picker.setDate = function (date) { | ||
1463 | 1075 | date = pMoment(date); | ||
1464 | 1076 | if (!date) picker.setValue(null); | ||
1465 | 1077 | else picker.setValue(date); | ||
1466 | 1078 | }, | ||
1467 | 1079 | |||
1468 | 1080 | picker.setEnabledDates = function (dates) { | ||
1469 | 1081 | if (!dates) picker.options.enabledDates = false; | ||
1470 | 1082 | else picker.options.enabledDates = dates; | ||
1471 | 1083 | if (picker.viewDate) update(); | ||
1472 | 1084 | }, | ||
1473 | 1085 | |||
1474 | 1086 | picker.setEndDate = function (date) { | ||
1475 | 1087 | picker.options.endDate = pMoment(date); | ||
1476 | 1088 | if (!picker.options.endDate.isValid()) { | ||
1477 | 1089 | picker.options.endDate = pMoment().add(50, "y"); | ||
1478 | 1090 | } | ||
1479 | 1091 | if (picker.viewDate) update(); | ||
1480 | 1092 | }, | ||
1481 | 1093 | |||
1482 | 1094 | picker.setStartDate = function (date) { | ||
1483 | 1095 | picker.options.startDate = pMoment(date); | ||
1484 | 1096 | if (!picker.options.startDate.isValid()) { | ||
1485 | 1097 | picker.options.startDate = pMoment({ y: 1970 }); | ||
1486 | 1098 | } | ||
1487 | 1099 | if (picker.viewDate) update(); | ||
1488 | 1100 | }; | ||
1489 | 1101 | |||
1490 | 1102 | init(); | ||
1491 | 1103 | }; | ||
1492 | 1104 | |||
1493 | 1105 | $.fn.datetimepicker = function (options) { | ||
1494 | 1106 | return this.each(function () { | ||
1495 | 1107 | var $this = $(this), data = $this.data('DateTimePicker'); | ||
1496 | 1108 | if (!data) $this.data('DateTimePicker', new DateTimePicker(this, options)); | ||
1497 | 1109 | }); | ||
1498 | 1110 | }; | ||
1499 | 1111 | })); | ||
1500 | 0 | 1112 | ||
1501 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.min.js' | |||
1502 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.min.js 1970-01-01 00:00:00 +0000 | |||
1503 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.min.js 2014-02-14 15:04:13 +0000 | |||
1504 | @@ -0,0 +1,28 @@ | |||
1505 | 1 | /** | ||
1506 | 2 | * version 2.1.20 | ||
1507 | 3 | * @license | ||
1508 | 4 | * ========================================================= | ||
1509 | 5 | * bootstrap-datetimepicker.js | ||
1510 | 6 | * http://www.eyecon.ro/bootstrap-datepicker | ||
1511 | 7 | * ========================================================= | ||
1512 | 8 | * Copyright 2012 Stefan Petre | ||
1513 | 9 | * | ||
1514 | 10 | * Contributions: | ||
1515 | 11 | * - updated for Bootstrap v3 by Jonathan Peterson (@Eonasdan) and (almost) | ||
1516 | 12 | * completely rewritten to use Momentjs | ||
1517 | 13 | * - based on tarruda's bootstrap-datepicker | ||
1518 | 14 | * | ||
1519 | 15 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
1520 | 16 | * you may not use this file except in compliance with the License. | ||
1521 | 17 | * You may obtain a copy of the License at | ||
1522 | 18 | * | ||
1523 | 19 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
1524 | 20 | * | ||
1525 | 21 | * Unless required by applicable law or agreed to in writing, software | ||
1526 | 22 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
1527 | 23 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
1528 | 24 | * See the License for the specific language governing permissions and | ||
1529 | 25 | * limitations under the License. | ||
1530 | 26 | * ========================================================= | ||
1531 | 27 | */ | ||
1532 | 28 | (function(e){if(typeof define==="function"&&define.amd){define(["jquery","moment"],e)}else{if(!jQuery){throw"bootstrap-datetimepicker requires jQuery to be loaded first"}else if(!moment){throw"bootstrap-datetimepicker requires moment.js to be loaded first"}else{e(jQuery,moment)}}})(function(e,t){if(typeof t==="undefined"){alert("momentjs is requried");throw new Error("momentjs is requried")}var n=0,r=t,i=function(t,i){var s={pickDate:true,pickTime:true,useMinutes:true,useSeconds:false,minuteStepping:1,startDate:new r({y:1970}),endDate:(new r).add(50,"y"),collapse:true,language:"en",defaultDate:"",disabledDates:[],enabledDates:false,icons:{},useStrict:false,calendarWeeks:false},o={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},u=this,a=function(){var a=false,l,c,h;u.options=e.extend({},s,i);u.options.icons=e.extend({},o,u.options.icons);u.element=e(t);f();if(!(u.options.pickTime||u.options.pickDate))throw new Error("Must choose at least one picker");u.id=n++;r.lang(u.options.language);u.date=r();u.unset=false;u.isInput=u.element.is("input");u.component=false;if(u.element.hasClass("input-group")){if(u.element.find(".datepickerbutton").size()==0){u.component=u.element.find("[class^='input-group-']")}else{u.component=u.element.find(".datepickerbutton")}}u.format=u.options.format;h=r()._lang._longDateFormat;if(!u.format){if(u.isInput)u.format=u.element.data("format");else u.format=u.element.find("input").data("format");if(!u.format){u.format=u.options.pickDate?h.L:"";if(u.options.pickDate&&u.options.pickTime)u.format+=" ";u.format+=u.options.pickTime?h.LT:"";if(u.options.useSeconds){if(~h.LT.indexOf(" A")){u.format=u.format.split(" A")[0]+":ss A"}else{u.format+=":ss"}}}}u.options.use24hours=u.format.toLowerCase().indexOf("a")<1;if(u.component)a=u.component.find("span");if(u.options.pickTime){if(a)a.addClass(u.options.icons.time)}if(u.options.pickDate){if(a){a.removeClass(u.options.icons.time);a.addClass(u.options.icons.date)}}u.widget=e(F(u.options.pickDate,u.options.pickTime,u.options.collapse)).appendTo("body");u.minViewMode=u.options.minViewMode||u.element.data("date-minviewmode")||0;if(typeof u.minViewMode==="string"){switch(u.minViewMode){case"months":u.minViewMode=1;break;case"years":u.minViewMode=2;break;default:u.minViewMode=0;break}}if(u.options.calendarWeeks)u.widget.find("tfoot th.today").attr("colspan",function(e,t){return parseInt(t)+1});u.viewMode=u.options.viewMode||u.element.data("date-viewmode")||0;if(typeof u.viewMode==="string"){switch(u.viewMode){case"months":u.viewMode=1;break;case"years":u.viewMode=2;break;default:u.viewMode=0;break}}for(l=0;l<u.options.disabledDates.length;l++){c=u.options.disabledDates[l];c=r(c);if(!c.isValid())c=r(u.options.startDate).subtract(1,"day");u.options.disabledDates[l]=c.format("L")}for(l=0;l<u.options.enabledDates.length;l++){c=u.options.enabledDates[l];c=r(c);if(!c.isValid())c=r(u.options.startDate).subtract(1,"day");u.options.enabledDates[l]=c.format("L")}u.startViewMode=u.viewMode;u.setStartDate(u.options.startDate||u.element.data("date-startdate"));u.setEndDate(u.options.endDate||u.element.data("date-enddate"));d();v();y();b();w();p();k();L();if(u.options.defaultDate!=="")u.setValue(u.options.defaultDate)},f=function(){var e=u.element.data();if(e.pickdate!==undefined)u.options.pickDate=e.pickdate;if(e.picktime!==undefined)u.options.pickTime=e.picktime;if(e.useminutes!==undefined)u.options.useMinutes=e.useminutes;if(e.useseconds!==undefined)u.options.useSeconds=e.useseconds;if(e.minutestepping!==undefined)u.options.minuteStepping=e.minutestepping;if(e.startdate!==undefined)u.options.startDate=e.startdate;if(e.enddate!==undefined)u.options.endDate=e.enddate;if(e.collapse!==undefined)u.options.collapse=e.collapse;if(e.language!==undefined)u.options.language=e.language;if(e.defaultdate!==undefined)u.options.defaultDate=e.defaultdate;if(e.disableddates!==undefined)u.options.disabledDates=e.disableddates;if(e.enableddates!==undefined)u.options.enabledDates=e.enableddates;if(e.icons!==undefined)u.options.icons=e.icons;if(e.usestrict!==undefined)u.options.useStrict=e.usestrict;if(e.calendarWeeks!==undefined)u.options.calendarWeeks=e.calendarWeeks},l=function(){var t="absolute",n=u.component?u.component.offset():u.element.offset(),r=e(window);u.width=u.component?u.component.outerWidth():u.element.outerWidth();n.top=n.top+u.element.outerHeight();if(u.options.width!==undefined){u.widget.width(u.options.width)}if(u.options.orientation==="left"){u.widget.addClass("left-oriented");n.left=n.left-u.widget.width()+20}if(_()){t="fixed";n.top-=r.scrollTop();n.left-=r.scrollLeft()}if(r.width()<n.left+u.widget.outerWidth()){n.right=r.width()-n.left-u.width;n.left="auto";u.widget.addClass("pull-right")}else{n.right="auto";u.widget.removeClass("pull-right")}u.widget.css({position:t,top:n.top,left:n.left,right:n.right})},c=function(e,t){u.element.trigger({type:"change.dp",date:r(u.date),oldDate:r(e)})},h=function(e){u.element.trigger({type:"error.dp",date:r(e)})},p=function(e){r.lang(u.options.language);var t=e;if(!t){if(u.isInput){t=u.element.val()}else{t=u.element.find("input").val()}if(t)u.date=r(t,u.format,u.options.useStrict);if(!u.date)u.date=r()}u.viewDate=r(u.date).startOf("month");g();E()},d=function(){r.lang(u.options.language);var t=e("<tr>"),n=r.weekdaysMin(),i;if(u.options.calendarWeeks){var s='<th class="cw">Wk</th>';t.append(s)}if(r()._lang._week.dow==0){for(i=0;i<7;i++){t.append('<th class="dow">'+n[i]+"</th>")}}else{for(i=1;i<8;i++){if(i==7){t.append('<th class="dow">'+n[0]+"</th>")}else{t.append('<th class="dow">'+n[i]+"</th>")}}}u.widget.find(".datepicker-days thead").append(t)},v=function(){r.lang(u.options.language);var e="",t=0,n=r.monthsShort();while(t<12){e+='<span class="month">'+n[t++]+"</span>"}u.widget.find(".datepicker-months td").append(e)},m=function(){return new Date(Date.UTC.apply(Date,arguments))},g=function(){r.lang(u.options.language);var t=u.viewDate.year(),n=u.viewDate.month(),i=u.options.startDate.year(),s=u.options.startDate.month(),o=u.options.endDate.year(),a=u.options.endDate.month(),f,l,c=[],h,p,d,v,g,y,b=r.months();u.widget.find(".datepicker-days").find(".disabled").removeClass("disabled");u.widget.find(".datepicker-months").find(".disabled").removeClass("disabled");u.widget.find(".datepicker-years").find(".disabled").removeClass("disabled");u.widget.find(".datepicker-days th:eq(1)").text(b[n]+" "+t);f=r(u.viewDate).subtract("months",1);v=f.daysInMonth();f.date(v).startOf("week");if(t==i&&n<=s||t<i){u.widget.find(".datepicker-days th:eq(0)").addClass("disabled")}if(t==o&&n>=a||t>o){u.widget.find(".datepicker-days th:eq(2)").addClass("disabled")}l=r(f).add(42,"d");while(f.isBefore(l)){if(f.weekday()===r().startOf("week").weekday()){h=e("<tr>");c.push(h);if(u.options.calendarWeeks){var w=new Date(+f+(r().startOf("week").weekday()-f.weekday()-7)%7*864e5),E=new Date(+w+(7+4-w.getUTCDay())%7*864e5),S=new Date(+(S=m(E.getUTCFullYear(),0,1))+(7+4-S.getUTCDay())%7*864e5),x=(E-S)/864e5/7+1;h.append('<td class="cw">'+parseInt(x)+"</td>")}}p="";if(f.year()<t||f.year()==t&&f.month()<n){p+=" old"}else if(f.year()>t||f.year()==t&&f.month()>n){p+=" new"}if(f.isSame(r({y:u.date.year(),M:u.date.month(),d:u.date.date()}))){p+=" active"}if(r(f).add(1,"d")<=u.options.startDate||f>u.options.endDate||H(f)||!B(f)){p+=" disabled"}h.append('<td class="day'+p+'">'+f.date()+"</td>");f.add(1,"d")}u.widget.find(".datepicker-days tbody").empty().append(c);y=r().year(),b=u.widget.find(".datepicker-months").find("th:eq(1)").text(t).end().find("span").removeClass("active");if(y===t){b.eq(r().month()).addClass("active")}if(y-1<i){u.widget.find(".datepicker-months th:eq(0)").addClass("disabled")}if(y+1>o){u.widget.find(".datepicker-months th:eq(2)").addClass("disabled")}for(d=0;d<12;d++){if(t==i&&s>d||t<i){e(b[d]).addClass("disabled")}else if(t==o&&a<d||t>o){e(b[d]).addClass("disabled")}}c="";t=parseInt(t/10,10)*10;g=u.widget.find(".datepicker-years").find("th:eq(1)").text(t+"-"+(t+9)).end().find("td");u.widget.find(".datepicker-years").find("th").removeClass("disabled");if(i>t){u.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled")}if(o<t+9){u.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled")}t-=1;for(d=-1;d<11;d++){c+='<span class="year'+(d===-1||d===10?" old":"")+(y===t?" active":"")+(t<i||t>o?" disabled":"")+'">'+t+"</span>";t+=1}g.html(c)},y=function(){r.lang(u.options.language);var e=u.widget.find(".timepicker .timepicker-hours table"),t="",n,i,s;e.parent().hide();if(u.options.use24hours){n=0;for(i=0;i<6;i+=1){t+="<tr>";for(s=0;s<4;s+=1){t+='<td class="hour">'+j(n.toString())+"</td>";n++}t+="</tr>"}}else{n=1;for(i=0;i<3;i+=1){t+="<tr>";for(s=0;s<4;s+=1){t+='<td class="hour">'+j(n.toString())+"</td>";n++}t+="</tr>"}}e.html(t)},b=function(){var e=u.widget.find(".timepicker .timepicker-minutes table"),t="",n=0,r,i;e.parent().hide();for(r=0;r<5;r++){t+="<tr>";for(i=0;i<4;i+=1){t+='<td class="minute">'+j(n.toString())+"</td>";n+=3}t+="</tr>"}e.html(t)},w=function(){var e=u.widget.find(".timepicker .timepicker-seconds table"),t="",n=0,r,i;e.parent().hide();for(r=0;r<5;r++){t+="<tr>";for(i=0;i<4;i+=1){t+='<td class="second">'+j(n.toString())+"</td>";n+=3}t+="</tr>"}e.html(t)},E=function(){if(!u.date)return;var e=u.widget.find(".timepicker span[data-time-component]"),t=u.date.hours(),n="AM";if(!u.options.use24hours){if(t>=12)n="PM";if(t===0)t=12;else if(t!=12)t=t%12;u.widget.find(".timepicker [data-action=togglePeriod]").text(n)}e.filter("[data-time-component=hours]").text(j(t));e.filter("[data-time-component=minutes]").text(j(u.date.minutes()));e.filter("[data-time-component=seconds]").text(j(u.date.second()))},S=function(t){t.stopPropagation();t.preventDefault();u.unset=false;var n=e(t.target).closest("span, td, th"),i,s,o,a,f=r(u.date);if(n.length===1){if(!n.is(".disabled")){switch(n[0].nodeName.toLowerCase()){case"th":switch(n[0].className){case"switch":k(1);break;case"prev":case"next":o=I.modes[u.viewMode].navStep;if(n[0].className==="prev")o=o*-1;u.viewDate.add(o,I.modes[u.viewMode].navFnc);g();break}break;case"span":if(n.is(".month")){i=n.parent().find("span").index(n);u.viewDate.month(i)}else{s=parseInt(n.text(),10)||0;u.viewDate.year(s)}if(u.viewMode!==0){u.date=r({y:u.viewDate.year(),M:u.viewDate.month(),d:u.viewDate.date(),h:u.date.hours(),m:u.date.minutes()});c(f,t.type)}k(-1);g();break;case"td":if(n.is(".day")){a=parseInt(n.text(),10)||1;i=u.viewDate.month();s=u.viewDate.year();if(n.is(".old")){if(i===0){i=11;s-=1}else{i-=1}}else if(n.is(".new")){if(i==11){i=0;s+=1}else{i+=1}}u.date=r({y:s,M:i,d:a,h:u.date.hours(),m:u.date.minutes()});u.viewDate=r({y:s,M:i,d:Math.min(28,a)});g();D();c(f,t.type)}break}}}},x={incrementHours:function(){P("add","hours",1)},incrementMinutes:function(){P("add","minutes",u.options.minuteStepping)},incrementSeconds:function(){P("add","seconds",1)},decrementHours:function(){P("subtract","hours",1)},decrementMinutes:function(){P("subtract","minutes",u.options.minuteStepping)},decrementSeconds:function(){P("subtract","seconds",1)},togglePeriod:function(){var e=u.date.hours();if(e>=12)e-=12;else e+=12;u.date.hours(e)},showPicker:function(){u.widget.find(".timepicker > div:not(.timepicker-picker)").hide();u.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){u.widget.find(".timepicker .timepicker-picker").hide();u.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){u.widget.find(".timepicker .timepicker-picker").hide();u.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){u.widget.find(".timepicker .timepicker-picker").hide();u.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){u.date.hours(parseInt(e(t.target).text(),10));x.showPicker.call(u)},selectMinute:function(t){u.date.minutes(parseInt(e(t.target).text(),10));x.showPicker.call(u)},selectSecond:function(t){u.date.seconds(parseInt(e(t.target).text(),10));x.showPicker.call(u)}},T=function(t){var n=r(u.date),i=e(t.currentTarget).data("action"),s=x[i].apply(u,arguments);N(t);if(!u.date)u.date=r({y:1970});D();E();c(n);return s},N=function(e){e.stopPropagation();e.preventDefault()},C=function(t){r.lang(u.options.language);var n=e(t.target),i=r(u.date),s=r(n.val(),u.format,u.options.useStrict);if(s.isValid()){p();u.setValue(s);c(i);D()}else{u.viewDate=i;c(i);h(s);u.unset=true;n.val("")}},k=function(e){if(e){u.viewMode=Math.max(u.minViewMode,Math.min(2,u.viewMode+e))}u.widget.find(".datepicker > div").hide().filter(".datepicker-"+I.modes[u.viewMode].clsName).show()},L=function(){var t,n,r,i,s;u.widget.on("click",".datepicker *",e.proxy(S,this));u.widget.on("click","[data-action]",e.proxy(T,this));u.widget.on("mousedown",e.proxy(N,this));if(u.options.pickDate&&u.options.pickTime){u.widget.on("click.togglePicker",".accordion-toggle",function(o){o.stopPropagation();t=e(this);n=t.closest("ul");r=n.find(".in");i=n.find(".collapse:not(.in)");if(r&&r.length){s=r.data("collapse");if(s&&s.transitioning)return;r.collapse("hide");i.collapse("show");t.find("span").toggleClass(u.options.icons.time+" "+u.options.icons.date);u.element.find(".input-group-addon span").toggleClass(u.options.icons.time+" "+u.options.icons.date)}})}if(u.isInput){u.element.on({focus:e.proxy(u.show,this),change:e.proxy(C,this),blur:e.proxy(u.hide,this)})}else{u.element.on({change:e.proxy(C,this)},"input");if(u.component){u.component.on("click",e.proxy(u.show,this))}else{u.element.on("click",e.proxy(u.show,this))}}},A=function(){e(window).on("resize.datetimepicker"+u.id,e.proxy(l,this));if(!u.isInput){e(document).on("mousedown.datetimepicker"+u.id,e.proxy(u.hide,this))}},O=function(){u.widget.off("click",".datepicker *",u.click);u.widget.off("click","[data-action]");u.widget.off("mousedown",u.stopEvent);if(u.options.pickDate&&u.options.pickTime){u.widget.off("click.togglePicker")}if(u.isInput){u.element.off({focus:u.show,change:u.change})}else{u.element.off({change:u.change},"input");if(u.component){u.component.off("click",u.show)}else{u.element.off("click",u.show)}}},M=function(){e(window).off("resize.datetimepicker"+u.id);if(!u.isInput){e(document).off("mousedown.datetimepicker"+u.id)}},_=function(){if(u.element){var t=u.element.parents(),n=false,r;for(r=0;r<t.length;r++){if(e(t[r]).css("position")=="fixed"){n=true;break}}return n}else{return false}},D=function(){r.lang(u.options.language);var e="",t;if(!u.unset)e=r(u.date).format(u.format);if(!u.isInput){if(u.component){t=u.element.find("input");t.val(e)}u.element.data("date",e)}else{u.element.val(e)}if(!u.options.pickTime)u.hide()},P=function(e,t,n){r.lang(u.options.language);var i;if(e=="add"){i=r(u.date);if(i.hours()==23)i.add(n,t);i.add(n,t)}else{i=r(u.date).subtract(n,t)}if(i.isAfter(u.options.endDate)||r(i.subtract(n,t)).isBefore(u.options.startDate)||H(i)){h(i.format(u.format));return}if(e=="add"){u.date.add(n,t)}else{u.date.subtract(n,t)}},H=function(e){r.lang(u.options.language);var t=u.options.disabledDates,n;for(n in t){if(t[n]==r(e).format("L")){return true}}return false},B=function(e){r.lang(u.options.language);var t=u.options.enabledDates,n;if(t.length){for(n in t){if(t[n]==r(e).format("L")){return true}}return false}return t===false?true:false},j=function(e){e=e.toString();if(e.length>=2)return e;else return"0"+e},F=function(e,t,n){if(e&&t){return'<div class="bootstrap-datetimepicker-widget dropdown-menu" style="z-index:9999 !important;">'+'<ul class="list-unstyled">'+"<li"+(n?' class="collapse in"':"")+">"+'<div class="datepicker">'+I.template+"</div>"+"</li>"+'<li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+u.options.icons.time+'"></span></a></li>'+"<li"+(n?' class="collapse"':"")+">"+'<div class="timepicker">'+q.getTemplate()+"</div>"+"</li>"+"</ul>"+"</div>"}else if(t){return'<div class="bootstrap-datetimepicker-widget dropdown-menu">'+'<div class="timepicker">'+q.getTemplate()+"</div>"+"</div>"}else{return'<div class="bootstrap-datetimepicker-widget dropdown-menu">'+'<div class="datepicker">'+I.template+"</div>"+"</div>"}},I={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}],headTemplate:"<thead>"+"<tr>"+'<th class="prev">‹</th><th colspan="5" class="switch"></th><th class="next">›</th>'+"</tr>"+"</thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>'},q={hourTemplate:'<span data-action="showHours" data-time-component="hours" class="timepicker-hour"></span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>',secondTemplate:'<span data-action="showSeconds" data-time-component="seconds" class="timepicker-second"></span>'};I.template='<div class="datepicker-days">'+'<table class="table-condensed">'+I.headTemplate+"<tbody></tbody></table>"+"</div>"+'<div class="datepicker-months">'+'<table class="table-condensed">'+I.headTemplate+I.contTemplate+"</table>"+"</div>"+'<div class="datepicker-years">'+'<table class="table-condensed">'+I.headTemplate+I.contTemplate+"</table>"+"</div>";q.getTemplate=function(){return'<div class="timepicker-picker">'+'<table class="table-condensed">'+"<tr>"+'<td><a href="#" class="btn" data-action="incrementHours"><span class="'+u.options.icons.up+'"></span></a></td>'+'<td class="separator"></td>'+"<td>"+(u.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+u.options.icons.up+'"></span></a>':"")+"</td>"+(u.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+u.options.icons.up+'"></span></a></td>':"")+(u.options.use24hours?"":'<td class="separator"></td>')+"</tr>"+"<tr>"+"<td>"+q.hourTemplate+"</td> "+'<td class="separator">:</td>'+"<td>"+(u.options.useMinutes?q.minuteTemplate:'<span class="timepicker-minute">00</span>')+"</td> "+(u.options.useSeconds?'<td class="separator">:</td><td>'+q.secondTemplate+"</td>":"")+(u.options.use24hours?"":'<td class="separator"></td>'+'<td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>')+"</tr>"+"<tr>"+'<td><a href="#" class="btn" data-action="decrementHours"><span class="'+u.options.icons.down+'"></span></a></td>'+'<td class="separator"></td>'+"<td>"+(u.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+u.options.icons.down+'"></span></a>':"")+"</td>"+(u.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+u.options.icons.down+'"></span></a></td>':"")+(u.options.use24hours?"":'<td class="separator"></td>')+"</tr>"+"</table>"+"</div>"+'<div class="timepicker-hours" data-action="selectHour">'+'<table class="table-condensed"></table>'+"</div>"+'<div class="timepicker-minutes" data-action="selectMinute">'+'<table class="table-condensed"></table>'+"</div>"+(u.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>':"")};u.destroy=function(){O();M();u.widget.remove();u.element.removeData("DateTimePicker");if(u.component)u.component.removeData("DateTimePicker")};u.show=function(e){u.widget.show();u.height=u.component?u.component.outerHeight():u.element.outerHeight();l();u.element.trigger({type:"show.dp",date:r(u.date)});A();if(e){N(e)}},u.disable=function(){var e=u.element.find("input");if(!e.prop("disabled"))return;e.prop("disabled",true);O()},u.enable=function(){var e=u.element.find("input");if(!e.prop("disabled"))return;e.prop("disabled",true);L()},u.hide=function(t){if(t&&e(t.target).is(u.element.attr("id")))return;var n=u.widget.find(".collapse"),i,s;for(i=0;i<n.length;i++){s=n.eq(i).data("collapse");if(s&&s.transitioning)return}u.widget.hide();u.viewMode=u.startViewMode;k();u.element.trigger({type:"hide.dp",date:r(u.date)});M()},u.setValue=function(e){r.lang(u.options.language);if(!e){u.unset=true}else{u.unset=false}if(!r.isMoment(e))e=r(e);if(e.isValid()){u.date=e;D();u.viewDate=r({y:u.date.year(),M:u.date.month()});g();E()}else{h(e)}},u.getDate=function(){if(u.unset)return null;return u.date},u.setDate=function(e){e=r(e);if(!e)u.setValue(null);else u.setValue(e)},u.setEnabledDates=function(e){if(!e)u.options.enabledDates=false;else u.options.enabledDates=e;if(u.viewDate)p()},u.setEndDate=function(e){u.options.endDate=r(e);if(!u.options.endDate.isValid()){u.options.endDate=r().add(50,"y")}if(u.viewDate)p()},u.setStartDate=function(e){u.options.startDate=r(e);if(!u.options.startDate.isValid()){u.options.startDate=r({y:1970})}if(u.viewDate)p()};a()};e.fn.datetimepicker=function(t){return this.each(function(){var n=e(this),r=n.data("DateTimePicker");if(!r)n.data("DateTimePicker",new i(this,t))})}}); | ||
1533 | 0 | 29 | ||
1534 | === added directory 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales' | |||
1535 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ar-ma.js' | |||
1536 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ar-ma.js 1970-01-01 00:00:00 +0000 | |||
1537 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ar-ma.js 2014-02-14 15:04:13 +0000 | |||
1538 | @@ -0,0 +1,56 @@ | |||
1539 | 1 | // moment.js language configuration | ||
1540 | 2 | // language : Moroccan Arabic (ar-ma) | ||
1541 | 3 | // author : ElFadili Yassine : https://github.com/ElFadiliY | ||
1542 | 4 | // author : Abdel Said : https://github.com/abdelsaid | ||
1543 | 5 | |||
1544 | 6 | (function (factory) { | ||
1545 | 7 | if (typeof define === 'function' && define.amd) { | ||
1546 | 8 | define(['moment'], factory); // AMD | ||
1547 | 9 | } else if (typeof exports === 'object') { | ||
1548 | 10 | module.exports = factory(require('../moment')); // Node | ||
1549 | 11 | } else { | ||
1550 | 12 | factory(window.moment); // Browser global | ||
1551 | 13 | } | ||
1552 | 14 | }(function (moment) { | ||
1553 | 15 | return moment.lang('ar-ma', { | ||
1554 | 16 | months : "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), | ||
1555 | 17 | monthsShort : "يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"), | ||
1556 | 18 | weekdays : "الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), | ||
1557 | 19 | weekdaysShort : "احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"), | ||
1558 | 20 | weekdaysMin : "ح_ن_ث_ر_خ_ج_س".split("_"), | ||
1559 | 21 | longDateFormat : { | ||
1560 | 22 | LT : "HH:mm", | ||
1561 | 23 | L : "DD/MM/YYYY", | ||
1562 | 24 | LL : "D MMMM YYYY", | ||
1563 | 25 | LLL : "D MMMM YYYY LT", | ||
1564 | 26 | LLLL : "dddd D MMMM YYYY LT" | ||
1565 | 27 | }, | ||
1566 | 28 | calendar : { | ||
1567 | 29 | sameDay: "[اليوم على الساعة] LT", | ||
1568 | 30 | nextDay: '[غدا على الساعة] LT', | ||
1569 | 31 | nextWeek: 'dddd [على الساعة] LT', | ||
1570 | 32 | lastDay: '[أمس على الساعة] LT', | ||
1571 | 33 | lastWeek: 'dddd [على الساعة] LT', | ||
1572 | 34 | sameElse: 'L' | ||
1573 | 35 | }, | ||
1574 | 36 | relativeTime : { | ||
1575 | 37 | future : "في %s", | ||
1576 | 38 | past : "منذ %s", | ||
1577 | 39 | s : "ثوان", | ||
1578 | 40 | m : "دقيقة", | ||
1579 | 41 | mm : "%d دقائق", | ||
1580 | 42 | h : "ساعة", | ||
1581 | 43 | hh : "%d ساعات", | ||
1582 | 44 | d : "يوم", | ||
1583 | 45 | dd : "%d أيام", | ||
1584 | 46 | M : "شهر", | ||
1585 | 47 | MM : "%d أشهر", | ||
1586 | 48 | y : "سنة", | ||
1587 | 49 | yy : "%d سنوات" | ||
1588 | 50 | }, | ||
1589 | 51 | week : { | ||
1590 | 52 | dow : 6, // Saturday is the first day of the week. | ||
1591 | 53 | doy : 12 // The week that contains Jan 1st is the first week of the year. | ||
1592 | 54 | } | ||
1593 | 55 | }); | ||
1594 | 56 | })); | ||
1595 | 0 | 57 | ||
1596 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ar.js' | |||
1597 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ar.js 1970-01-01 00:00:00 +0000 | |||
1598 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ar.js 2014-02-14 15:04:13 +0000 | |||
1599 | @@ -0,0 +1,56 @@ | |||
1600 | 1 | // moment.js language configuration | ||
1601 | 2 | // language : Arabic (ar) | ||
1602 | 3 | // author : Abdel Said : https://github.com/abdelsaid | ||
1603 | 4 | // changes in months, weekdays : Ahmed Elkhatib | ||
1604 | 5 | |||
1605 | 6 | (function (factory) { | ||
1606 | 7 | if (typeof define === 'function' && define.amd) { | ||
1607 | 8 | define(['moment'], factory); // AMD | ||
1608 | 9 | } else if (typeof exports === 'object') { | ||
1609 | 10 | module.exports = factory(require('../moment')); // Node | ||
1610 | 11 | } else { | ||
1611 | 12 | factory(window.moment); // Browser global | ||
1612 | 13 | } | ||
1613 | 14 | }(function (moment) { | ||
1614 | 15 | return moment.lang('ar', { | ||
1615 | 16 | months : "يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"), | ||
1616 | 17 | monthsShort : "يناير/ كانون الثاني_فبراير/ شباط_مارس/ آذار_أبريل/ نيسان_مايو/ أيار_يونيو/ حزيران_يوليو/ تموز_أغسطس/ آب_سبتمبر/ أيلول_أكتوبر/ تشرين الأول_نوفمبر/ تشرين الثاني_ديسمبر/ كانون الأول".split("_"), | ||
1617 | 18 | weekdays : "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), | ||
1618 | 19 | weekdaysShort : "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), | ||
1619 | 20 | weekdaysMin : "ح_ن_ث_ر_خ_ج_س".split("_"), | ||
1620 | 21 | longDateFormat : { | ||
1621 | 22 | LT : "HH:mm", | ||
1622 | 23 | L : "DD/MM/YYYY", | ||
1623 | 24 | LL : "D MMMM YYYY", | ||
1624 | 25 | LLL : "D MMMM YYYY LT", | ||
1625 | 26 | LLLL : "dddd D MMMM YYYY LT" | ||
1626 | 27 | }, | ||
1627 | 28 | calendar : { | ||
1628 | 29 | sameDay: "[اليوم على الساعة] LT", | ||
1629 | 30 | nextDay: '[غدا على الساعة] LT', | ||
1630 | 31 | nextWeek: 'dddd [على الساعة] LT', | ||
1631 | 32 | lastDay: '[أمس على الساعة] LT', | ||
1632 | 33 | lastWeek: 'dddd [على الساعة] LT', | ||
1633 | 34 | sameElse: 'L' | ||
1634 | 35 | }, | ||
1635 | 36 | relativeTime : { | ||
1636 | 37 | future : "في %s", | ||
1637 | 38 | past : "منذ %s", | ||
1638 | 39 | s : "ثوان", | ||
1639 | 40 | m : "دقيقة", | ||
1640 | 41 | mm : "%d دقائق", | ||
1641 | 42 | h : "ساعة", | ||
1642 | 43 | hh : "%d ساعات", | ||
1643 | 44 | d : "يوم", | ||
1644 | 45 | dd : "%d أيام", | ||
1645 | 46 | M : "شهر", | ||
1646 | 47 | MM : "%d أشهر", | ||
1647 | 48 | y : "سنة", | ||
1648 | 49 | yy : "%d سنوات" | ||
1649 | 50 | }, | ||
1650 | 51 | week : { | ||
1651 | 52 | dow : 6, // Saturday is the first day of the week. | ||
1652 | 53 | doy : 12 // The week that contains Jan 1st is the first week of the year. | ||
1653 | 54 | } | ||
1654 | 55 | }); | ||
1655 | 56 | })); | ||
1656 | 0 | 57 | ||
1657 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.bg.js' | |||
1658 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.bg.js 1970-01-01 00:00:00 +0000 | |||
1659 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.bg.js 2014-02-14 15:04:13 +0000 | |||
1660 | @@ -0,0 +1,86 @@ | |||
1661 | 1 | // moment.js language configuration | ||
1662 | 2 | // language : bulgarian (bg) | ||
1663 | 3 | // author : Krasen Borisov : https://github.com/kraz | ||
1664 | 4 | |||
1665 | 5 | (function (factory) { | ||
1666 | 6 | if (typeof define === 'function' && define.amd) { | ||
1667 | 7 | define(['moment'], factory); // AMD | ||
1668 | 8 | } else if (typeof exports === 'object') { | ||
1669 | 9 | module.exports = factory(require('../moment')); // Node | ||
1670 | 10 | } else { | ||
1671 | 11 | factory(window.moment); // Browser global | ||
1672 | 12 | } | ||
1673 | 13 | }(function (moment) { | ||
1674 | 14 | return moment.lang('bg', { | ||
1675 | 15 | months : "януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"), | ||
1676 | 16 | monthsShort : "янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"), | ||
1677 | 17 | weekdays : "неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"), | ||
1678 | 18 | weekdaysShort : "нед_пон_вто_сря_чет_пет_съб".split("_"), | ||
1679 | 19 | weekdaysMin : "нд_пн_вт_ср_чт_пт_сб".split("_"), | ||
1680 | 20 | longDateFormat : { | ||
1681 | 21 | LT : "H:mm", | ||
1682 | 22 | L : "D.MM.YYYY", | ||
1683 | 23 | LL : "D MMMM YYYY", | ||
1684 | 24 | LLL : "D MMMM YYYY LT", | ||
1685 | 25 | LLLL : "dddd, D MMMM YYYY LT" | ||
1686 | 26 | }, | ||
1687 | 27 | calendar : { | ||
1688 | 28 | sameDay : '[Днес в] LT', | ||
1689 | 29 | nextDay : '[Утре в] LT', | ||
1690 | 30 | nextWeek : 'dddd [в] LT', | ||
1691 | 31 | lastDay : '[Вчера в] LT', | ||
1692 | 32 | lastWeek : function () { | ||
1693 | 33 | switch (this.day()) { | ||
1694 | 34 | case 0: | ||
1695 | 35 | case 3: | ||
1696 | 36 | case 6: | ||
1697 | 37 | return '[В изминалата] dddd [в] LT'; | ||
1698 | 38 | case 1: | ||
1699 | 39 | case 2: | ||
1700 | 40 | case 4: | ||
1701 | 41 | case 5: | ||
1702 | 42 | return '[В изминалия] dddd [в] LT'; | ||
1703 | 43 | } | ||
1704 | 44 | }, | ||
1705 | 45 | sameElse : 'L' | ||
1706 | 46 | }, | ||
1707 | 47 | relativeTime : { | ||
1708 | 48 | future : "след %s", | ||
1709 | 49 | past : "преди %s", | ||
1710 | 50 | s : "няколко секунди", | ||
1711 | 51 | m : "минута", | ||
1712 | 52 | mm : "%d минути", | ||
1713 | 53 | h : "час", | ||
1714 | 54 | hh : "%d часа", | ||
1715 | 55 | d : "ден", | ||
1716 | 56 | dd : "%d дни", | ||
1717 | 57 | M : "месец", | ||
1718 | 58 | MM : "%d месеца", | ||
1719 | 59 | y : "година", | ||
1720 | 60 | yy : "%d години" | ||
1721 | 61 | }, | ||
1722 | 62 | ordinal : function (number) { | ||
1723 | 63 | var lastDigit = number % 10, | ||
1724 | 64 | last2Digits = number % 100; | ||
1725 | 65 | if (number === 0) { | ||
1726 | 66 | return number + '-ев'; | ||
1727 | 67 | } else if (last2Digits === 0) { | ||
1728 | 68 | return number + '-ен'; | ||
1729 | 69 | } else if (last2Digits > 10 && last2Digits < 20) { | ||
1730 | 70 | return number + '-ти'; | ||
1731 | 71 | } else if (lastDigit === 1) { | ||
1732 | 72 | return number + '-ви'; | ||
1733 | 73 | } else if (lastDigit === 2) { | ||
1734 | 74 | return number + '-ри'; | ||
1735 | 75 | } else if (lastDigit === 7 || lastDigit === 8) { | ||
1736 | 76 | return number + '-ми'; | ||
1737 | 77 | } else { | ||
1738 | 78 | return number + '-ти'; | ||
1739 | 79 | } | ||
1740 | 80 | }, | ||
1741 | 81 | week : { | ||
1742 | 82 | dow : 1, // Monday is the first day of the week. | ||
1743 | 83 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
1744 | 84 | } | ||
1745 | 85 | }); | ||
1746 | 86 | })); | ||
1747 | 0 | 87 | ||
1748 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.br.js' | |||
1749 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.br.js 1970-01-01 00:00:00 +0000 | |||
1750 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.br.js 2014-02-14 15:04:13 +0000 | |||
1751 | @@ -0,0 +1,107 @@ | |||
1752 | 1 | // moment.js language configuration | ||
1753 | 2 | // language : breton (br) | ||
1754 | 3 | // author : Jean-Baptiste Le Duigou : https://github.com/jbleduigou | ||
1755 | 4 | |||
1756 | 5 | (function (factory) { | ||
1757 | 6 | if (typeof define === 'function' && define.amd) { | ||
1758 | 7 | define(['moment'], factory); // AMD | ||
1759 | 8 | } else if (typeof exports === 'object') { | ||
1760 | 9 | module.exports = factory(require('../moment')); // Node | ||
1761 | 10 | } else { | ||
1762 | 11 | factory(window.moment); // Browser global | ||
1763 | 12 | } | ||
1764 | 13 | }(function (moment) { | ||
1765 | 14 | function relativeTimeWithMutation(number, withoutSuffix, key) { | ||
1766 | 15 | var format = { | ||
1767 | 16 | 'mm': "munutenn", | ||
1768 | 17 | 'MM': "miz", | ||
1769 | 18 | 'dd': "devezh" | ||
1770 | 19 | }; | ||
1771 | 20 | return number + ' ' + mutation(format[key], number); | ||
1772 | 21 | } | ||
1773 | 22 | |||
1774 | 23 | function specialMutationForYears(number) { | ||
1775 | 24 | switch (lastNumber(number)) { | ||
1776 | 25 | case 1: | ||
1777 | 26 | case 3: | ||
1778 | 27 | case 4: | ||
1779 | 28 | case 5: | ||
1780 | 29 | case 9: | ||
1781 | 30 | return number + ' bloaz'; | ||
1782 | 31 | default: | ||
1783 | 32 | return number + ' vloaz'; | ||
1784 | 33 | } | ||
1785 | 34 | } | ||
1786 | 35 | |||
1787 | 36 | function lastNumber(number) { | ||
1788 | 37 | if (number > 9) { | ||
1789 | 38 | return lastNumber(number % 10); | ||
1790 | 39 | } | ||
1791 | 40 | return number; | ||
1792 | 41 | } | ||
1793 | 42 | |||
1794 | 43 | function mutation(text, number) { | ||
1795 | 44 | if (number === 2) { | ||
1796 | 45 | return softMutation(text); | ||
1797 | 46 | } | ||
1798 | 47 | return text; | ||
1799 | 48 | } | ||
1800 | 49 | |||
1801 | 50 | function softMutation(text) { | ||
1802 | 51 | var mutationTable = { | ||
1803 | 52 | 'm': 'v', | ||
1804 | 53 | 'b': 'v', | ||
1805 | 54 | 'd': 'z' | ||
1806 | 55 | }; | ||
1807 | 56 | if (mutationTable[text.charAt(0)] === undefined) { | ||
1808 | 57 | return text; | ||
1809 | 58 | } | ||
1810 | 59 | return mutationTable[text.charAt(0)] + text.substring(1); | ||
1811 | 60 | } | ||
1812 | 61 | |||
1813 | 62 | return moment.lang('br', { | ||
1814 | 63 | months : "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"), | ||
1815 | 64 | monthsShort : "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"), | ||
1816 | 65 | weekdays : "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"), | ||
1817 | 66 | weekdaysShort : "Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"), | ||
1818 | 67 | weekdaysMin : "Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"), | ||
1819 | 68 | longDateFormat : { | ||
1820 | 69 | LT : "h[e]mm A", | ||
1821 | 70 | L : "DD/MM/YYYY", | ||
1822 | 71 | LL : "D [a viz] MMMM YYYY", | ||
1823 | 72 | LLL : "D [a viz] MMMM YYYY LT", | ||
1824 | 73 | LLLL : "dddd, D [a viz] MMMM YYYY LT" | ||
1825 | 74 | }, | ||
1826 | 75 | calendar : { | ||
1827 | 76 | sameDay : '[Hiziv da] LT', | ||
1828 | 77 | nextDay : '[Warc\'hoazh da] LT', | ||
1829 | 78 | nextWeek : 'dddd [da] LT', | ||
1830 | 79 | lastDay : '[Dec\'h da] LT', | ||
1831 | 80 | lastWeek : 'dddd [paset da] LT', | ||
1832 | 81 | sameElse : 'L' | ||
1833 | 82 | }, | ||
1834 | 83 | relativeTime : { | ||
1835 | 84 | future : "a-benn %s", | ||
1836 | 85 | past : "%s 'zo", | ||
1837 | 86 | s : "un nebeud segondennoù", | ||
1838 | 87 | m : "ur vunutenn", | ||
1839 | 88 | mm : relativeTimeWithMutation, | ||
1840 | 89 | h : "un eur", | ||
1841 | 90 | hh : "%d eur", | ||
1842 | 91 | d : "un devezh", | ||
1843 | 92 | dd : relativeTimeWithMutation, | ||
1844 | 93 | M : "ur miz", | ||
1845 | 94 | MM : relativeTimeWithMutation, | ||
1846 | 95 | y : "ur bloaz", | ||
1847 | 96 | yy : specialMutationForYears | ||
1848 | 97 | }, | ||
1849 | 98 | ordinal : function (number) { | ||
1850 | 99 | var output = (number === 1) ? 'añ' : 'vet'; | ||
1851 | 100 | return number + output; | ||
1852 | 101 | }, | ||
1853 | 102 | week : { | ||
1854 | 103 | dow : 1, // Monday is the first day of the week. | ||
1855 | 104 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
1856 | 105 | } | ||
1857 | 106 | }); | ||
1858 | 107 | })); | ||
1859 | 0 | 108 | ||
1860 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.bs.js' | |||
1861 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.bs.js 1970-01-01 00:00:00 +0000 | |||
1862 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.bs.js 2014-02-14 15:04:13 +0000 | |||
1863 | @@ -0,0 +1,139 @@ | |||
1864 | 1 | // moment.js language configuration | ||
1865 | 2 | // language : bosnian (bs) | ||
1866 | 3 | // author : Nedim Cholich : https://github.com/frontyard | ||
1867 | 4 | // based on (hr) translation by Bojan Marković | ||
1868 | 5 | |||
1869 | 6 | (function (factory) { | ||
1870 | 7 | if (typeof define === 'function' && define.amd) { | ||
1871 | 8 | define(['moment'], factory); // AMD | ||
1872 | 9 | } else if (typeof exports === 'object') { | ||
1873 | 10 | module.exports = factory(require('../moment')); // Node | ||
1874 | 11 | } else { | ||
1875 | 12 | factory(window.moment); // Browser global | ||
1876 | 13 | } | ||
1877 | 14 | }(function (moment) { | ||
1878 | 15 | |||
1879 | 16 | function translate(number, withoutSuffix, key) { | ||
1880 | 17 | var result = number + " "; | ||
1881 | 18 | switch (key) { | ||
1882 | 19 | case 'm': | ||
1883 | 20 | return withoutSuffix ? 'jedna minuta' : 'jedne minute'; | ||
1884 | 21 | case 'mm': | ||
1885 | 22 | if (number === 1) { | ||
1886 | 23 | result += 'minuta'; | ||
1887 | 24 | } else if (number === 2 || number === 3 || number === 4) { | ||
1888 | 25 | result += 'minute'; | ||
1889 | 26 | } else { | ||
1890 | 27 | result += 'minuta'; | ||
1891 | 28 | } | ||
1892 | 29 | return result; | ||
1893 | 30 | case 'h': | ||
1894 | 31 | return withoutSuffix ? 'jedan sat' : 'jednog sata'; | ||
1895 | 32 | case 'hh': | ||
1896 | 33 | if (number === 1) { | ||
1897 | 34 | result += 'sat'; | ||
1898 | 35 | } else if (number === 2 || number === 3 || number === 4) { | ||
1899 | 36 | result += 'sata'; | ||
1900 | 37 | } else { | ||
1901 | 38 | result += 'sati'; | ||
1902 | 39 | } | ||
1903 | 40 | return result; | ||
1904 | 41 | case 'dd': | ||
1905 | 42 | if (number === 1) { | ||
1906 | 43 | result += 'dan'; | ||
1907 | 44 | } else { | ||
1908 | 45 | result += 'dana'; | ||
1909 | 46 | } | ||
1910 | 47 | return result; | ||
1911 | 48 | case 'MM': | ||
1912 | 49 | if (number === 1) { | ||
1913 | 50 | result += 'mjesec'; | ||
1914 | 51 | } else if (number === 2 || number === 3 || number === 4) { | ||
1915 | 52 | result += 'mjeseca'; | ||
1916 | 53 | } else { | ||
1917 | 54 | result += 'mjeseci'; | ||
1918 | 55 | } | ||
1919 | 56 | return result; | ||
1920 | 57 | case 'yy': | ||
1921 | 58 | if (number === 1) { | ||
1922 | 59 | result += 'godina'; | ||
1923 | 60 | } else if (number === 2 || number === 3 || number === 4) { | ||
1924 | 61 | result += 'godine'; | ||
1925 | 62 | } else { | ||
1926 | 63 | result += 'godina'; | ||
1927 | 64 | } | ||
1928 | 65 | return result; | ||
1929 | 66 | } | ||
1930 | 67 | } | ||
1931 | 68 | |||
1932 | 69 | return moment.lang('bs', { | ||
1933 | 70 | months : "januar_februar_mart_april_maj_juni_juli_avgust_septembar_oktobar_novembar_decembar".split("_"), | ||
1934 | 71 | monthsShort : "jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"), | ||
1935 | 72 | weekdays : "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"), | ||
1936 | 73 | weekdaysShort : "ned._pon._uto._sri._čet._pet._sub.".split("_"), | ||
1937 | 74 | weekdaysMin : "ne_po_ut_sr_če_pe_su".split("_"), | ||
1938 | 75 | longDateFormat : { | ||
1939 | 76 | LT : "H:mm", | ||
1940 | 77 | L : "DD. MM. YYYY", | ||
1941 | 78 | LL : "D. MMMM YYYY", | ||
1942 | 79 | LLL : "D. MMMM YYYY LT", | ||
1943 | 80 | LLLL : "dddd, D. MMMM YYYY LT" | ||
1944 | 81 | }, | ||
1945 | 82 | calendar : { | ||
1946 | 83 | sameDay : '[danas u] LT', | ||
1947 | 84 | nextDay : '[sutra u] LT', | ||
1948 | 85 | |||
1949 | 86 | nextWeek : function () { | ||
1950 | 87 | switch (this.day()) { | ||
1951 | 88 | case 0: | ||
1952 | 89 | return '[u] [nedjelju] [u] LT'; | ||
1953 | 90 | case 3: | ||
1954 | 91 | return '[u] [srijedu] [u] LT'; | ||
1955 | 92 | case 6: | ||
1956 | 93 | return '[u] [subotu] [u] LT'; | ||
1957 | 94 | case 1: | ||
1958 | 95 | case 2: | ||
1959 | 96 | case 4: | ||
1960 | 97 | case 5: | ||
1961 | 98 | return '[u] dddd [u] LT'; | ||
1962 | 99 | } | ||
1963 | 100 | }, | ||
1964 | 101 | lastDay : '[jučer u] LT', | ||
1965 | 102 | lastWeek : function () { | ||
1966 | 103 | switch (this.day()) { | ||
1967 | 104 | case 0: | ||
1968 | 105 | case 3: | ||
1969 | 106 | return '[prošlu] dddd [u] LT'; | ||
1970 | 107 | case 6: | ||
1971 | 108 | return '[prošle] [subote] [u] LT'; | ||
1972 | 109 | case 1: | ||
1973 | 110 | case 2: | ||
1974 | 111 | case 4: | ||
1975 | 112 | case 5: | ||
1976 | 113 | return '[prošli] dddd [u] LT'; | ||
1977 | 114 | } | ||
1978 | 115 | }, | ||
1979 | 116 | sameElse : 'L' | ||
1980 | 117 | }, | ||
1981 | 118 | relativeTime : { | ||
1982 | 119 | future : "za %s", | ||
1983 | 120 | past : "prije %s", | ||
1984 | 121 | s : "par sekundi", | ||
1985 | 122 | m : translate, | ||
1986 | 123 | mm : translate, | ||
1987 | 124 | h : translate, | ||
1988 | 125 | hh : translate, | ||
1989 | 126 | d : "dan", | ||
1990 | 127 | dd : translate, | ||
1991 | 128 | M : "mjesec", | ||
1992 | 129 | MM : translate, | ||
1993 | 130 | y : "godinu", | ||
1994 | 131 | yy : translate | ||
1995 | 132 | }, | ||
1996 | 133 | ordinal : '%d.', | ||
1997 | 134 | week : { | ||
1998 | 135 | dow : 1, // Monday is the first day of the week. | ||
1999 | 136 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
2000 | 137 | } | ||
2001 | 138 | }); | ||
2002 | 139 | })); | ||
2003 | 0 | 140 | ||
2004 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ca.js' | |||
2005 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ca.js 1970-01-01 00:00:00 +0000 | |||
2006 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ca.js 2014-02-14 15:04:13 +0000 | |||
2007 | @@ -0,0 +1,66 @@ | |||
2008 | 1 | // moment.js language configuration | ||
2009 | 2 | // language : catalan (ca) | ||
2010 | 3 | // author : Juan G. Hurtado : https://github.com/juanghurtado | ||
2011 | 4 | |||
2012 | 5 | (function (factory) { | ||
2013 | 6 | if (typeof define === 'function' && define.amd) { | ||
2014 | 7 | define(['moment'], factory); // AMD | ||
2015 | 8 | } else if (typeof exports === 'object') { | ||
2016 | 9 | module.exports = factory(require('../moment')); // Node | ||
2017 | 10 | } else { | ||
2018 | 11 | factory(window.moment); // Browser global | ||
2019 | 12 | } | ||
2020 | 13 | }(function (moment) { | ||
2021 | 14 | return moment.lang('ca', { | ||
2022 | 15 | months : "Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"), | ||
2023 | 16 | monthsShort : "Gen._Febr._Mar._Abr._Mai._Jun._Jul._Ag._Set._Oct._Nov._Des.".split("_"), | ||
2024 | 17 | weekdays : "Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"), | ||
2025 | 18 | weekdaysShort : "Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"), | ||
2026 | 19 | weekdaysMin : "Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"), | ||
2027 | 20 | longDateFormat : { | ||
2028 | 21 | LT : "H:mm", | ||
2029 | 22 | L : "DD/MM/YYYY", | ||
2030 | 23 | LL : "D MMMM YYYY", | ||
2031 | 24 | LLL : "D MMMM YYYY LT", | ||
2032 | 25 | LLLL : "dddd D MMMM YYYY LT" | ||
2033 | 26 | }, | ||
2034 | 27 | calendar : { | ||
2035 | 28 | sameDay : function () { | ||
2036 | 29 | return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; | ||
2037 | 30 | }, | ||
2038 | 31 | nextDay : function () { | ||
2039 | 32 | return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; | ||
2040 | 33 | }, | ||
2041 | 34 | nextWeek : function () { | ||
2042 | 35 | return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; | ||
2043 | 36 | }, | ||
2044 | 37 | lastDay : function () { | ||
2045 | 38 | return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; | ||
2046 | 39 | }, | ||
2047 | 40 | lastWeek : function () { | ||
2048 | 41 | return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT'; | ||
2049 | 42 | }, | ||
2050 | 43 | sameElse : 'L' | ||
2051 | 44 | }, | ||
2052 | 45 | relativeTime : { | ||
2053 | 46 | future : "en %s", | ||
2054 | 47 | past : "fa %s", | ||
2055 | 48 | s : "uns segons", | ||
2056 | 49 | m : "un minut", | ||
2057 | 50 | mm : "%d minuts", | ||
2058 | 51 | h : "una hora", | ||
2059 | 52 | hh : "%d hores", | ||
2060 | 53 | d : "un dia", | ||
2061 | 54 | dd : "%d dies", | ||
2062 | 55 | M : "un mes", | ||
2063 | 56 | MM : "%d mesos", | ||
2064 | 57 | y : "un any", | ||
2065 | 58 | yy : "%d anys" | ||
2066 | 59 | }, | ||
2067 | 60 | ordinal : '%dº', | ||
2068 | 61 | week : { | ||
2069 | 62 | dow : 1, // Monday is the first day of the week. | ||
2070 | 63 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
2071 | 64 | } | ||
2072 | 65 | }); | ||
2073 | 66 | })); | ||
2074 | 0 | 67 | ||
2075 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.cs.js' | |||
2076 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.cs.js 1970-01-01 00:00:00 +0000 | |||
2077 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.cs.js 2014-02-14 15:04:13 +0000 | |||
2078 | @@ -0,0 +1,155 @@ | |||
2079 | 1 | // moment.js language configuration | ||
2080 | 2 | // language : czech (cs) | ||
2081 | 3 | // author : petrbela : https://github.com/petrbela | ||
2082 | 4 | |||
2083 | 5 | (function (factory) { | ||
2084 | 6 | if (typeof define === 'function' && define.amd) { | ||
2085 | 7 | define(['moment'], factory); // AMD | ||
2086 | 8 | } else if (typeof exports === 'object') { | ||
2087 | 9 | module.exports = factory(require('../moment')); // Node | ||
2088 | 10 | } else { | ||
2089 | 11 | factory(window.moment); // Browser global | ||
2090 | 12 | } | ||
2091 | 13 | }(function (moment) { | ||
2092 | 14 | var months = "leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"), | ||
2093 | 15 | monthsShort = "led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"); | ||
2094 | 16 | |||
2095 | 17 | function plural(n) { | ||
2096 | 18 | return (n > 1) && (n < 5) && (~~(n / 10) !== 1); | ||
2097 | 19 | } | ||
2098 | 20 | |||
2099 | 21 | function translate(number, withoutSuffix, key, isFuture) { | ||
2100 | 22 | var result = number + " "; | ||
2101 | 23 | switch (key) { | ||
2102 | 24 | case 's': // a few seconds / in a few seconds / a few seconds ago | ||
2103 | 25 | return (withoutSuffix || isFuture) ? 'pár vteřin' : 'pár vteřinami'; | ||
2104 | 26 | case 'm': // a minute / in a minute / a minute ago | ||
2105 | 27 | return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou'); | ||
2106 | 28 | case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago | ||
2107 | 29 | if (withoutSuffix || isFuture) { | ||
2108 | 30 | return result + (plural(number) ? 'minuty' : 'minut'); | ||
2109 | 31 | } else { | ||
2110 | 32 | return result + 'minutami'; | ||
2111 | 33 | } | ||
2112 | 34 | break; | ||
2113 | 35 | case 'h': // an hour / in an hour / an hour ago | ||
2114 | 36 | return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou'); | ||
2115 | 37 | case 'hh': // 9 hours / in 9 hours / 9 hours ago | ||
2116 | 38 | if (withoutSuffix || isFuture) { | ||
2117 | 39 | return result + (plural(number) ? 'hodiny' : 'hodin'); | ||
2118 | 40 | } else { | ||
2119 | 41 | return result + 'hodinami'; | ||
2120 | 42 | } | ||
2121 | 43 | break; | ||
2122 | 44 | case 'd': // a day / in a day / a day ago | ||
2123 | 45 | return (withoutSuffix || isFuture) ? 'den' : 'dnem'; | ||
2124 | 46 | case 'dd': // 9 days / in 9 days / 9 days ago | ||
2125 | 47 | if (withoutSuffix || isFuture) { | ||
2126 | 48 | return result + (plural(number) ? 'dny' : 'dní'); | ||
2127 | 49 | } else { | ||
2128 | 50 | return result + 'dny'; | ||
2129 | 51 | } | ||
2130 | 52 | break; | ||
2131 | 53 | case 'M': // a month / in a month / a month ago | ||
2132 | 54 | return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem'; | ||
2133 | 55 | case 'MM': // 9 months / in 9 months / 9 months ago | ||
2134 | 56 | if (withoutSuffix || isFuture) { | ||
2135 | 57 | return result + (plural(number) ? 'měsíce' : 'měsíců'); | ||
2136 | 58 | } else { | ||
2137 | 59 | return result + 'měsíci'; | ||
2138 | 60 | } | ||
2139 | 61 | break; | ||
2140 | 62 | case 'y': // a year / in a year / a year ago | ||
2141 | 63 | return (withoutSuffix || isFuture) ? 'rok' : 'rokem'; | ||
2142 | 64 | case 'yy': // 9 years / in 9 years / 9 years ago | ||
2143 | 65 | if (withoutSuffix || isFuture) { | ||
2144 | 66 | return result + (plural(number) ? 'roky' : 'let'); | ||
2145 | 67 | } else { | ||
2146 | 68 | return result + 'lety'; | ||
2147 | 69 | } | ||
2148 | 70 | break; | ||
2149 | 71 | } | ||
2150 | 72 | } | ||
2151 | 73 | |||
2152 | 74 | return moment.lang('cs', { | ||
2153 | 75 | months : months, | ||
2154 | 76 | monthsShort : monthsShort, | ||
2155 | 77 | monthsParse : (function (months, monthsShort) { | ||
2156 | 78 | var i, _monthsParse = []; | ||
2157 | 79 | for (i = 0; i < 12; i++) { | ||
2158 | 80 | // use custom parser to solve problem with July (červenec) | ||
2159 | 81 | _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i'); | ||
2160 | 82 | } | ||
2161 | 83 | return _monthsParse; | ||
2162 | 84 | }(months, monthsShort)), | ||
2163 | 85 | weekdays : "neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"), | ||
2164 | 86 | weekdaysShort : "ne_po_út_st_čt_pá_so".split("_"), | ||
2165 | 87 | weekdaysMin : "ne_po_út_st_čt_pá_so".split("_"), | ||
2166 | 88 | longDateFormat : { | ||
2167 | 89 | LT: "H:mm", | ||
2168 | 90 | L : "DD.MM.YYYY", | ||
2169 | 91 | LL : "D. MMMM YYYY", | ||
2170 | 92 | LLL : "D. MMMM YYYY LT", | ||
2171 | 93 | LLLL : "dddd D. MMMM YYYY LT" | ||
2172 | 94 | }, | ||
2173 | 95 | calendar : { | ||
2174 | 96 | sameDay: "[dnes v] LT", | ||
2175 | 97 | nextDay: '[zítra v] LT', | ||
2176 | 98 | nextWeek: function () { | ||
2177 | 99 | switch (this.day()) { | ||
2178 | 100 | case 0: | ||
2179 | 101 | return '[v neděli v] LT'; | ||
2180 | 102 | case 1: | ||
2181 | 103 | case 2: | ||
2182 | 104 | return '[v] dddd [v] LT'; | ||
2183 | 105 | case 3: | ||
2184 | 106 | return '[ve středu v] LT'; | ||
2185 | 107 | case 4: | ||
2186 | 108 | return '[ve čtvrtek v] LT'; | ||
2187 | 109 | case 5: | ||
2188 | 110 | return '[v pátek v] LT'; | ||
2189 | 111 | case 6: | ||
2190 | 112 | return '[v sobotu v] LT'; | ||
2191 | 113 | } | ||
2192 | 114 | }, | ||
2193 | 115 | lastDay: '[včera v] LT', | ||
2194 | 116 | lastWeek: function () { | ||
2195 | 117 | switch (this.day()) { | ||
2196 | 118 | case 0: | ||
2197 | 119 | return '[minulou neděli v] LT'; | ||
2198 | 120 | case 1: | ||
2199 | 121 | case 2: | ||
2200 | 122 | return '[minulé] dddd [v] LT'; | ||
2201 | 123 | case 3: | ||
2202 | 124 | return '[minulou středu v] LT'; | ||
2203 | 125 | case 4: | ||
2204 | 126 | case 5: | ||
2205 | 127 | return '[minulý] dddd [v] LT'; | ||
2206 | 128 | case 6: | ||
2207 | 129 | return '[minulou sobotu v] LT'; | ||
2208 | 130 | } | ||
2209 | 131 | }, | ||
2210 | 132 | sameElse: "L" | ||
2211 | 133 | }, | ||
2212 | 134 | relativeTime : { | ||
2213 | 135 | future : "za %s", | ||
2214 | 136 | past : "před %s", | ||
2215 | 137 | s : translate, | ||
2216 | 138 | m : translate, | ||
2217 | 139 | mm : translate, | ||
2218 | 140 | h : translate, | ||
2219 | 141 | hh : translate, | ||
2220 | 142 | d : translate, | ||
2221 | 143 | dd : translate, | ||
2222 | 144 | M : translate, | ||
2223 | 145 | MM : translate, | ||
2224 | 146 | y : translate, | ||
2225 | 147 | yy : translate | ||
2226 | 148 | }, | ||
2227 | 149 | ordinal : '%d.', | ||
2228 | 150 | week : { | ||
2229 | 151 | dow : 1, // Monday is the first day of the week. | ||
2230 | 152 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
2231 | 153 | } | ||
2232 | 154 | }); | ||
2233 | 155 | })); | ||
2234 | 0 | 156 | ||
2235 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.cv.js' | |||
2236 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.cv.js 1970-01-01 00:00:00 +0000 | |||
2237 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.cv.js 2014-02-14 15:04:13 +0000 | |||
2238 | @@ -0,0 +1,59 @@ | |||
2239 | 1 | // moment.js language configuration | ||
2240 | 2 | // language : chuvash (cv) | ||
2241 | 3 | // author : Anatoly Mironov : https://github.com/mirontoli | ||
2242 | 4 | |||
2243 | 5 | (function (factory) { | ||
2244 | 6 | if (typeof define === 'function' && define.amd) { | ||
2245 | 7 | define(['moment'], factory); // AMD | ||
2246 | 8 | } else if (typeof exports === 'object') { | ||
2247 | 9 | module.exports = factory(require('../moment')); // Node | ||
2248 | 10 | } else { | ||
2249 | 11 | factory(window.moment); // Browser global | ||
2250 | 12 | } | ||
2251 | 13 | }(function (moment) { | ||
2252 | 14 | return moment.lang('cv', { | ||
2253 | 15 | months : "кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"), | ||
2254 | 16 | monthsShort : "кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"), | ||
2255 | 17 | weekdays : "вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"), | ||
2256 | 18 | weekdaysShort : "выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"), | ||
2257 | 19 | weekdaysMin : "вр_тн_ыт_юн_кç_эр_шм".split("_"), | ||
2258 | 20 | longDateFormat : { | ||
2259 | 21 | LT : "HH:mm", | ||
2260 | 22 | L : "DD-MM-YYYY", | ||
2261 | 23 | LL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]", | ||
2262 | 24 | LLL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT", | ||
2263 | 25 | LLLL : "dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT" | ||
2264 | 26 | }, | ||
2265 | 27 | calendar : { | ||
2266 | 28 | sameDay: '[Паян] LT [сехетре]', | ||
2267 | 29 | nextDay: '[Ыран] LT [сехетре]', | ||
2268 | 30 | lastDay: '[Ĕнер] LT [сехетре]', | ||
2269 | 31 | nextWeek: '[Çитес] dddd LT [сехетре]', | ||
2270 | 32 | lastWeek: '[Иртнĕ] dddd LT [сехетре]', | ||
2271 | 33 | sameElse: 'L' | ||
2272 | 34 | }, | ||
2273 | 35 | relativeTime : { | ||
2274 | 36 | future : function (output) { | ||
2275 | 37 | var affix = /сехет$/i.exec(output) ? "рен" : /çул$/i.exec(output) ? "тан" : "ран"; | ||
2276 | 38 | return output + affix; | ||
2277 | 39 | }, | ||
2278 | 40 | past : "%s каялла", | ||
2279 | 41 | s : "пĕр-ик çеккунт", | ||
2280 | 42 | m : "пĕр минут", | ||
2281 | 43 | mm : "%d минут", | ||
2282 | 44 | h : "пĕр сехет", | ||
2283 | 45 | hh : "%d сехет", | ||
2284 | 46 | d : "пĕр кун", | ||
2285 | 47 | dd : "%d кун", | ||
2286 | 48 | M : "пĕр уйăх", | ||
2287 | 49 | MM : "%d уйăх", | ||
2288 | 50 | y : "пĕр çул", | ||
2289 | 51 | yy : "%d çул" | ||
2290 | 52 | }, | ||
2291 | 53 | ordinal : '%d-мĕш', | ||
2292 | 54 | week : { | ||
2293 | 55 | dow : 1, // Monday is the first day of the week. | ||
2294 | 56 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
2295 | 57 | } | ||
2296 | 58 | }); | ||
2297 | 59 | })); | ||
2298 | 0 | 60 | ||
2299 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.da.js' | |||
2300 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.da.js 1970-01-01 00:00:00 +0000 | |||
2301 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.da.js 2014-02-14 15:04:13 +0000 | |||
2302 | @@ -0,0 +1,56 @@ | |||
2303 | 1 | // moment.js language configuration | ||
2304 | 2 | // language : danish (da) | ||
2305 | 3 | // author : Ulrik Nielsen : https://github.com/mrbase | ||
2306 | 4 | |||
2307 | 5 | (function (factory) { | ||
2308 | 6 | if (typeof define === 'function' && define.amd) { | ||
2309 | 7 | define(['moment'], factory); // AMD | ||
2310 | 8 | } else if (typeof exports === 'object') { | ||
2311 | 9 | module.exports = factory(require('../moment')); // Node | ||
2312 | 10 | } else { | ||
2313 | 11 | factory(window.moment); // Browser global | ||
2314 | 12 | } | ||
2315 | 13 | }(function (moment) { | ||
2316 | 14 | return moment.lang('da', { | ||
2317 | 15 | months : "januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"), | ||
2318 | 16 | monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"), | ||
2319 | 17 | weekdays : "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"), | ||
2320 | 18 | weekdaysShort : "søn_man_tir_ons_tor_fre_lør".split("_"), | ||
2321 | 19 | weekdaysMin : "sø_ma_ti_on_to_fr_lø".split("_"), | ||
2322 | 20 | longDateFormat : { | ||
2323 | 21 | LT : "HH:mm", | ||
2324 | 22 | L : "DD/MM/YYYY", | ||
2325 | 23 | LL : "D MMMM YYYY", | ||
2326 | 24 | LLL : "D MMMM YYYY LT", | ||
2327 | 25 | LLLL : "dddd D. MMMM, YYYY LT" | ||
2328 | 26 | }, | ||
2329 | 27 | calendar : { | ||
2330 | 28 | sameDay : '[I dag kl.] LT', | ||
2331 | 29 | nextDay : '[I morgen kl.] LT', | ||
2332 | 30 | nextWeek : 'dddd [kl.] LT', | ||
2333 | 31 | lastDay : '[I går kl.] LT', | ||
2334 | 32 | lastWeek : '[sidste] dddd [kl] LT', | ||
2335 | 33 | sameElse : 'L' | ||
2336 | 34 | }, | ||
2337 | 35 | relativeTime : { | ||
2338 | 36 | future : "om %s", | ||
2339 | 37 | past : "%s siden", | ||
2340 | 38 | s : "få sekunder", | ||
2341 | 39 | m : "et minut", | ||
2342 | 40 | mm : "%d minutter", | ||
2343 | 41 | h : "en time", | ||
2344 | 42 | hh : "%d timer", | ||
2345 | 43 | d : "en dag", | ||
2346 | 44 | dd : "%d dage", | ||
2347 | 45 | M : "en måned", | ||
2348 | 46 | MM : "%d måneder", | ||
2349 | 47 | y : "et år", | ||
2350 | 48 | yy : "%d år" | ||
2351 | 49 | }, | ||
2352 | 50 | ordinal : '%d.', | ||
2353 | 51 | week : { | ||
2354 | 52 | dow : 1, // Monday is the first day of the week. | ||
2355 | 53 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
2356 | 54 | } | ||
2357 | 55 | }); | ||
2358 | 56 | })); | ||
2359 | 0 | 57 | ||
2360 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.de.js' | |||
2361 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.de.js 1970-01-01 00:00:00 +0000 | |||
2362 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.de.js 2014-02-14 15:04:13 +0000 | |||
2363 | @@ -0,0 +1,71 @@ | |||
2364 | 1 | // moment.js language configuration | ||
2365 | 2 | // language : german (de) | ||
2366 | 3 | // author : lluchs : https://github.com/lluchs | ||
2367 | 4 | // author: Menelion Elensúle: https://github.com/Oire | ||
2368 | 5 | |||
2369 | 6 | (function (factory) { | ||
2370 | 7 | if (typeof define === 'function' && define.amd) { | ||
2371 | 8 | define(['moment'], factory); // AMD | ||
2372 | 9 | } else if (typeof exports === 'object') { | ||
2373 | 10 | module.exports = factory(require('../moment')); // Node | ||
2374 | 11 | } else { | ||
2375 | 12 | factory(window.moment); // Browser global | ||
2376 | 13 | } | ||
2377 | 14 | }(function (moment) { | ||
2378 | 15 | function processRelativeTime(number, withoutSuffix, key, isFuture) { | ||
2379 | 16 | var format = { | ||
2380 | 17 | 'm': ['eine Minute', 'einer Minute'], | ||
2381 | 18 | 'h': ['eine Stunde', 'einer Stunde'], | ||
2382 | 19 | 'd': ['ein Tag', 'einem Tag'], | ||
2383 | 20 | 'dd': [number + ' Tage', number + ' Tagen'], | ||
2384 | 21 | 'M': ['ein Monat', 'einem Monat'], | ||
2385 | 22 | 'MM': [number + ' Monate', number + ' Monaten'], | ||
2386 | 23 | 'y': ['ein Jahr', 'einem Jahr'], | ||
2387 | 24 | 'yy': [number + ' Jahre', number + ' Jahren'] | ||
2388 | 25 | }; | ||
2389 | 26 | return withoutSuffix ? format[key][0] : format[key][1]; | ||
2390 | 27 | } | ||
2391 | 28 | |||
2392 | 29 | return moment.lang('de', { | ||
2393 | 30 | months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), | ||
2394 | 31 | monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"), | ||
2395 | 32 | weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), | ||
2396 | 33 | weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), | ||
2397 | 34 | weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), | ||
2398 | 35 | longDateFormat : { | ||
2399 | 36 | LT: "H:mm [Uhr]", | ||
2400 | 37 | L : "DD.MM.YYYY", | ||
2401 | 38 | LL : "D. MMMM YYYY", | ||
2402 | 39 | LLL : "D. MMMM YYYY LT", | ||
2403 | 40 | LLLL : "dddd, D. MMMM YYYY LT" | ||
2404 | 41 | }, | ||
2405 | 42 | calendar : { | ||
2406 | 43 | sameDay: "[Heute um] LT", | ||
2407 | 44 | sameElse: "L", | ||
2408 | 45 | nextDay: '[Morgen um] LT', | ||
2409 | 46 | nextWeek: 'dddd [um] LT', | ||
2410 | 47 | lastDay: '[Gestern um] LT', | ||
2411 | 48 | lastWeek: '[letzten] dddd [um] LT' | ||
2412 | 49 | }, | ||
2413 | 50 | relativeTime : { | ||
2414 | 51 | future : "in %s", | ||
2415 | 52 | past : "vor %s", | ||
2416 | 53 | s : "ein paar Sekunden", | ||
2417 | 54 | m : processRelativeTime, | ||
2418 | 55 | mm : "%d Minuten", | ||
2419 | 56 | h : processRelativeTime, | ||
2420 | 57 | hh : "%d Stunden", | ||
2421 | 58 | d : processRelativeTime, | ||
2422 | 59 | dd : processRelativeTime, | ||
2423 | 60 | M : processRelativeTime, | ||
2424 | 61 | MM : processRelativeTime, | ||
2425 | 62 | y : processRelativeTime, | ||
2426 | 63 | yy : processRelativeTime | ||
2427 | 64 | }, | ||
2428 | 65 | ordinal : '%d.', | ||
2429 | 66 | week : { | ||
2430 | 67 | dow : 1, // Monday is the first day of the week. | ||
2431 | 68 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
2432 | 69 | } | ||
2433 | 70 | }); | ||
2434 | 71 | })); | ||
2435 | 0 | 72 | ||
2436 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.el.js' | |||
2437 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.el.js 1970-01-01 00:00:00 +0000 | |||
2438 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.el.js 2014-02-14 15:04:13 +0000 | |||
2439 | @@ -0,0 +1,79 @@ | |||
2440 | 1 | // moment.js language configuration | ||
2441 | 2 | // language : modern greek (el) | ||
2442 | 3 | // author : Aggelos Karalias : https://github.com/mehiel | ||
2443 | 4 | |||
2444 | 5 | (function (factory) { | ||
2445 | 6 | if (typeof define === 'function' && define.amd) { | ||
2446 | 7 | define(['moment'], factory); // AMD | ||
2447 | 8 | } else if (typeof exports === 'object') { | ||
2448 | 9 | module.exports = factory(require('../moment')); // Node | ||
2449 | 10 | } else { | ||
2450 | 11 | factory(window.moment); // Browser global | ||
2451 | 12 | } | ||
2452 | 13 | }(function (moment) { | ||
2453 | 14 | return moment.lang('el', { | ||
2454 | 15 | monthsNominativeEl : "Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"), | ||
2455 | 16 | monthsGenitiveEl : "Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"), | ||
2456 | 17 | months : function (momentToFormat, format) { | ||
2457 | 18 | if (/D/.test(format.substring(0, format.indexOf("MMMM")))) { // if there is a day number before 'MMMM' | ||
2458 | 19 | return this._monthsGenitiveEl[momentToFormat.month()]; | ||
2459 | 20 | } else { | ||
2460 | 21 | return this._monthsNominativeEl[momentToFormat.month()]; | ||
2461 | 22 | } | ||
2462 | 23 | }, | ||
2463 | 24 | monthsShort : "Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"), | ||
2464 | 25 | weekdays : "Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"), | ||
2465 | 26 | weekdaysShort : "Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"), | ||
2466 | 27 | weekdaysMin : "Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"), | ||
2467 | 28 | meridiem : function (hours, minutes, isLower) { | ||
2468 | 29 | if (hours > 11) { | ||
2469 | 30 | return isLower ? 'μμ' : 'ΜΜ'; | ||
2470 | 31 | } else { | ||
2471 | 32 | return isLower ? 'πμ' : 'ΠΜ'; | ||
2472 | 33 | } | ||
2473 | 34 | }, | ||
2474 | 35 | longDateFormat : { | ||
2475 | 36 | LT : "h:mm A", | ||
2476 | 37 | L : "DD/MM/YYYY", | ||
2477 | 38 | LL : "D MMMM YYYY", | ||
2478 | 39 | LLL : "D MMMM YYYY LT", | ||
2479 | 40 | LLLL : "dddd, D MMMM YYYY LT" | ||
2480 | 41 | }, | ||
2481 | 42 | calendarEl : { | ||
2482 | 43 | sameDay : '[Σήμερα {}] LT', | ||
2483 | 44 | nextDay : '[Αύριο {}] LT', | ||
2484 | 45 | nextWeek : 'dddd [{}] LT', | ||
2485 | 46 | lastDay : '[Χθες {}] LT', | ||
2486 | 47 | lastWeek : '[την προηγούμενη] dddd [{}] LT', | ||
2487 | 48 | sameElse : 'L' | ||
2488 | 49 | }, | ||
2489 | 50 | calendar : function (key, mom) { | ||
2490 | 51 | var output = this._calendarEl[key], | ||
2491 | 52 | hours = mom && mom.hours(); | ||
2492 | 53 | |||
2493 | 54 | return output.replace("{}", (hours % 12 === 1 ? "στη" : "στις")); | ||
2494 | 55 | }, | ||
2495 | 56 | relativeTime : { | ||
2496 | 57 | future : "σε %s", | ||
2497 | 58 | past : "%s πριν", | ||
2498 | 59 | s : "δευτερόλεπτα", | ||
2499 | 60 | m : "ένα λεπτό", | ||
2500 | 61 | mm : "%d λεπτά", | ||
2501 | 62 | h : "μία ώρα", | ||
2502 | 63 | hh : "%d ώρες", | ||
2503 | 64 | d : "μία μέρα", | ||
2504 | 65 | dd : "%d μέρες", | ||
2505 | 66 | M : "ένας μήνας", | ||
2506 | 67 | MM : "%d μήνες", | ||
2507 | 68 | y : "ένας χρόνος", | ||
2508 | 69 | yy : "%d χρόνια" | ||
2509 | 70 | }, | ||
2510 | 71 | ordinal : function (number) { | ||
2511 | 72 | return number + 'η'; | ||
2512 | 73 | }, | ||
2513 | 74 | week : { | ||
2514 | 75 | dow : 1, // Monday is the first day of the week. | ||
2515 | 76 | doy : 4 // The week that contains Jan 4st is the first week of the year. | ||
2516 | 77 | } | ||
2517 | 78 | }); | ||
2518 | 79 | })); | ||
2519 | 0 | 80 | ||
2520 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-au.js' | |||
2521 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-au.js 1970-01-01 00:00:00 +0000 | |||
2522 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-au.js 2014-02-14 15:04:13 +0000 | |||
2523 | @@ -0,0 +1,62 @@ | |||
2524 | 1 | // moment.js language configuration | ||
2525 | 2 | // language : australian english (en-au) | ||
2526 | 3 | |||
2527 | 4 | (function (factory) { | ||
2528 | 5 | if (typeof define === 'function' && define.amd) { | ||
2529 | 6 | define(['moment'], factory); // AMD | ||
2530 | 7 | } else if (typeof exports === 'object') { | ||
2531 | 8 | module.exports = factory(require('../moment')); // Node | ||
2532 | 9 | } else { | ||
2533 | 10 | factory(window.moment); // Browser global | ||
2534 | 11 | } | ||
2535 | 12 | }(function (moment) { | ||
2536 | 13 | return moment.lang('en-au', { | ||
2537 | 14 | months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), | ||
2538 | 15 | monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), | ||
2539 | 16 | weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), | ||
2540 | 17 | weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), | ||
2541 | 18 | weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), | ||
2542 | 19 | longDateFormat : { | ||
2543 | 20 | LT : "h:mm A", | ||
2544 | 21 | L : "DD/MM/YYYY", | ||
2545 | 22 | LL : "D MMMM YYYY", | ||
2546 | 23 | LLL : "D MMMM YYYY LT", | ||
2547 | 24 | LLLL : "dddd, D MMMM YYYY LT" | ||
2548 | 25 | }, | ||
2549 | 26 | calendar : { | ||
2550 | 27 | sameDay : '[Today at] LT', | ||
2551 | 28 | nextDay : '[Tomorrow at] LT', | ||
2552 | 29 | nextWeek : 'dddd [at] LT', | ||
2553 | 30 | lastDay : '[Yesterday at] LT', | ||
2554 | 31 | lastWeek : '[Last] dddd [at] LT', | ||
2555 | 32 | sameElse : 'L' | ||
2556 | 33 | }, | ||
2557 | 34 | relativeTime : { | ||
2558 | 35 | future : "in %s", | ||
2559 | 36 | past : "%s ago", | ||
2560 | 37 | s : "a few seconds", | ||
2561 | 38 | m : "a minute", | ||
2562 | 39 | mm : "%d minutes", | ||
2563 | 40 | h : "an hour", | ||
2564 | 41 | hh : "%d hours", | ||
2565 | 42 | d : "a day", | ||
2566 | 43 | dd : "%d days", | ||
2567 | 44 | M : "a month", | ||
2568 | 45 | MM : "%d months", | ||
2569 | 46 | y : "a year", | ||
2570 | 47 | yy : "%d years" | ||
2571 | 48 | }, | ||
2572 | 49 | ordinal : function (number) { | ||
2573 | 50 | var b = number % 10, | ||
2574 | 51 | output = (~~ (number % 100 / 10) === 1) ? 'th' : | ||
2575 | 52 | (b === 1) ? 'st' : | ||
2576 | 53 | (b === 2) ? 'nd' : | ||
2577 | 54 | (b === 3) ? 'rd' : 'th'; | ||
2578 | 55 | return number + output; | ||
2579 | 56 | }, | ||
2580 | 57 | week : { | ||
2581 | 58 | dow : 1, // Monday is the first day of the week. | ||
2582 | 59 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
2583 | 60 | } | ||
2584 | 61 | }); | ||
2585 | 62 | })); | ||
2586 | 0 | 63 | ||
2587 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-ca.js' | |||
2588 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-ca.js 1970-01-01 00:00:00 +0000 | |||
2589 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-ca.js 2014-02-14 15:04:13 +0000 | |||
2590 | @@ -0,0 +1,59 @@ | |||
2591 | 1 | // moment.js language configuration | ||
2592 | 2 | // language : canadian english (en-ca) | ||
2593 | 3 | // author : Jonathan Abourbih : https://github.com/jonbca | ||
2594 | 4 | |||
2595 | 5 | (function (factory) { | ||
2596 | 6 | if (typeof define === 'function' && define.amd) { | ||
2597 | 7 | define(['moment'], factory); // AMD | ||
2598 | 8 | } else if (typeof exports === 'object') { | ||
2599 | 9 | module.exports = factory(require('../moment')); // Node | ||
2600 | 10 | } else { | ||
2601 | 11 | factory(window.moment); // Browser global | ||
2602 | 12 | } | ||
2603 | 13 | }(function (moment) { | ||
2604 | 14 | return moment.lang('en-ca', { | ||
2605 | 15 | months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), | ||
2606 | 16 | monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), | ||
2607 | 17 | weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), | ||
2608 | 18 | weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), | ||
2609 | 19 | weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), | ||
2610 | 20 | longDateFormat : { | ||
2611 | 21 | LT : "h:mm A", | ||
2612 | 22 | L : "YYYY-MM-DD", | ||
2613 | 23 | LL : "D MMMM, YYYY", | ||
2614 | 24 | LLL : "D MMMM, YYYY LT", | ||
2615 | 25 | LLLL : "dddd, D MMMM, YYYY LT" | ||
2616 | 26 | }, | ||
2617 | 27 | calendar : { | ||
2618 | 28 | sameDay : '[Today at] LT', | ||
2619 | 29 | nextDay : '[Tomorrow at] LT', | ||
2620 | 30 | nextWeek : 'dddd [at] LT', | ||
2621 | 31 | lastDay : '[Yesterday at] LT', | ||
2622 | 32 | lastWeek : '[Last] dddd [at] LT', | ||
2623 | 33 | sameElse : 'L' | ||
2624 | 34 | }, | ||
2625 | 35 | relativeTime : { | ||
2626 | 36 | future : "in %s", | ||
2627 | 37 | past : "%s ago", | ||
2628 | 38 | s : "a few seconds", | ||
2629 | 39 | m : "a minute", | ||
2630 | 40 | mm : "%d minutes", | ||
2631 | 41 | h : "an hour", | ||
2632 | 42 | hh : "%d hours", | ||
2633 | 43 | d : "a day", | ||
2634 | 44 | dd : "%d days", | ||
2635 | 45 | M : "a month", | ||
2636 | 46 | MM : "%d months", | ||
2637 | 47 | y : "a year", | ||
2638 | 48 | yy : "%d years" | ||
2639 | 49 | }, | ||
2640 | 50 | ordinal : function (number) { | ||
2641 | 51 | var b = number % 10, | ||
2642 | 52 | output = (~~ (number % 100 / 10) === 1) ? 'th' : | ||
2643 | 53 | (b === 1) ? 'st' : | ||
2644 | 54 | (b === 2) ? 'nd' : | ||
2645 | 55 | (b === 3) ? 'rd' : 'th'; | ||
2646 | 56 | return number + output; | ||
2647 | 57 | } | ||
2648 | 58 | }); | ||
2649 | 59 | })); | ||
2650 | 0 | 60 | ||
2651 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-gb.js' | |||
2652 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-gb.js 1970-01-01 00:00:00 +0000 | |||
2653 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.en-gb.js 2014-02-14 15:04:13 +0000 | |||
2654 | @@ -0,0 +1,63 @@ | |||
2655 | 1 | // moment.js language configuration | ||
2656 | 2 | // language : great britain english (en-gb) | ||
2657 | 3 | // author : Chris Gedrim : https://github.com/chrisgedrim | ||
2658 | 4 | |||
2659 | 5 | (function (factory) { | ||
2660 | 6 | if (typeof define === 'function' && define.amd) { | ||
2661 | 7 | define(['moment'], factory); // AMD | ||
2662 | 8 | } else if (typeof exports === 'object') { | ||
2663 | 9 | module.exports = factory(require('../moment')); // Node | ||
2664 | 10 | } else { | ||
2665 | 11 | factory(window.moment); // Browser global | ||
2666 | 12 | } | ||
2667 | 13 | }(function (moment) { | ||
2668 | 14 | return moment.lang('en-gb', { | ||
2669 | 15 | months : "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), | ||
2670 | 16 | monthsShort : "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), | ||
2671 | 17 | weekdays : "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), | ||
2672 | 18 | weekdaysShort : "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), | ||
2673 | 19 | weekdaysMin : "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), | ||
2674 | 20 | longDateFormat : { | ||
2675 | 21 | LT : "HH:mm", | ||
2676 | 22 | L : "DD/MM/YYYY", | ||
2677 | 23 | LL : "D MMMM YYYY", | ||
2678 | 24 | LLL : "D MMMM YYYY LT", | ||
2679 | 25 | LLLL : "dddd, D MMMM YYYY LT" | ||
2680 | 26 | }, | ||
2681 | 27 | calendar : { | ||
2682 | 28 | sameDay : '[Today at] LT', | ||
2683 | 29 | nextDay : '[Tomorrow at] LT', | ||
2684 | 30 | nextWeek : 'dddd [at] LT', | ||
2685 | 31 | lastDay : '[Yesterday at] LT', | ||
2686 | 32 | lastWeek : '[Last] dddd [at] LT', | ||
2687 | 33 | sameElse : 'L' | ||
2688 | 34 | }, | ||
2689 | 35 | relativeTime : { | ||
2690 | 36 | future : "in %s", | ||
2691 | 37 | past : "%s ago", | ||
2692 | 38 | s : "a few seconds", | ||
2693 | 39 | m : "a minute", | ||
2694 | 40 | mm : "%d minutes", | ||
2695 | 41 | h : "an hour", | ||
2696 | 42 | hh : "%d hours", | ||
2697 | 43 | d : "a day", | ||
2698 | 44 | dd : "%d days", | ||
2699 | 45 | M : "a month", | ||
2700 | 46 | MM : "%d months", | ||
2701 | 47 | y : "a year", | ||
2702 | 48 | yy : "%d years" | ||
2703 | 49 | }, | ||
2704 | 50 | ordinal : function (number) { | ||
2705 | 51 | var b = number % 10, | ||
2706 | 52 | output = (~~ (number % 100 / 10) === 1) ? 'th' : | ||
2707 | 53 | (b === 1) ? 'st' : | ||
2708 | 54 | (b === 2) ? 'nd' : | ||
2709 | 55 | (b === 3) ? 'rd' : 'th'; | ||
2710 | 56 | return number + output; | ||
2711 | 57 | }, | ||
2712 | 58 | week : { | ||
2713 | 59 | dow : 1, // Monday is the first day of the week. | ||
2714 | 60 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
2715 | 61 | } | ||
2716 | 62 | }); | ||
2717 | 63 | })); | ||
2718 | 0 | 64 | ||
2719 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.eo.js' | |||
2720 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.eo.js 1970-01-01 00:00:00 +0000 | |||
2721 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.eo.js 2014-02-14 15:04:13 +0000 | |||
2722 | @@ -0,0 +1,65 @@ | |||
2723 | 1 | // moment.js language configuration | ||
2724 | 2 | // language : esperanto (eo) | ||
2725 | 3 | // author : Colin Dean : https://github.com/colindean | ||
2726 | 4 | // komento: Mi estas malcerta se mi korekte traktis akuzativojn en tiu traduko. | ||
2727 | 5 | // Se ne, bonvolu korekti kaj avizi min por ke mi povas lerni! | ||
2728 | 6 | |||
2729 | 7 | (function (factory) { | ||
2730 | 8 | if (typeof define === 'function' && define.amd) { | ||
2731 | 9 | define(['moment'], factory); // AMD | ||
2732 | 10 | } else if (typeof exports === 'object') { | ||
2733 | 11 | module.exports = factory(require('../moment')); // Node | ||
2734 | 12 | } else { | ||
2735 | 13 | factory(window.moment); // Browser global | ||
2736 | 14 | } | ||
2737 | 15 | }(function (moment) { | ||
2738 | 16 | return moment.lang('eo', { | ||
2739 | 17 | months : "januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"), | ||
2740 | 18 | monthsShort : "jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"), | ||
2741 | 19 | weekdays : "Dimanĉo_Lundo_Mardo_Merkredo_Ĵaŭdo_Vendredo_Sabato".split("_"), | ||
2742 | 20 | weekdaysShort : "Dim_Lun_Mard_Merk_Ĵaŭ_Ven_Sab".split("_"), | ||
2743 | 21 | weekdaysMin : "Di_Lu_Ma_Me_Ĵa_Ve_Sa".split("_"), | ||
2744 | 22 | longDateFormat : { | ||
2745 | 23 | LT : "HH:mm", | ||
2746 | 24 | L : "YYYY-MM-DD", | ||
2747 | 25 | LL : "D[-an de] MMMM, YYYY", | ||
2748 | 26 | LLL : "D[-an de] MMMM, YYYY LT", | ||
2749 | 27 | LLLL : "dddd, [la] D[-an de] MMMM, YYYY LT" | ||
2750 | 28 | }, | ||
2751 | 29 | meridiem : function (hours, minutes, isLower) { | ||
2752 | 30 | if (hours > 11) { | ||
2753 | 31 | return isLower ? 'p.t.m.' : 'P.T.M.'; | ||
2754 | 32 | } else { | ||
2755 | 33 | return isLower ? 'a.t.m.' : 'A.T.M.'; | ||
2756 | 34 | } | ||
2757 | 35 | }, | ||
2758 | 36 | calendar : { | ||
2759 | 37 | sameDay : '[Hodiaŭ je] LT', | ||
2760 | 38 | nextDay : '[Morgaŭ je] LT', | ||
2761 | 39 | nextWeek : 'dddd [je] LT', | ||
2762 | 40 | lastDay : '[Hieraŭ je] LT', | ||
2763 | 41 | lastWeek : '[pasinta] dddd [je] LT', | ||
2764 | 42 | sameElse : 'L' | ||
2765 | 43 | }, | ||
2766 | 44 | relativeTime : { | ||
2767 | 45 | future : "je %s", | ||
2768 | 46 | past : "antaŭ %s", | ||
2769 | 47 | s : "sekundoj", | ||
2770 | 48 | m : "minuto", | ||
2771 | 49 | mm : "%d minutoj", | ||
2772 | 50 | h : "horo", | ||
2773 | 51 | hh : "%d horoj", | ||
2774 | 52 | d : "tago",//ne 'diurno', ĉar estas uzita por proksimumo | ||
2775 | 53 | dd : "%d tagoj", | ||
2776 | 54 | M : "monato", | ||
2777 | 55 | MM : "%d monatoj", | ||
2778 | 56 | y : "jaro", | ||
2779 | 57 | yy : "%d jaroj" | ||
2780 | 58 | }, | ||
2781 | 59 | ordinal : "%da", | ||
2782 | 60 | week : { | ||
2783 | 61 | dow : 1, // Monday is the first day of the week. | ||
2784 | 62 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
2785 | 63 | } | ||
2786 | 64 | }); | ||
2787 | 65 | })); | ||
2788 | 0 | 66 | ||
2789 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.es.js' | |||
2790 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.es.js 1970-01-01 00:00:00 +0000 | |||
2791 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.es.js 2014-02-14 15:04:13 +0000 | |||
2792 | @@ -0,0 +1,66 @@ | |||
2793 | 1 | // moment.js language configuration | ||
2794 | 2 | // language : spanish (es) | ||
2795 | 3 | // author : Julio Napurí : https://github.com/julionc | ||
2796 | 4 | |||
2797 | 5 | (function (factory) { | ||
2798 | 6 | if (typeof define === 'function' && define.amd) { | ||
2799 | 7 | define(['moment'], factory); // AMD | ||
2800 | 8 | } else if (typeof exports === 'object') { | ||
2801 | 9 | module.exports = factory(require('../moment')); // Node | ||
2802 | 10 | } else { | ||
2803 | 11 | factory(window.moment); // Browser global | ||
2804 | 12 | } | ||
2805 | 13 | }(function (moment) { | ||
2806 | 14 | return moment.lang('es', { | ||
2807 | 15 | months : "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), | ||
2808 | 16 | monthsShort : "ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"), | ||
2809 | 17 | weekdays : "domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"), | ||
2810 | 18 | weekdaysShort : "dom._lun._mar._mié._jue._vie._sáb.".split("_"), | ||
2811 | 19 | weekdaysMin : "Do_Lu_Ma_Mi_Ju_Vi_Sá".split("_"), | ||
2812 | 20 | longDateFormat : { | ||
2813 | 21 | LT : "H:mm", | ||
2814 | 22 | L : "DD/MM/YYYY", | ||
2815 | 23 | LL : "D [de] MMMM [de] YYYY", | ||
2816 | 24 | LLL : "D [de] MMMM [de] YYYY LT", | ||
2817 | 25 | LLLL : "dddd, D [de] MMMM [de] YYYY LT" | ||
2818 | 26 | }, | ||
2819 | 27 | calendar : { | ||
2820 | 28 | sameDay : function () { | ||
2821 | 29 | return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | ||
2822 | 30 | }, | ||
2823 | 31 | nextDay : function () { | ||
2824 | 32 | return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | ||
2825 | 33 | }, | ||
2826 | 34 | nextWeek : function () { | ||
2827 | 35 | return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | ||
2828 | 36 | }, | ||
2829 | 37 | lastDay : function () { | ||
2830 | 38 | return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | ||
2831 | 39 | }, | ||
2832 | 40 | lastWeek : function () { | ||
2833 | 41 | return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT'; | ||
2834 | 42 | }, | ||
2835 | 43 | sameElse : 'L' | ||
2836 | 44 | }, | ||
2837 | 45 | relativeTime : { | ||
2838 | 46 | future : "en %s", | ||
2839 | 47 | past : "hace %s", | ||
2840 | 48 | s : "unos segundos", | ||
2841 | 49 | m : "un minuto", | ||
2842 | 50 | mm : "%d minutos", | ||
2843 | 51 | h : "una hora", | ||
2844 | 52 | hh : "%d horas", | ||
2845 | 53 | d : "un día", | ||
2846 | 54 | dd : "%d días", | ||
2847 | 55 | M : "un mes", | ||
2848 | 56 | MM : "%d meses", | ||
2849 | 57 | y : "un año", | ||
2850 | 58 | yy : "%d años" | ||
2851 | 59 | }, | ||
2852 | 60 | ordinal : '%dº', | ||
2853 | 61 | week : { | ||
2854 | 62 | dow : 1, // Monday is the first day of the week. | ||
2855 | 63 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
2856 | 64 | } | ||
2857 | 65 | }); | ||
2858 | 66 | })); | ||
2859 | 0 | 67 | ||
2860 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.et.js' | |||
2861 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.et.js 1970-01-01 00:00:00 +0000 | |||
2862 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.et.js 2014-02-14 15:04:13 +0000 | |||
2863 | @@ -0,0 +1,60 @@ | |||
2864 | 1 | // moment.js language configuration | ||
2865 | 2 | // language : estonian (et) | ||
2866 | 3 | // author : Henry Kehlmann : https://github.com/madhenry | ||
2867 | 4 | |||
2868 | 5 | (function (factory) { | ||
2869 | 6 | if (typeof define === 'function' && define.amd) { | ||
2870 | 7 | define(['moment'], factory); // AMD | ||
2871 | 8 | } else if (typeof exports === 'object') { | ||
2872 | 9 | module.exports = factory(require('../moment')); // Node | ||
2873 | 10 | } else { | ||
2874 | 11 | factory(window.moment); // Browser global | ||
2875 | 12 | } | ||
2876 | 13 | }(function (moment) { | ||
2877 | 14 | function translateSeconds(number, withoutSuffix, key, isFuture) { | ||
2878 | 15 | return (isFuture || withoutSuffix) ? 'paari sekundi' : 'paar sekundit'; | ||
2879 | 16 | } | ||
2880 | 17 | |||
2881 | 18 | return moment.lang('et', { | ||
2882 | 19 | months : "jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"), | ||
2883 | 20 | monthsShort : "jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"), | ||
2884 | 21 | weekdays : "pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"), | ||
2885 | 22 | weekdaysShort : "P_E_T_K_N_R_L".split("_"), | ||
2886 | 23 | weekdaysMin : "P_E_T_K_N_R_L".split("_"), | ||
2887 | 24 | longDateFormat : { | ||
2888 | 25 | LT : "H:mm", | ||
2889 | 26 | L : "DD.MM.YYYY", | ||
2890 | 27 | LL : "D. MMMM YYYY", | ||
2891 | 28 | LLL : "D. MMMM YYYY LT", | ||
2892 | 29 | LLLL : "dddd, D. MMMM YYYY LT" | ||
2893 | 30 | }, | ||
2894 | 31 | calendar : { | ||
2895 | 32 | sameDay : '[Täna,] LT', | ||
2896 | 33 | nextDay : '[Homme,] LT', | ||
2897 | 34 | nextWeek : '[Järgmine] dddd LT', | ||
2898 | 35 | lastDay : '[Eile,] LT', | ||
2899 | 36 | lastWeek : '[Eelmine] dddd LT', | ||
2900 | 37 | sameElse : 'L' | ||
2901 | 38 | }, | ||
2902 | 39 | relativeTime : { | ||
2903 | 40 | future : "%s pärast", | ||
2904 | 41 | past : "%s tagasi", | ||
2905 | 42 | s : translateSeconds, | ||
2906 | 43 | m : "minut", | ||
2907 | 44 | mm : "%d minutit", | ||
2908 | 45 | h : "tund", | ||
2909 | 46 | hh : "%d tundi", | ||
2910 | 47 | d : "päev", | ||
2911 | 48 | dd : "%d päeva", | ||
2912 | 49 | M : "kuu", | ||
2913 | 50 | MM : "%d kuud", | ||
2914 | 51 | y : "aasta", | ||
2915 | 52 | yy : "%d aastat" | ||
2916 | 53 | }, | ||
2917 | 54 | ordinal : '%d.', | ||
2918 | 55 | week : { | ||
2919 | 56 | dow : 1, // Monday is the first day of the week. | ||
2920 | 57 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
2921 | 58 | } | ||
2922 | 59 | }); | ||
2923 | 60 | })); | ||
2924 | 0 | 61 | ||
2925 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.eu.js' | |||
2926 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.eu.js 1970-01-01 00:00:00 +0000 | |||
2927 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.eu.js 2014-02-14 15:04:13 +0000 | |||
2928 | @@ -0,0 +1,60 @@ | |||
2929 | 1 | // moment.js language configuration | ||
2930 | 2 | // language : euskara (eu) | ||
2931 | 3 | // author : Eneko Illarramendi : https://github.com/eillarra | ||
2932 | 4 | |||
2933 | 5 | (function (factory) { | ||
2934 | 6 | if (typeof define === 'function' && define.amd) { | ||
2935 | 7 | define(['moment'], factory); // AMD | ||
2936 | 8 | } else if (typeof exports === 'object') { | ||
2937 | 9 | module.exports = factory(require('../moment')); // Node | ||
2938 | 10 | } else { | ||
2939 | 11 | factory(window.moment); // Browser global | ||
2940 | 12 | } | ||
2941 | 13 | }(function (moment) { | ||
2942 | 14 | return moment.lang('eu', { | ||
2943 | 15 | months : "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"), | ||
2944 | 16 | monthsShort : "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"), | ||
2945 | 17 | weekdays : "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"), | ||
2946 | 18 | weekdaysShort : "ig._al._ar._az._og._ol._lr.".split("_"), | ||
2947 | 19 | weekdaysMin : "ig_al_ar_az_og_ol_lr".split("_"), | ||
2948 | 20 | longDateFormat : { | ||
2949 | 21 | LT : "HH:mm", | ||
2950 | 22 | L : "YYYY-MM-DD", | ||
2951 | 23 | LL : "YYYY[ko] MMMM[ren] D[a]", | ||
2952 | 24 | LLL : "YYYY[ko] MMMM[ren] D[a] LT", | ||
2953 | 25 | LLLL : "dddd, YYYY[ko] MMMM[ren] D[a] LT", | ||
2954 | 26 | l : "YYYY-M-D", | ||
2955 | 27 | ll : "YYYY[ko] MMM D[a]", | ||
2956 | 28 | lll : "YYYY[ko] MMM D[a] LT", | ||
2957 | 29 | llll : "ddd, YYYY[ko] MMM D[a] LT" | ||
2958 | 30 | }, | ||
2959 | 31 | calendar : { | ||
2960 | 32 | sameDay : '[gaur] LT[etan]', | ||
2961 | 33 | nextDay : '[bihar] LT[etan]', | ||
2962 | 34 | nextWeek : 'dddd LT[etan]', | ||
2963 | 35 | lastDay : '[atzo] LT[etan]', | ||
2964 | 36 | lastWeek : '[aurreko] dddd LT[etan]', | ||
2965 | 37 | sameElse : 'L' | ||
2966 | 38 | }, | ||
2967 | 39 | relativeTime : { | ||
2968 | 40 | future : "%s barru", | ||
2969 | 41 | past : "duela %s", | ||
2970 | 42 | s : "segundo batzuk", | ||
2971 | 43 | m : "minutu bat", | ||
2972 | 44 | mm : "%d minutu", | ||
2973 | 45 | h : "ordu bat", | ||
2974 | 46 | hh : "%d ordu", | ||
2975 | 47 | d : "egun bat", | ||
2976 | 48 | dd : "%d egun", | ||
2977 | 49 | M : "hilabete bat", | ||
2978 | 50 | MM : "%d hilabete", | ||
2979 | 51 | y : "urte bat", | ||
2980 | 52 | yy : "%d urte" | ||
2981 | 53 | }, | ||
2982 | 54 | ordinal : '%d.', | ||
2983 | 55 | week : { | ||
2984 | 56 | dow : 1, // Monday is the first day of the week. | ||
2985 | 57 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
2986 | 58 | } | ||
2987 | 59 | }); | ||
2988 | 60 | })); | ||
2989 | 0 | 61 | ||
2990 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fa.js' | |||
2991 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fa.js 1970-01-01 00:00:00 +0000 | |||
2992 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fa.js 2014-02-14 15:04:13 +0000 | |||
2993 | @@ -0,0 +1,97 @@ | |||
2994 | 1 | // moment.js language configuration | ||
2995 | 2 | // language : Persian Language | ||
2996 | 3 | // author : Ebrahim Byagowi : https://github.com/ebraminio | ||
2997 | 4 | |||
2998 | 5 | (function (factory) { | ||
2999 | 6 | if (typeof define === 'function' && define.amd) { | ||
3000 | 7 | define(['moment'], factory); // AMD | ||
3001 | 8 | } else if (typeof exports === 'object') { | ||
3002 | 9 | module.exports = factory(require('../moment')); // Node | ||
3003 | 10 | } else { | ||
3004 | 11 | factory(window.moment); // Browser global | ||
3005 | 12 | } | ||
3006 | 13 | }(function (moment) { | ||
3007 | 14 | var symbolMap = { | ||
3008 | 15 | '1': '۱', | ||
3009 | 16 | '2': '۲', | ||
3010 | 17 | '3': '۳', | ||
3011 | 18 | '4': '۴', | ||
3012 | 19 | '5': '۵', | ||
3013 | 20 | '6': '۶', | ||
3014 | 21 | '7': '۷', | ||
3015 | 22 | '8': '۸', | ||
3016 | 23 | '9': '۹', | ||
3017 | 24 | '0': '۰' | ||
3018 | 25 | }, numberMap = { | ||
3019 | 26 | '۱': '1', | ||
3020 | 27 | '۲': '2', | ||
3021 | 28 | '۳': '3', | ||
3022 | 29 | '۴': '4', | ||
3023 | 30 | '۵': '5', | ||
3024 | 31 | '۶': '6', | ||
3025 | 32 | '۷': '7', | ||
3026 | 33 | '۸': '8', | ||
3027 | 34 | '۹': '9', | ||
3028 | 35 | '۰': '0' | ||
3029 | 36 | }; | ||
3030 | 37 | |||
3031 | 38 | return moment.lang('fa', { | ||
3032 | 39 | months : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), | ||
3033 | 40 | monthsShort : 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split('_'), | ||
3034 | 41 | weekdays : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), | ||
3035 | 42 | weekdaysShort : 'یک\u200cشنبه_دوشنبه_سه\u200cشنبه_چهارشنبه_پنج\u200cشنبه_جمعه_شنبه'.split('_'), | ||
3036 | 43 | weekdaysMin : 'ی_د_س_چ_پ_ج_ش'.split('_'), | ||
3037 | 44 | longDateFormat : { | ||
3038 | 45 | LT : 'HH:mm', | ||
3039 | 46 | L : 'DD/MM/YYYY', | ||
3040 | 47 | LL : 'D MMMM YYYY', | ||
3041 | 48 | LLL : 'D MMMM YYYY LT', | ||
3042 | 49 | LLLL : 'dddd, D MMMM YYYY LT' | ||
3043 | 50 | }, | ||
3044 | 51 | meridiem : function (hour, minute, isLower) { | ||
3045 | 52 | if (hour < 12) { | ||
3046 | 53 | return "قبل از ظهر"; | ||
3047 | 54 | } else { | ||
3048 | 55 | return "بعد از ظهر"; | ||
3049 | 56 | } | ||
3050 | 57 | }, | ||
3051 | 58 | calendar : { | ||
3052 | 59 | sameDay : '[امروز ساعت] LT', | ||
3053 | 60 | nextDay : '[فردا ساعت] LT', | ||
3054 | 61 | nextWeek : 'dddd [ساعت] LT', | ||
3055 | 62 | lastDay : '[دیروز ساعت] LT', | ||
3056 | 63 | lastWeek : 'dddd [پیش] [ساعت] LT', | ||
3057 | 64 | sameElse : 'L' | ||
3058 | 65 | }, | ||
3059 | 66 | relativeTime : { | ||
3060 | 67 | future : 'در %s', | ||
3061 | 68 | past : '%s پیش', | ||
3062 | 69 | s : 'چندین ثانیه', | ||
3063 | 70 | m : 'یک دقیقه', | ||
3064 | 71 | mm : '%d دقیقه', | ||
3065 | 72 | h : 'یک ساعت', | ||
3066 | 73 | hh : '%d ساعت', | ||
3067 | 74 | d : 'یک روز', | ||
3068 | 75 | dd : '%d روز', | ||
3069 | 76 | M : 'یک ماه', | ||
3070 | 77 | MM : '%d ماه', | ||
3071 | 78 | y : 'یک سال', | ||
3072 | 79 | yy : '%d سال' | ||
3073 | 80 | }, | ||
3074 | 81 | preparse: function (string) { | ||
3075 | 82 | return string.replace(/[۰-۹]/g, function (match) { | ||
3076 | 83 | return numberMap[match]; | ||
3077 | 84 | }).replace(/،/g, ','); | ||
3078 | 85 | }, | ||
3079 | 86 | postformat: function (string) { | ||
3080 | 87 | return string.replace(/\d/g, function (match) { | ||
3081 | 88 | return symbolMap[match]; | ||
3082 | 89 | }).replace(/,/g, '،'); | ||
3083 | 90 | }, | ||
3084 | 91 | ordinal : '%dم', | ||
3085 | 92 | week : { | ||
3086 | 93 | dow : 6, // Saturday is the first day of the week. | ||
3087 | 94 | doy : 12 // The week that contains Jan 1st is the first week of the year. | ||
3088 | 95 | } | ||
3089 | 96 | }); | ||
3090 | 97 | })); | ||
3091 | 0 | 98 | ||
3092 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fi.js' | |||
3093 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fi.js 1970-01-01 00:00:00 +0000 | |||
3094 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fi.js 2014-02-14 15:04:13 +0000 | |||
3095 | @@ -0,0 +1,103 @@ | |||
3096 | 1 | // moment.js language configuration | ||
3097 | 2 | // language : finnish (fi) | ||
3098 | 3 | // author : Tarmo Aidantausta : https://github.com/bleadof | ||
3099 | 4 | |||
3100 | 5 | (function (factory) { | ||
3101 | 6 | if (typeof define === 'function' && define.amd) { | ||
3102 | 7 | define(['moment'], factory); // AMD | ||
3103 | 8 | } else if (typeof exports === 'object') { | ||
3104 | 9 | module.exports = factory(require('../moment')); // Node | ||
3105 | 10 | } else { | ||
3106 | 11 | factory(window.moment); // Browser global | ||
3107 | 12 | } | ||
3108 | 13 | }(function (moment) { | ||
3109 | 14 | var numbers_past = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '), | ||
3110 | 15 | numbers_future = ['nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden', | ||
3111 | 16 | numbers_past[7], numbers_past[8], numbers_past[9]]; | ||
3112 | 17 | |||
3113 | 18 | function translate(number, withoutSuffix, key, isFuture) { | ||
3114 | 19 | var result = ""; | ||
3115 | 20 | switch (key) { | ||
3116 | 21 | case 's': | ||
3117 | 22 | return isFuture ? 'muutaman sekunnin' : 'muutama sekunti'; | ||
3118 | 23 | case 'm': | ||
3119 | 24 | return isFuture ? 'minuutin' : 'minuutti'; | ||
3120 | 25 | case 'mm': | ||
3121 | 26 | result = isFuture ? 'minuutin' : 'minuuttia'; | ||
3122 | 27 | break; | ||
3123 | 28 | case 'h': | ||
3124 | 29 | return isFuture ? 'tunnin' : 'tunti'; | ||
3125 | 30 | case 'hh': | ||
3126 | 31 | result = isFuture ? 'tunnin' : 'tuntia'; | ||
3127 | 32 | break; | ||
3128 | 33 | case 'd': | ||
3129 | 34 | return isFuture ? 'päivän' : 'päivä'; | ||
3130 | 35 | case 'dd': | ||
3131 | 36 | result = isFuture ? 'päivän' : 'päivää'; | ||
3132 | 37 | break; | ||
3133 | 38 | case 'M': | ||
3134 | 39 | return isFuture ? 'kuukauden' : 'kuukausi'; | ||
3135 | 40 | case 'MM': | ||
3136 | 41 | result = isFuture ? 'kuukauden' : 'kuukautta'; | ||
3137 | 42 | break; | ||
3138 | 43 | case 'y': | ||
3139 | 44 | return isFuture ? 'vuoden' : 'vuosi'; | ||
3140 | 45 | case 'yy': | ||
3141 | 46 | result = isFuture ? 'vuoden' : 'vuotta'; | ||
3142 | 47 | break; | ||
3143 | 48 | } | ||
3144 | 49 | result = verbal_number(number, isFuture) + " " + result; | ||
3145 | 50 | return result; | ||
3146 | 51 | } | ||
3147 | 52 | |||
3148 | 53 | function verbal_number(number, isFuture) { | ||
3149 | 54 | return number < 10 ? (isFuture ? numbers_future[number] : numbers_past[number]) : number; | ||
3150 | 55 | } | ||
3151 | 56 | |||
3152 | 57 | return moment.lang('fi', { | ||
3153 | 58 | months : "tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"), | ||
3154 | 59 | monthsShort : "tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"), | ||
3155 | 60 | weekdays : "sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"), | ||
3156 | 61 | weekdaysShort : "su_ma_ti_ke_to_pe_la".split("_"), | ||
3157 | 62 | weekdaysMin : "su_ma_ti_ke_to_pe_la".split("_"), | ||
3158 | 63 | longDateFormat : { | ||
3159 | 64 | LT : "HH.mm", | ||
3160 | 65 | L : "DD.MM.YYYY", | ||
3161 | 66 | LL : "Do MMMM[ta] YYYY", | ||
3162 | 67 | LLL : "Do MMMM[ta] YYYY, [klo] LT", | ||
3163 | 68 | LLLL : "dddd, Do MMMM[ta] YYYY, [klo] LT", | ||
3164 | 69 | l : "D.M.YYYY", | ||
3165 | 70 | ll : "Do MMM YYYY", | ||
3166 | 71 | lll : "Do MMM YYYY, [klo] LT", | ||
3167 | 72 | llll : "ddd, Do MMM YYYY, [klo] LT" | ||
3168 | 73 | }, | ||
3169 | 74 | calendar : { | ||
3170 | 75 | sameDay : '[tänään] [klo] LT', | ||
3171 | 76 | nextDay : '[huomenna] [klo] LT', | ||
3172 | 77 | nextWeek : 'dddd [klo] LT', | ||
3173 | 78 | lastDay : '[eilen] [klo] LT', | ||
3174 | 79 | lastWeek : '[viime] dddd[na] [klo] LT', | ||
3175 | 80 | sameElse : 'L' | ||
3176 | 81 | }, | ||
3177 | 82 | relativeTime : { | ||
3178 | 83 | future : "%s päästä", | ||
3179 | 84 | past : "%s sitten", | ||
3180 | 85 | s : translate, | ||
3181 | 86 | m : translate, | ||
3182 | 87 | mm : translate, | ||
3183 | 88 | h : translate, | ||
3184 | 89 | hh : translate, | ||
3185 | 90 | d : translate, | ||
3186 | 91 | dd : translate, | ||
3187 | 92 | M : translate, | ||
3188 | 93 | MM : translate, | ||
3189 | 94 | y : translate, | ||
3190 | 95 | yy : translate | ||
3191 | 96 | }, | ||
3192 | 97 | ordinal : "%d.", | ||
3193 | 98 | week : { | ||
3194 | 99 | dow : 1, // Monday is the first day of the week. | ||
3195 | 100 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
3196 | 101 | } | ||
3197 | 102 | }); | ||
3198 | 103 | })); | ||
3199 | 0 | 104 | ||
3200 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fr-ca.js' | |||
3201 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fr-ca.js 1970-01-01 00:00:00 +0000 | |||
3202 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fr-ca.js 2014-02-14 15:04:13 +0000 | |||
3203 | @@ -0,0 +1,54 @@ | |||
3204 | 1 | // moment.js language configuration | ||
3205 | 2 | // language : canadian french (fr-ca) | ||
3206 | 3 | // author : Jonathan Abourbih : https://github.com/jonbca | ||
3207 | 4 | |||
3208 | 5 | (function (factory) { | ||
3209 | 6 | if (typeof define === 'function' && define.amd) { | ||
3210 | 7 | define(['moment'], factory); // AMD | ||
3211 | 8 | } else if (typeof exports === 'object') { | ||
3212 | 9 | module.exports = factory(require('../moment')); // Node | ||
3213 | 10 | } else { | ||
3214 | 11 | factory(window.moment); // Browser global | ||
3215 | 12 | } | ||
3216 | 13 | }(function (moment) { | ||
3217 | 14 | return moment.lang('fr-ca', { | ||
3218 | 15 | months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), | ||
3219 | 16 | monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), | ||
3220 | 17 | weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), | ||
3221 | 18 | weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"), | ||
3222 | 19 | weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"), | ||
3223 | 20 | longDateFormat : { | ||
3224 | 21 | LT : "HH:mm", | ||
3225 | 22 | L : "YYYY-MM-DD", | ||
3226 | 23 | LL : "D MMMM YYYY", | ||
3227 | 24 | LLL : "D MMMM YYYY LT", | ||
3228 | 25 | LLLL : "dddd D MMMM YYYY LT" | ||
3229 | 26 | }, | ||
3230 | 27 | calendar : { | ||
3231 | 28 | sameDay: "[Aujourd'hui à] LT", | ||
3232 | 29 | nextDay: '[Demain à] LT', | ||
3233 | 30 | nextWeek: 'dddd [à] LT', | ||
3234 | 31 | lastDay: '[Hier à] LT', | ||
3235 | 32 | lastWeek: 'dddd [dernier à] LT', | ||
3236 | 33 | sameElse: 'L' | ||
3237 | 34 | }, | ||
3238 | 35 | relativeTime : { | ||
3239 | 36 | future : "dans %s", | ||
3240 | 37 | past : "il y a %s", | ||
3241 | 38 | s : "quelques secondes", | ||
3242 | 39 | m : "une minute", | ||
3243 | 40 | mm : "%d minutes", | ||
3244 | 41 | h : "une heure", | ||
3245 | 42 | hh : "%d heures", | ||
3246 | 43 | d : "un jour", | ||
3247 | 44 | dd : "%d jours", | ||
3248 | 45 | M : "un mois", | ||
3249 | 46 | MM : "%d mois", | ||
3250 | 47 | y : "un an", | ||
3251 | 48 | yy : "%d ans" | ||
3252 | 49 | }, | ||
3253 | 50 | ordinal : function (number) { | ||
3254 | 51 | return number + (number === 1 ? 'er' : ''); | ||
3255 | 52 | } | ||
3256 | 53 | }); | ||
3257 | 54 | })); | ||
3258 | 0 | 55 | ||
3259 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fr.js' | |||
3260 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fr.js 1970-01-01 00:00:00 +0000 | |||
3261 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.fr.js 2014-02-14 15:04:13 +0000 | |||
3262 | @@ -0,0 +1,58 @@ | |||
3263 | 1 | // moment.js language configuration | ||
3264 | 2 | // language : french (fr) | ||
3265 | 3 | // author : John Fischer : https://github.com/jfroffice | ||
3266 | 4 | |||
3267 | 5 | (function (factory) { | ||
3268 | 6 | if (typeof define === 'function' && define.amd) { | ||
3269 | 7 | define(['moment'], factory); // AMD | ||
3270 | 8 | } else if (typeof exports === 'object') { | ||
3271 | 9 | module.exports = factory(require('../moment')); // Node | ||
3272 | 10 | } else { | ||
3273 | 11 | factory(window.moment); // Browser global | ||
3274 | 12 | } | ||
3275 | 13 | }(function (moment) { | ||
3276 | 14 | return moment.lang('fr', { | ||
3277 | 15 | months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), | ||
3278 | 16 | monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), | ||
3279 | 17 | weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), | ||
3280 | 18 | weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"), | ||
3281 | 19 | weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"), | ||
3282 | 20 | longDateFormat : { | ||
3283 | 21 | LT : "HH:mm", | ||
3284 | 22 | L : "DD/MM/YYYY", | ||
3285 | 23 | LL : "D MMMM YYYY", | ||
3286 | 24 | LLL : "D MMMM YYYY LT", | ||
3287 | 25 | LLLL : "dddd D MMMM YYYY LT" | ||
3288 | 26 | }, | ||
3289 | 27 | calendar : { | ||
3290 | 28 | sameDay: "[Aujourd'hui à] LT", | ||
3291 | 29 | nextDay: '[Demain à] LT', | ||
3292 | 30 | nextWeek: 'dddd [à] LT', | ||
3293 | 31 | lastDay: '[Hier à] LT', | ||
3294 | 32 | lastWeek: 'dddd [dernier à] LT', | ||
3295 | 33 | sameElse: 'L' | ||
3296 | 34 | }, | ||
3297 | 35 | relativeTime : { | ||
3298 | 36 | future : "dans %s", | ||
3299 | 37 | past : "il y a %s", | ||
3300 | 38 | s : "quelques secondes", | ||
3301 | 39 | m : "une minute", | ||
3302 | 40 | mm : "%d minutes", | ||
3303 | 41 | h : "une heure", | ||
3304 | 42 | hh : "%d heures", | ||
3305 | 43 | d : "un jour", | ||
3306 | 44 | dd : "%d jours", | ||
3307 | 45 | M : "un mois", | ||
3308 | 46 | MM : "%d mois", | ||
3309 | 47 | y : "un an", | ||
3310 | 48 | yy : "%d ans" | ||
3311 | 49 | }, | ||
3312 | 50 | ordinal : function (number) { | ||
3313 | 51 | return number + (number === 1 ? 'er' : ''); | ||
3314 | 52 | }, | ||
3315 | 53 | week : { | ||
3316 | 54 | dow : 1, // Monday is the first day of the week. | ||
3317 | 55 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
3318 | 56 | } | ||
3319 | 57 | }); | ||
3320 | 58 | })); | ||
3321 | 0 | 59 | ||
3322 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.gl.js' | |||
3323 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.gl.js 1970-01-01 00:00:00 +0000 | |||
3324 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.gl.js 2014-02-14 15:04:13 +0000 | |||
3325 | @@ -0,0 +1,71 @@ | |||
3326 | 1 | // moment.js language configuration | ||
3327 | 2 | // language : galician (gl) | ||
3328 | 3 | // author : Juan G. Hurtado : https://github.com/juanghurtado | ||
3329 | 4 | |||
3330 | 5 | (function (factory) { | ||
3331 | 6 | if (typeof define === 'function' && define.amd) { | ||
3332 | 7 | define(['moment'], factory); // AMD | ||
3333 | 8 | } else if (typeof exports === 'object') { | ||
3334 | 9 | module.exports = factory(require('../moment')); // Node | ||
3335 | 10 | } else { | ||
3336 | 11 | factory(window.moment); // Browser global | ||
3337 | 12 | } | ||
3338 | 13 | }(function (moment) { | ||
3339 | 14 | return moment.lang('gl', { | ||
3340 | 15 | months : "Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Outubro_Novembro_Decembro".split("_"), | ||
3341 | 16 | monthsShort : "Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"), | ||
3342 | 17 | weekdays : "Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"), | ||
3343 | 18 | weekdaysShort : "Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"), | ||
3344 | 19 | weekdaysMin : "Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"), | ||
3345 | 20 | longDateFormat : { | ||
3346 | 21 | LT : "H:mm", | ||
3347 | 22 | L : "DD/MM/YYYY", | ||
3348 | 23 | LL : "D MMMM YYYY", | ||
3349 | 24 | LLL : "D MMMM YYYY LT", | ||
3350 | 25 | LLLL : "dddd D MMMM YYYY LT" | ||
3351 | 26 | }, | ||
3352 | 27 | calendar : { | ||
3353 | 28 | sameDay : function () { | ||
3354 | 29 | return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; | ||
3355 | 30 | }, | ||
3356 | 31 | nextDay : function () { | ||
3357 | 32 | return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'á') + '] LT'; | ||
3358 | 33 | }, | ||
3359 | 34 | nextWeek : function () { | ||
3360 | 35 | return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; | ||
3361 | 36 | }, | ||
3362 | 37 | lastDay : function () { | ||
3363 | 38 | return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT'; | ||
3364 | 39 | }, | ||
3365 | 40 | lastWeek : function () { | ||
3366 | 41 | return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT'; | ||
3367 | 42 | }, | ||
3368 | 43 | sameElse : 'L' | ||
3369 | 44 | }, | ||
3370 | 45 | relativeTime : { | ||
3371 | 46 | future : function (str) { | ||
3372 | 47 | if (str === "uns segundos") { | ||
3373 | 48 | return "nuns segundos"; | ||
3374 | 49 | } | ||
3375 | 50 | return "en " + str; | ||
3376 | 51 | }, | ||
3377 | 52 | past : "hai %s", | ||
3378 | 53 | s : "uns segundos", | ||
3379 | 54 | m : "un minuto", | ||
3380 | 55 | mm : "%d minutos", | ||
3381 | 56 | h : "unha hora", | ||
3382 | 57 | hh : "%d horas", | ||
3383 | 58 | d : "un día", | ||
3384 | 59 | dd : "%d días", | ||
3385 | 60 | M : "un mes", | ||
3386 | 61 | MM : "%d meses", | ||
3387 | 62 | y : "un ano", | ||
3388 | 63 | yy : "%d anos" | ||
3389 | 64 | }, | ||
3390 | 65 | ordinal : '%dº', | ||
3391 | 66 | week : { | ||
3392 | 67 | dow : 1, // Monday is the first day of the week. | ||
3393 | 68 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
3394 | 69 | } | ||
3395 | 70 | }); | ||
3396 | 71 | })); | ||
3397 | 0 | 72 | ||
3398 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.he.js' | |||
3399 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.he.js 1970-01-01 00:00:00 +0000 | |||
3400 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.he.js 2014-02-14 15:04:13 +0000 | |||
3401 | @@ -0,0 +1,77 @@ | |||
3402 | 1 | // moment.js language configuration | ||
3403 | 2 | // language : Hebrew (he) | ||
3404 | 3 | // author : Tomer Cohen : https://github.com/tomer | ||
3405 | 4 | // author : Moshe Simantov : https://github.com/DevelopmentIL | ||
3406 | 5 | // author : Tal Ater : https://github.com/TalAter | ||
3407 | 6 | |||
3408 | 7 | (function (factory) { | ||
3409 | 8 | if (typeof define === 'function' && define.amd) { | ||
3410 | 9 | define(['moment'], factory); // AMD | ||
3411 | 10 | } else if (typeof exports === 'object') { | ||
3412 | 11 | module.exports = factory(require('../moment')); // Node | ||
3413 | 12 | } else { | ||
3414 | 13 | factory(window.moment); // Browser global | ||
3415 | 14 | } | ||
3416 | 15 | }(function (moment) { | ||
3417 | 16 | return moment.lang('he', { | ||
3418 | 17 | months : "ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"), | ||
3419 | 18 | monthsShort : "ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"), | ||
3420 | 19 | weekdays : "ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"), | ||
3421 | 20 | weekdaysShort : "א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"), | ||
3422 | 21 | weekdaysMin : "א_ב_ג_ד_ה_ו_ש".split("_"), | ||
3423 | 22 | longDateFormat : { | ||
3424 | 23 | LT : "HH:mm", | ||
3425 | 24 | L : "DD/MM/YYYY", | ||
3426 | 25 | LL : "D [ב]MMMM YYYY", | ||
3427 | 26 | LLL : "D [ב]MMMM YYYY LT", | ||
3428 | 27 | LLLL : "dddd, D [ב]MMMM YYYY LT", | ||
3429 | 28 | l : "D/M/YYYY", | ||
3430 | 29 | ll : "D MMM YYYY", | ||
3431 | 30 | lll : "D MMM YYYY LT", | ||
3432 | 31 | llll : "ddd, D MMM YYYY LT" | ||
3433 | 32 | }, | ||
3434 | 33 | calendar : { | ||
3435 | 34 | sameDay : '[היום ב־]LT', | ||
3436 | 35 | nextDay : '[מחר ב־]LT', | ||
3437 | 36 | nextWeek : 'dddd [בשעה] LT', | ||
3438 | 37 | lastDay : '[אתמול ב־]LT', | ||
3439 | 38 | lastWeek : '[ביום] dddd [האחרון בשעה] LT', | ||
3440 | 39 | sameElse : 'L' | ||
3441 | 40 | }, | ||
3442 | 41 | relativeTime : { | ||
3443 | 42 | future : "בעוד %s", | ||
3444 | 43 | past : "לפני %s", | ||
3445 | 44 | s : "מספר שניות", | ||
3446 | 45 | m : "דקה", | ||
3447 | 46 | mm : "%d דקות", | ||
3448 | 47 | h : "שעה", | ||
3449 | 48 | hh : function (number) { | ||
3450 | 49 | if (number === 2) { | ||
3451 | 50 | return "שעתיים"; | ||
3452 | 51 | } | ||
3453 | 52 | return number + " שעות"; | ||
3454 | 53 | }, | ||
3455 | 54 | d : "יום", | ||
3456 | 55 | dd : function (number) { | ||
3457 | 56 | if (number === 2) { | ||
3458 | 57 | return "יומיים"; | ||
3459 | 58 | } | ||
3460 | 59 | return number + " ימים"; | ||
3461 | 60 | }, | ||
3462 | 61 | M : "חודש", | ||
3463 | 62 | MM : function (number) { | ||
3464 | 63 | if (number === 2) { | ||
3465 | 64 | return "חודשיים"; | ||
3466 | 65 | } | ||
3467 | 66 | return number + " חודשים"; | ||
3468 | 67 | }, | ||
3469 | 68 | y : "שנה", | ||
3470 | 69 | yy : function (number) { | ||
3471 | 70 | if (number === 2) { | ||
3472 | 71 | return "שנתיים"; | ||
3473 | 72 | } | ||
3474 | 73 | return number + " שנים"; | ||
3475 | 74 | } | ||
3476 | 75 | } | ||
3477 | 76 | }); | ||
3478 | 77 | })); | ||
3479 | 0 | 78 | ||
3480 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hi.js' | |||
3481 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hi.js 1970-01-01 00:00:00 +0000 | |||
3482 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hi.js 2014-02-14 15:04:13 +0000 | |||
3483 | @@ -0,0 +1,105 @@ | |||
3484 | 1 | // moment.js language configuration | ||
3485 | 2 | // language : hindi (hi) | ||
3486 | 3 | // author : Mayank Singhal : https://github.com/mayanksinghal | ||
3487 | 4 | |||
3488 | 5 | (function (factory) { | ||
3489 | 6 | if (typeof define === 'function' && define.amd) { | ||
3490 | 7 | define(['moment'], factory); // AMD | ||
3491 | 8 | } else if (typeof exports === 'object') { | ||
3492 | 9 | module.exports = factory(require('../moment')); // Node | ||
3493 | 10 | } else { | ||
3494 | 11 | factory(window.moment); // Browser global | ||
3495 | 12 | } | ||
3496 | 13 | }(function (moment) { | ||
3497 | 14 | var symbolMap = { | ||
3498 | 15 | '1': '१', | ||
3499 | 16 | '2': '२', | ||
3500 | 17 | '3': '३', | ||
3501 | 18 | '4': '४', | ||
3502 | 19 | '5': '५', | ||
3503 | 20 | '6': '६', | ||
3504 | 21 | '7': '७', | ||
3505 | 22 | '8': '८', | ||
3506 | 23 | '9': '९', | ||
3507 | 24 | '0': '०' | ||
3508 | 25 | }, | ||
3509 | 26 | numberMap = { | ||
3510 | 27 | '१': '1', | ||
3511 | 28 | '२': '2', | ||
3512 | 29 | '३': '3', | ||
3513 | 30 | '४': '4', | ||
3514 | 31 | '५': '5', | ||
3515 | 32 | '६': '6', | ||
3516 | 33 | '७': '7', | ||
3517 | 34 | '८': '8', | ||
3518 | 35 | '९': '9', | ||
3519 | 36 | '०': '0' | ||
3520 | 37 | }; | ||
3521 | 38 | |||
3522 | 39 | return moment.lang('hi', { | ||
3523 | 40 | months : 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split("_"), | ||
3524 | 41 | monthsShort : 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split("_"), | ||
3525 | 42 | weekdays : 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split("_"), | ||
3526 | 43 | weekdaysShort : 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split("_"), | ||
3527 | 44 | weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split("_"), | ||
3528 | 45 | longDateFormat : { | ||
3529 | 46 | LT : "A h:mm बजे", | ||
3530 | 47 | L : "DD/MM/YYYY", | ||
3531 | 48 | LL : "D MMMM YYYY", | ||
3532 | 49 | LLL : "D MMMM YYYY, LT", | ||
3533 | 50 | LLLL : "dddd, D MMMM YYYY, LT" | ||
3534 | 51 | }, | ||
3535 | 52 | calendar : { | ||
3536 | 53 | sameDay : '[आज] LT', | ||
3537 | 54 | nextDay : '[कल] LT', | ||
3538 | 55 | nextWeek : 'dddd, LT', | ||
3539 | 56 | lastDay : '[कल] LT', | ||
3540 | 57 | lastWeek : '[पिछले] dddd, LT', | ||
3541 | 58 | sameElse : 'L' | ||
3542 | 59 | }, | ||
3543 | 60 | relativeTime : { | ||
3544 | 61 | future : "%s में", | ||
3545 | 62 | past : "%s पहले", | ||
3546 | 63 | s : "कुछ ही क्षण", | ||
3547 | 64 | m : "एक मिनट", | ||
3548 | 65 | mm : "%d मिनट", | ||
3549 | 66 | h : "एक घंटा", | ||
3550 | 67 | hh : "%d घंटे", | ||
3551 | 68 | d : "एक दिन", | ||
3552 | 69 | dd : "%d दिन", | ||
3553 | 70 | M : "एक महीने", | ||
3554 | 71 | MM : "%d महीने", | ||
3555 | 72 | y : "एक वर्ष", | ||
3556 | 73 | yy : "%d वर्ष" | ||
3557 | 74 | }, | ||
3558 | 75 | preparse: function (string) { | ||
3559 | 76 | return string.replace(/[१२३४५६७८९०]/g, function (match) { | ||
3560 | 77 | return numberMap[match]; | ||
3561 | 78 | }); | ||
3562 | 79 | }, | ||
3563 | 80 | postformat: function (string) { | ||
3564 | 81 | return string.replace(/\d/g, function (match) { | ||
3565 | 82 | return symbolMap[match]; | ||
3566 | 83 | }); | ||
3567 | 84 | }, | ||
3568 | 85 | // Hindi notation for meridiems are quite fuzzy in practice. While there exists | ||
3569 | 86 | // a rigid notion of a 'Pahar' it is not used as rigidly in modern Hindi. | ||
3570 | 87 | meridiem : function (hour, minute, isLower) { | ||
3571 | 88 | if (hour < 4) { | ||
3572 | 89 | return "रात"; | ||
3573 | 90 | } else if (hour < 10) { | ||
3574 | 91 | return "सुबह"; | ||
3575 | 92 | } else if (hour < 17) { | ||
3576 | 93 | return "दोपहर"; | ||
3577 | 94 | } else if (hour < 20) { | ||
3578 | 95 | return "शाम"; | ||
3579 | 96 | } else { | ||
3580 | 97 | return "रात"; | ||
3581 | 98 | } | ||
3582 | 99 | }, | ||
3583 | 100 | week : { | ||
3584 | 101 | dow : 0, // Sunday is the first day of the week. | ||
3585 | 102 | doy : 6 // The week that contains Jan 1st is the first week of the year. | ||
3586 | 103 | } | ||
3587 | 104 | }); | ||
3588 | 105 | })); | ||
3589 | 0 | 106 | ||
3590 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hr.js' | |||
3591 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hr.js 1970-01-01 00:00:00 +0000 | |||
3592 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hr.js 2014-02-14 15:04:13 +0000 | |||
3593 | @@ -0,0 +1,140 @@ | |||
3594 | 1 | // moment.js language configuration | ||
3595 | 2 | // language : hrvatski (hr) | ||
3596 | 3 | // author : Bojan Marković : https://github.com/bmarkovic | ||
3597 | 4 | |||
3598 | 5 | // based on (sl) translation by Robert Sedovšek | ||
3599 | 6 | |||
3600 | 7 | (function (factory) { | ||
3601 | 8 | if (typeof define === 'function' && define.amd) { | ||
3602 | 9 | define(['moment'], factory); // AMD | ||
3603 | 10 | } else if (typeof exports === 'object') { | ||
3604 | 11 | module.exports = factory(require('../moment')); // Node | ||
3605 | 12 | } else { | ||
3606 | 13 | factory(window.moment); // Browser global | ||
3607 | 14 | } | ||
3608 | 15 | }(function (moment) { | ||
3609 | 16 | |||
3610 | 17 | function translate(number, withoutSuffix, key) { | ||
3611 | 18 | var result = number + " "; | ||
3612 | 19 | switch (key) { | ||
3613 | 20 | case 'm': | ||
3614 | 21 | return withoutSuffix ? 'jedna minuta' : 'jedne minute'; | ||
3615 | 22 | case 'mm': | ||
3616 | 23 | if (number === 1) { | ||
3617 | 24 | result += 'minuta'; | ||
3618 | 25 | } else if (number === 2 || number === 3 || number === 4) { | ||
3619 | 26 | result += 'minute'; | ||
3620 | 27 | } else { | ||
3621 | 28 | result += 'minuta'; | ||
3622 | 29 | } | ||
3623 | 30 | return result; | ||
3624 | 31 | case 'h': | ||
3625 | 32 | return withoutSuffix ? 'jedan sat' : 'jednog sata'; | ||
3626 | 33 | case 'hh': | ||
3627 | 34 | if (number === 1) { | ||
3628 | 35 | result += 'sat'; | ||
3629 | 36 | } else if (number === 2 || number === 3 || number === 4) { | ||
3630 | 37 | result += 'sata'; | ||
3631 | 38 | } else { | ||
3632 | 39 | result += 'sati'; | ||
3633 | 40 | } | ||
3634 | 41 | return result; | ||
3635 | 42 | case 'dd': | ||
3636 | 43 | if (number === 1) { | ||
3637 | 44 | result += 'dan'; | ||
3638 | 45 | } else { | ||
3639 | 46 | result += 'dana'; | ||
3640 | 47 | } | ||
3641 | 48 | return result; | ||
3642 | 49 | case 'MM': | ||
3643 | 50 | if (number === 1) { | ||
3644 | 51 | result += 'mjesec'; | ||
3645 | 52 | } else if (number === 2 || number === 3 || number === 4) { | ||
3646 | 53 | result += 'mjeseca'; | ||
3647 | 54 | } else { | ||
3648 | 55 | result += 'mjeseci'; | ||
3649 | 56 | } | ||
3650 | 57 | return result; | ||
3651 | 58 | case 'yy': | ||
3652 | 59 | if (number === 1) { | ||
3653 | 60 | result += 'godina'; | ||
3654 | 61 | } else if (number === 2 || number === 3 || number === 4) { | ||
3655 | 62 | result += 'godine'; | ||
3656 | 63 | } else { | ||
3657 | 64 | result += 'godina'; | ||
3658 | 65 | } | ||
3659 | 66 | return result; | ||
3660 | 67 | } | ||
3661 | 68 | } | ||
3662 | 69 | |||
3663 | 70 | return moment.lang('hr', { | ||
3664 | 71 | months : "sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"), | ||
3665 | 72 | monthsShort : "sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"), | ||
3666 | 73 | weekdays : "nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"), | ||
3667 | 74 | weekdaysShort : "ned._pon._uto._sri._čet._pet._sub.".split("_"), | ||
3668 | 75 | weekdaysMin : "ne_po_ut_sr_če_pe_su".split("_"), | ||
3669 | 76 | longDateFormat : { | ||
3670 | 77 | LT : "H:mm", | ||
3671 | 78 | L : "DD. MM. YYYY", | ||
3672 | 79 | LL : "D. MMMM YYYY", | ||
3673 | 80 | LLL : "D. MMMM YYYY LT", | ||
3674 | 81 | LLLL : "dddd, D. MMMM YYYY LT" | ||
3675 | 82 | }, | ||
3676 | 83 | calendar : { | ||
3677 | 84 | sameDay : '[danas u] LT', | ||
3678 | 85 | nextDay : '[sutra u] LT', | ||
3679 | 86 | |||
3680 | 87 | nextWeek : function () { | ||
3681 | 88 | switch (this.day()) { | ||
3682 | 89 | case 0: | ||
3683 | 90 | return '[u] [nedjelju] [u] LT'; | ||
3684 | 91 | case 3: | ||
3685 | 92 | return '[u] [srijedu] [u] LT'; | ||
3686 | 93 | case 6: | ||
3687 | 94 | return '[u] [subotu] [u] LT'; | ||
3688 | 95 | case 1: | ||
3689 | 96 | case 2: | ||
3690 | 97 | case 4: | ||
3691 | 98 | case 5: | ||
3692 | 99 | return '[u] dddd [u] LT'; | ||
3693 | 100 | } | ||
3694 | 101 | }, | ||
3695 | 102 | lastDay : '[jučer u] LT', | ||
3696 | 103 | lastWeek : function () { | ||
3697 | 104 | switch (this.day()) { | ||
3698 | 105 | case 0: | ||
3699 | 106 | case 3: | ||
3700 | 107 | return '[prošlu] dddd [u] LT'; | ||
3701 | 108 | case 6: | ||
3702 | 109 | return '[prošle] [subote] [u] LT'; | ||
3703 | 110 | case 1: | ||
3704 | 111 | case 2: | ||
3705 | 112 | case 4: | ||
3706 | 113 | case 5: | ||
3707 | 114 | return '[prošli] dddd [u] LT'; | ||
3708 | 115 | } | ||
3709 | 116 | }, | ||
3710 | 117 | sameElse : 'L' | ||
3711 | 118 | }, | ||
3712 | 119 | relativeTime : { | ||
3713 | 120 | future : "za %s", | ||
3714 | 121 | past : "prije %s", | ||
3715 | 122 | s : "par sekundi", | ||
3716 | 123 | m : translate, | ||
3717 | 124 | mm : translate, | ||
3718 | 125 | h : translate, | ||
3719 | 126 | hh : translate, | ||
3720 | 127 | d : "dan", | ||
3721 | 128 | dd : translate, | ||
3722 | 129 | M : "mjesec", | ||
3723 | 130 | MM : translate, | ||
3724 | 131 | y : "godinu", | ||
3725 | 132 | yy : translate | ||
3726 | 133 | }, | ||
3727 | 134 | ordinal : '%d.', | ||
3728 | 135 | week : { | ||
3729 | 136 | dow : 1, // Monday is the first day of the week. | ||
3730 | 137 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
3731 | 138 | } | ||
3732 | 139 | }); | ||
3733 | 140 | })); | ||
3734 | 0 | 141 | ||
3735 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hu.js' | |||
3736 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hu.js 1970-01-01 00:00:00 +0000 | |||
3737 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.hu.js 2014-02-14 15:04:13 +0000 | |||
3738 | @@ -0,0 +1,98 @@ | |||
3739 | 1 | // moment.js language configuration | ||
3740 | 2 | // language : hungarian (hu) | ||
3741 | 3 | // author : Adam Brunner : https://github.com/adambrunner | ||
3742 | 4 | |||
3743 | 5 | (function (factory) { | ||
3744 | 6 | if (typeof define === 'function' && define.amd) { | ||
3745 | 7 | define(['moment'], factory); // AMD | ||
3746 | 8 | } else if (typeof exports === 'object') { | ||
3747 | 9 | module.exports = factory(require('../moment')); // Node | ||
3748 | 10 | } else { | ||
3749 | 11 | factory(window.moment); // Browser global | ||
3750 | 12 | } | ||
3751 | 13 | }(function (moment) { | ||
3752 | 14 | var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' '); | ||
3753 | 15 | |||
3754 | 16 | function translate(number, withoutSuffix, key, isFuture) { | ||
3755 | 17 | var num = number, | ||
3756 | 18 | suffix; | ||
3757 | 19 | |||
3758 | 20 | switch (key) { | ||
3759 | 21 | case 's': | ||
3760 | 22 | return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; | ||
3761 | 23 | case 'm': | ||
3762 | 24 | return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); | ||
3763 | 25 | case 'mm': | ||
3764 | 26 | return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); | ||
3765 | 27 | case 'h': | ||
3766 | 28 | return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); | ||
3767 | 29 | case 'hh': | ||
3768 | 30 | return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); | ||
3769 | 31 | case 'd': | ||
3770 | 32 | return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); | ||
3771 | 33 | case 'dd': | ||
3772 | 34 | return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); | ||
3773 | 35 | case 'M': | ||
3774 | 36 | return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); | ||
3775 | 37 | case 'MM': | ||
3776 | 38 | return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); | ||
3777 | 39 | case 'y': | ||
3778 | 40 | return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); | ||
3779 | 41 | case 'yy': | ||
3780 | 42 | return num + (isFuture || withoutSuffix ? ' év' : ' éve'); | ||
3781 | 43 | } | ||
3782 | 44 | |||
3783 | 45 | return ''; | ||
3784 | 46 | } | ||
3785 | 47 | |||
3786 | 48 | function week(isFuture) { | ||
3787 | 49 | return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]'; | ||
3788 | 50 | } | ||
3789 | 51 | |||
3790 | 52 | return moment.lang('hu', { | ||
3791 | 53 | months : "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"), | ||
3792 | 54 | monthsShort : "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"), | ||
3793 | 55 | weekdays : "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"), | ||
3794 | 56 | weekdaysShort : "vas_hét_kedd_sze_csüt_pén_szo".split("_"), | ||
3795 | 57 | weekdaysMin : "v_h_k_sze_cs_p_szo".split("_"), | ||
3796 | 58 | longDateFormat : { | ||
3797 | 59 | LT : "H:mm", | ||
3798 | 60 | L : "YYYY.MM.DD.", | ||
3799 | 61 | LL : "YYYY. MMMM D.", | ||
3800 | 62 | LLL : "YYYY. MMMM D., LT", | ||
3801 | 63 | LLLL : "YYYY. MMMM D., dddd LT" | ||
3802 | 64 | }, | ||
3803 | 65 | calendar : { | ||
3804 | 66 | sameDay : '[ma] LT[-kor]', | ||
3805 | 67 | nextDay : '[holnap] LT[-kor]', | ||
3806 | 68 | nextWeek : function () { | ||
3807 | 69 | return week.call(this, true); | ||
3808 | 70 | }, | ||
3809 | 71 | lastDay : '[tegnap] LT[-kor]', | ||
3810 | 72 | lastWeek : function () { | ||
3811 | 73 | return week.call(this, false); | ||
3812 | 74 | }, | ||
3813 | 75 | sameElse : 'L' | ||
3814 | 76 | }, | ||
3815 | 77 | relativeTime : { | ||
3816 | 78 | future : "%s múlva", | ||
3817 | 79 | past : "%s", | ||
3818 | 80 | s : translate, | ||
3819 | 81 | m : translate, | ||
3820 | 82 | mm : translate, | ||
3821 | 83 | h : translate, | ||
3822 | 84 | hh : translate, | ||
3823 | 85 | d : translate, | ||
3824 | 86 | dd : translate, | ||
3825 | 87 | M : translate, | ||
3826 | 88 | MM : translate, | ||
3827 | 89 | y : translate, | ||
3828 | 90 | yy : translate | ||
3829 | 91 | }, | ||
3830 | 92 | ordinal : '%d.', | ||
3831 | 93 | week : { | ||
3832 | 94 | dow : 1, // Monday is the first day of the week. | ||
3833 | 95 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
3834 | 96 | } | ||
3835 | 97 | }); | ||
3836 | 98 | })); | ||
3837 | 0 | 99 | ||
3838 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.id.js' | |||
3839 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.id.js 1970-01-01 00:00:00 +0000 | |||
3840 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.id.js 2014-02-14 15:04:13 +0000 | |||
3841 | @@ -0,0 +1,67 @@ | |||
3842 | 1 | // moment.js language configuration | ||
3843 | 2 | // language : Bahasa Indonesia (id) | ||
3844 | 3 | // author : Mohammad Satrio Utomo : https://github.com/tyok | ||
3845 | 4 | // reference: http://id.wikisource.org/wiki/Pedoman_Umum_Ejaan_Bahasa_Indonesia_yang_Disempurnakan | ||
3846 | 5 | |||
3847 | 6 | (function (factory) { | ||
3848 | 7 | if (typeof define === 'function' && define.amd) { | ||
3849 | 8 | define(['moment'], factory); // AMD | ||
3850 | 9 | } else if (typeof exports === 'object') { | ||
3851 | 10 | module.exports = factory(require('../moment')); // Node | ||
3852 | 11 | } else { | ||
3853 | 12 | factory(window.moment); // Browser global | ||
3854 | 13 | } | ||
3855 | 14 | }(function (moment) { | ||
3856 | 15 | return moment.lang('id', { | ||
3857 | 16 | months : "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"), | ||
3858 | 17 | monthsShort : "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"), | ||
3859 | 18 | weekdays : "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"), | ||
3860 | 19 | weekdaysShort : "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"), | ||
3861 | 20 | weekdaysMin : "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"), | ||
3862 | 21 | longDateFormat : { | ||
3863 | 22 | LT : "HH.mm", | ||
3864 | 23 | L : "DD/MM/YYYY", | ||
3865 | 24 | LL : "D MMMM YYYY", | ||
3866 | 25 | LLL : "D MMMM YYYY [pukul] LT", | ||
3867 | 26 | LLLL : "dddd, D MMMM YYYY [pukul] LT" | ||
3868 | 27 | }, | ||
3869 | 28 | meridiem : function (hours, minutes, isLower) { | ||
3870 | 29 | if (hours < 11) { | ||
3871 | 30 | return 'pagi'; | ||
3872 | 31 | } else if (hours < 15) { | ||
3873 | 32 | return 'siang'; | ||
3874 | 33 | } else if (hours < 19) { | ||
3875 | 34 | return 'sore'; | ||
3876 | 35 | } else { | ||
3877 | 36 | return 'malam'; | ||
3878 | 37 | } | ||
3879 | 38 | }, | ||
3880 | 39 | calendar : { | ||
3881 | 40 | sameDay : '[Hari ini pukul] LT', | ||
3882 | 41 | nextDay : '[Besok pukul] LT', | ||
3883 | 42 | nextWeek : 'dddd [pukul] LT', | ||
3884 | 43 | lastDay : '[Kemarin pukul] LT', | ||
3885 | 44 | lastWeek : 'dddd [lalu pukul] LT', | ||
3886 | 45 | sameElse : 'L' | ||
3887 | 46 | }, | ||
3888 | 47 | relativeTime : { | ||
3889 | 48 | future : "dalam %s", | ||
3890 | 49 | past : "%s yang lalu", | ||
3891 | 50 | s : "beberapa detik", | ||
3892 | 51 | m : "semenit", | ||
3893 | 52 | mm : "%d menit", | ||
3894 | 53 | h : "sejam", | ||
3895 | 54 | hh : "%d jam", | ||
3896 | 55 | d : "sehari", | ||
3897 | 56 | dd : "%d hari", | ||
3898 | 57 | M : "sebulan", | ||
3899 | 58 | MM : "%d bulan", | ||
3900 | 59 | y : "setahun", | ||
3901 | 60 | yy : "%d tahun" | ||
3902 | 61 | }, | ||
3903 | 62 | week : { | ||
3904 | 63 | dow : 1, // Monday is the first day of the week. | ||
3905 | 64 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
3906 | 65 | } | ||
3907 | 66 | }); | ||
3908 | 67 | })); | ||
3909 | 0 | 68 | ||
3910 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.is.js' | |||
3911 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.is.js 1970-01-01 00:00:00 +0000 | |||
3912 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.is.js 2014-02-14 15:04:13 +0000 | |||
3913 | @@ -0,0 +1,124 @@ | |||
3914 | 1 | // moment.js language configuration | ||
3915 | 2 | // language : icelandic (is) | ||
3916 | 3 | // author : Hinrik Örn Sigurðsson : https://github.com/hinrik | ||
3917 | 4 | |||
3918 | 5 | (function (factory) { | ||
3919 | 6 | if (typeof define === 'function' && define.amd) { | ||
3920 | 7 | define(['moment'], factory); // AMD | ||
3921 | 8 | } else if (typeof exports === 'object') { | ||
3922 | 9 | module.exports = factory(require('../moment')); // Node | ||
3923 | 10 | } else { | ||
3924 | 11 | factory(window.moment); // Browser global | ||
3925 | 12 | } | ||
3926 | 13 | }(function (moment) { | ||
3927 | 14 | function plural(n) { | ||
3928 | 15 | if (n % 100 === 11) { | ||
3929 | 16 | return true; | ||
3930 | 17 | } else if (n % 10 === 1) { | ||
3931 | 18 | return false; | ||
3932 | 19 | } | ||
3933 | 20 | return true; | ||
3934 | 21 | } | ||
3935 | 22 | |||
3936 | 23 | function translate(number, withoutSuffix, key, isFuture) { | ||
3937 | 24 | var result = number + " "; | ||
3938 | 25 | switch (key) { | ||
3939 | 26 | case 's': | ||
3940 | 27 | return withoutSuffix || isFuture ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; | ||
3941 | 28 | case 'm': | ||
3942 | 29 | return withoutSuffix ? 'mínúta' : 'mínútu'; | ||
3943 | 30 | case 'mm': | ||
3944 | 31 | if (plural(number)) { | ||
3945 | 32 | return result + (withoutSuffix || isFuture ? 'mínútur' : 'mínútum'); | ||
3946 | 33 | } else if (withoutSuffix) { | ||
3947 | 34 | return result + 'mínúta'; | ||
3948 | 35 | } | ||
3949 | 36 | return result + 'mínútu'; | ||
3950 | 37 | case 'hh': | ||
3951 | 38 | if (plural(number)) { | ||
3952 | 39 | return result + (withoutSuffix || isFuture ? 'klukkustundir' : 'klukkustundum'); | ||
3953 | 40 | } | ||
3954 | 41 | return result + 'klukkustund'; | ||
3955 | 42 | case 'd': | ||
3956 | 43 | if (withoutSuffix) { | ||
3957 | 44 | return 'dagur'; | ||
3958 | 45 | } | ||
3959 | 46 | return isFuture ? 'dag' : 'degi'; | ||
3960 | 47 | case 'dd': | ||
3961 | 48 | if (plural(number)) { | ||
3962 | 49 | if (withoutSuffix) { | ||
3963 | 50 | return result + 'dagar'; | ||
3964 | 51 | } | ||
3965 | 52 | return result + (isFuture ? 'daga' : 'dögum'); | ||
3966 | 53 | } else if (withoutSuffix) { | ||
3967 | 54 | return result + 'dagur'; | ||
3968 | 55 | } | ||
3969 | 56 | return result + (isFuture ? 'dag' : 'degi'); | ||
3970 | 57 | case 'M': | ||
3971 | 58 | if (withoutSuffix) { | ||
3972 | 59 | return 'mánuður'; | ||
3973 | 60 | } | ||
3974 | 61 | return isFuture ? 'mánuð' : 'mánuði'; | ||
3975 | 62 | case 'MM': | ||
3976 | 63 | if (plural(number)) { | ||
3977 | 64 | if (withoutSuffix) { | ||
3978 | 65 | return result + 'mánuðir'; | ||
3979 | 66 | } | ||
3980 | 67 | return result + (isFuture ? 'mánuði' : 'mánuðum'); | ||
3981 | 68 | } else if (withoutSuffix) { | ||
3982 | 69 | return result + 'mánuður'; | ||
3983 | 70 | } | ||
3984 | 71 | return result + (isFuture ? 'mánuð' : 'mánuði'); | ||
3985 | 72 | case 'y': | ||
3986 | 73 | return withoutSuffix || isFuture ? 'ár' : 'ári'; | ||
3987 | 74 | case 'yy': | ||
3988 | 75 | if (plural(number)) { | ||
3989 | 76 | return result + (withoutSuffix || isFuture ? 'ár' : 'árum'); | ||
3990 | 77 | } | ||
3991 | 78 | return result + (withoutSuffix || isFuture ? 'ár' : 'ári'); | ||
3992 | 79 | } | ||
3993 | 80 | } | ||
3994 | 81 | |||
3995 | 82 | return moment.lang('is', { | ||
3996 | 83 | months : "janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"), | ||
3997 | 84 | monthsShort : "jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"), | ||
3998 | 85 | weekdays : "sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"), | ||
3999 | 86 | weekdaysShort : "sun_mán_þri_mið_fim_fös_lau".split("_"), | ||
4000 | 87 | weekdaysMin : "Su_Má_Þr_Mi_Fi_Fö_La".split("_"), | ||
4001 | 88 | longDateFormat : { | ||
4002 | 89 | LT : "H:mm", | ||
4003 | 90 | L : "DD/MM/YYYY", | ||
4004 | 91 | LL : "D. MMMM YYYY", | ||
4005 | 92 | LLL : "D. MMMM YYYY [kl.] LT", | ||
4006 | 93 | LLLL : "dddd, D. MMMM YYYY [kl.] LT" | ||
4007 | 94 | }, | ||
4008 | 95 | calendar : { | ||
4009 | 96 | sameDay : '[í dag kl.] LT', | ||
4010 | 97 | nextDay : '[á morgun kl.] LT', | ||
4011 | 98 | nextWeek : 'dddd [kl.] LT', | ||
4012 | 99 | lastDay : '[í gær kl.] LT', | ||
4013 | 100 | lastWeek : '[síðasta] dddd [kl.] LT', | ||
4014 | 101 | sameElse : 'L' | ||
4015 | 102 | }, | ||
4016 | 103 | relativeTime : { | ||
4017 | 104 | future : "eftir %s", | ||
4018 | 105 | past : "fyrir %s síðan", | ||
4019 | 106 | s : translate, | ||
4020 | 107 | m : translate, | ||
4021 | 108 | mm : translate, | ||
4022 | 109 | h : "klukkustund", | ||
4023 | 110 | hh : translate, | ||
4024 | 111 | d : translate, | ||
4025 | 112 | dd : translate, | ||
4026 | 113 | M : translate, | ||
4027 | 114 | MM : translate, | ||
4028 | 115 | y : translate, | ||
4029 | 116 | yy : translate | ||
4030 | 117 | }, | ||
4031 | 118 | ordinal : '%d.', | ||
4032 | 119 | week : { | ||
4033 | 120 | dow : 1, // Monday is the first day of the week. | ||
4034 | 121 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
4035 | 122 | } | ||
4036 | 123 | }); | ||
4037 | 124 | })); | ||
4038 | 0 | 125 | ||
4039 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.it.js' | |||
4040 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.it.js 1970-01-01 00:00:00 +0000 | |||
4041 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.it.js 2014-02-14 15:04:13 +0000 | |||
4042 | @@ -0,0 +1,59 @@ | |||
4043 | 1 | // moment.js language configuration | ||
4044 | 2 | // language : italian (it) | ||
4045 | 3 | // author : Lorenzo : https://github.com/aliem | ||
4046 | 4 | // author: Mattia Larentis: https://github.com/nostalgiaz | ||
4047 | 5 | |||
4048 | 6 | (function (factory) { | ||
4049 | 7 | if (typeof define === 'function' && define.amd) { | ||
4050 | 8 | define(['moment'], factory); // AMD | ||
4051 | 9 | } else if (typeof exports === 'object') { | ||
4052 | 10 | module.exports = factory(require('../moment')); // Node | ||
4053 | 11 | } else { | ||
4054 | 12 | factory(window.moment); // Browser global | ||
4055 | 13 | } | ||
4056 | 14 | }(function (moment) { | ||
4057 | 15 | return moment.lang('it', { | ||
4058 | 16 | months : "Gennaio_Febbraio_Marzo_Aprile_Maggio_Giugno_Luglio_Agosto_Settembre_Ottobre_Novembre_Dicembre".split("_"), | ||
4059 | 17 | monthsShort : "Gen_Feb_Mar_Apr_Mag_Giu_Lug_Ago_Set_Ott_Nov_Dic".split("_"), | ||
4060 | 18 | weekdays : "Domenica_Lunedì_Martedì_Mercoledì_Giovedì_Venerdì_Sabato".split("_"), | ||
4061 | 19 | weekdaysShort : "Dom_Lun_Mar_Mer_Gio_Ven_Sab".split("_"), | ||
4062 | 20 | weekdaysMin : "D_L_Ma_Me_G_V_S".split("_"), | ||
4063 | 21 | longDateFormat : { | ||
4064 | 22 | LT : "HH:mm", | ||
4065 | 23 | L : "DD/MM/YYYY", | ||
4066 | 24 | LL : "D MMMM YYYY", | ||
4067 | 25 | LLL : "D MMMM YYYY LT", | ||
4068 | 26 | LLLL : "dddd, D MMMM YYYY LT" | ||
4069 | 27 | }, | ||
4070 | 28 | calendar : { | ||
4071 | 29 | sameDay: '[Oggi alle] LT', | ||
4072 | 30 | nextDay: '[Domani alle] LT', | ||
4073 | 31 | nextWeek: 'dddd [alle] LT', | ||
4074 | 32 | lastDay: '[Ieri alle] LT', | ||
4075 | 33 | lastWeek: '[lo scorso] dddd [alle] LT', | ||
4076 | 34 | sameElse: 'L' | ||
4077 | 35 | }, | ||
4078 | 36 | relativeTime : { | ||
4079 | 37 | future : function (s) { | ||
4080 | 38 | return ((/^[0-9].+$/).test(s) ? "tra" : "in") + " " + s; | ||
4081 | 39 | }, | ||
4082 | 40 | past : "%s fa", | ||
4083 | 41 | s : "secondi", | ||
4084 | 42 | m : "un minuto", | ||
4085 | 43 | mm : "%d minuti", | ||
4086 | 44 | h : "un'ora", | ||
4087 | 45 | hh : "%d ore", | ||
4088 | 46 | d : "un giorno", | ||
4089 | 47 | dd : "%d giorni", | ||
4090 | 48 | M : "un mese", | ||
4091 | 49 | MM : "%d mesi", | ||
4092 | 50 | y : "un anno", | ||
4093 | 51 | yy : "%d anni" | ||
4094 | 52 | }, | ||
4095 | 53 | ordinal: '%dº', | ||
4096 | 54 | week : { | ||
4097 | 55 | dow : 1, // Monday is the first day of the week. | ||
4098 | 56 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
4099 | 57 | } | ||
4100 | 58 | }); | ||
4101 | 59 | })); | ||
4102 | 0 | 60 | ||
4103 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ja.js' | |||
4104 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ja.js 1970-01-01 00:00:00 +0000 | |||
4105 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ja.js 2014-02-14 15:04:13 +0000 | |||
4106 | @@ -0,0 +1,58 @@ | |||
4107 | 1 | // moment.js language configuration | ||
4108 | 2 | // language : japanese (ja) | ||
4109 | 3 | // author : LI Long : https://github.com/baryon | ||
4110 | 4 | |||
4111 | 5 | (function (factory) { | ||
4112 | 6 | if (typeof define === 'function' && define.amd) { | ||
4113 | 7 | define(['moment'], factory); // AMD | ||
4114 | 8 | } else if (typeof exports === 'object') { | ||
4115 | 9 | module.exports = factory(require('../moment')); // Node | ||
4116 | 10 | } else { | ||
4117 | 11 | factory(window.moment); // Browser global | ||
4118 | 12 | } | ||
4119 | 13 | }(function (moment) { | ||
4120 | 14 | return moment.lang('ja', { | ||
4121 | 15 | months : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), | ||
4122 | 16 | monthsShort : "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), | ||
4123 | 17 | weekdays : "日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"), | ||
4124 | 18 | weekdaysShort : "日_月_火_水_木_金_土".split("_"), | ||
4125 | 19 | weekdaysMin : "日_月_火_水_木_金_土".split("_"), | ||
4126 | 20 | longDateFormat : { | ||
4127 | 21 | LT : "Ah時m分", | ||
4128 | 22 | L : "YYYY/MM/DD", | ||
4129 | 23 | LL : "YYYY年M月D日", | ||
4130 | 24 | LLL : "YYYY年M月D日LT", | ||
4131 | 25 | LLLL : "YYYY年M月D日LT dddd" | ||
4132 | 26 | }, | ||
4133 | 27 | meridiem : function (hour, minute, isLower) { | ||
4134 | 28 | if (hour < 12) { | ||
4135 | 29 | return "午前"; | ||
4136 | 30 | } else { | ||
4137 | 31 | return "午後"; | ||
4138 | 32 | } | ||
4139 | 33 | }, | ||
4140 | 34 | calendar : { | ||
4141 | 35 | sameDay : '[今日] LT', | ||
4142 | 36 | nextDay : '[明日] LT', | ||
4143 | 37 | nextWeek : '[来週]dddd LT', | ||
4144 | 38 | lastDay : '[昨日] LT', | ||
4145 | 39 | lastWeek : '[前週]dddd LT', | ||
4146 | 40 | sameElse : 'L' | ||
4147 | 41 | }, | ||
4148 | 42 | relativeTime : { | ||
4149 | 43 | future : "%s後", | ||
4150 | 44 | past : "%s前", | ||
4151 | 45 | s : "数秒", | ||
4152 | 46 | m : "1分", | ||
4153 | 47 | mm : "%d分", | ||
4154 | 48 | h : "1時間", | ||
4155 | 49 | hh : "%d時間", | ||
4156 | 50 | d : "1日", | ||
4157 | 51 | dd : "%d日", | ||
4158 | 52 | M : "1ヶ月", | ||
4159 | 53 | MM : "%dヶ月", | ||
4160 | 54 | y : "1年", | ||
4161 | 55 | yy : "%d年" | ||
4162 | 56 | } | ||
4163 | 57 | }); | ||
4164 | 58 | })); | ||
4165 | 0 | 59 | ||
4166 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ka.js' | |||
4167 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ka.js 1970-01-01 00:00:00 +0000 | |||
4168 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ka.js 2014-02-14 15:04:13 +0000 | |||
4169 | @@ -0,0 +1,108 @@ | |||
4170 | 1 | // moment.js language configuration | ||
4171 | 2 | // language : Georgian (ka) | ||
4172 | 3 | // author : Irakli Janiashvili : https://github.com/irakli-janiashvili | ||
4173 | 4 | |||
4174 | 5 | (function (factory) { | ||
4175 | 6 | if (typeof define === 'function' && define.amd) { | ||
4176 | 7 | define(['moment'], factory); // AMD | ||
4177 | 8 | } else if (typeof exports === 'object') { | ||
4178 | 9 | module.exports = factory(require('../moment')); // Node | ||
4179 | 10 | } else { | ||
4180 | 11 | factory(window.moment); // Browser global | ||
4181 | 12 | } | ||
4182 | 13 | }(function (moment) { | ||
4183 | 14 | |||
4184 | 15 | function monthsCaseReplace(m, format) { | ||
4185 | 16 | var months = { | ||
4186 | 17 | 'nominative': 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split('_'), | ||
4187 | 18 | 'accusative': 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split('_') | ||
4188 | 19 | }, | ||
4189 | 20 | |||
4190 | 21 | nounCase = (/D[oD] *MMMM?/).test(format) ? | ||
4191 | 22 | 'accusative' : | ||
4192 | 23 | 'nominative'; | ||
4193 | 24 | |||
4194 | 25 | return months[nounCase][m.month()]; | ||
4195 | 26 | } | ||
4196 | 27 | |||
4197 | 28 | function weekdaysCaseReplace(m, format) { | ||
4198 | 29 | var weekdays = { | ||
4199 | 30 | 'nominative': 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split('_'), | ||
4200 | 31 | 'accusative': 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split('_') | ||
4201 | 32 | }, | ||
4202 | 33 | |||
4203 | 34 | nounCase = (/(წინა|შემდეგ)/).test(format) ? | ||
4204 | 35 | 'accusative' : | ||
4205 | 36 | 'nominative'; | ||
4206 | 37 | |||
4207 | 38 | return weekdays[nounCase][m.day()]; | ||
4208 | 39 | } | ||
4209 | 40 | |||
4210 | 41 | return moment.lang('ka', { | ||
4211 | 42 | months : monthsCaseReplace, | ||
4212 | 43 | monthsShort : "იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"), | ||
4213 | 44 | weekdays : weekdaysCaseReplace, | ||
4214 | 45 | weekdaysShort : "კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"), | ||
4215 | 46 | weekdaysMin : "კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"), | ||
4216 | 47 | longDateFormat : { | ||
4217 | 48 | LT : "h:mm A", | ||
4218 | 49 | L : "DD/MM/YYYY", | ||
4219 | 50 | LL : "D MMMM YYYY", | ||
4220 | 51 | LLL : "D MMMM YYYY LT", | ||
4221 | 52 | LLLL : "dddd, D MMMM YYYY LT" | ||
4222 | 53 | }, | ||
4223 | 54 | calendar : { | ||
4224 | 55 | sameDay : '[დღეს] LT[-ზე]', | ||
4225 | 56 | nextDay : '[ხვალ] LT[-ზე]', | ||
4226 | 57 | lastDay : '[გუშინ] LT[-ზე]', | ||
4227 | 58 | nextWeek : '[შემდეგ] dddd LT[-ზე]', | ||
4228 | 59 | lastWeek : '[წინა] dddd LT-ზე', | ||
4229 | 60 | sameElse : 'L' | ||
4230 | 61 | }, | ||
4231 | 62 | relativeTime : { | ||
4232 | 63 | future : function (s) { | ||
4233 | 64 | return (/(წამი|წუთი|საათი|წელი)/).test(s) ? | ||
4234 | 65 | s.replace(/ი$/, "ში") : | ||
4235 | 66 | s + "ში"; | ||
4236 | 67 | }, | ||
4237 | 68 | past : function (s) { | ||
4238 | 69 | if ((/(წამი|წუთი|საათი|დღე|თვე)/).test(s)) { | ||
4239 | 70 | return s.replace(/(ი|ე)$/, "ის წინ"); | ||
4240 | 71 | } | ||
4241 | 72 | if ((/წელი/).test(s)) { | ||
4242 | 73 | return s.replace(/წელი$/, "წლის წინ"); | ||
4243 | 74 | } | ||
4244 | 75 | }, | ||
4245 | 76 | s : "რამდენიმე წამი", | ||
4246 | 77 | m : "წუთი", | ||
4247 | 78 | mm : "%d წუთი", | ||
4248 | 79 | h : "საათი", | ||
4249 | 80 | hh : "%d საათი", | ||
4250 | 81 | d : "დღე", | ||
4251 | 82 | dd : "%d დღე", | ||
4252 | 83 | M : "თვე", | ||
4253 | 84 | MM : "%d თვე", | ||
4254 | 85 | y : "წელი", | ||
4255 | 86 | yy : "%d წელი" | ||
4256 | 87 | }, | ||
4257 | 88 | ordinal : function (number) { | ||
4258 | 89 | if (number === 0) { | ||
4259 | 90 | return number; | ||
4260 | 91 | } | ||
4261 | 92 | |||
4262 | 93 | if (number === 1) { | ||
4263 | 94 | return number + "-ლი"; | ||
4264 | 95 | } | ||
4265 | 96 | |||
4266 | 97 | if ((number < 20) || (number <= 100 && (number % 20 === 0)) || (number % 100 === 0)) { | ||
4267 | 98 | return "მე-" + number; | ||
4268 | 99 | } | ||
4269 | 100 | |||
4270 | 101 | return number + "-ე"; | ||
4271 | 102 | }, | ||
4272 | 103 | week : { | ||
4273 | 104 | dow : 1, | ||
4274 | 105 | doy : 7 | ||
4275 | 106 | } | ||
4276 | 107 | }); | ||
4277 | 108 | })); | ||
4278 | 0 | 109 | ||
4279 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ko.js' | |||
4280 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ko.js 1970-01-01 00:00:00 +0000 | |||
4281 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ko.js 2014-02-14 15:04:13 +0000 | |||
4282 | @@ -0,0 +1,56 @@ | |||
4283 | 1 | // moment.js language configuration | ||
4284 | 2 | // language : korean (ko) | ||
4285 | 3 | // author : Kyungwook, Park : https://github.com/kyungw00k | ||
4286 | 4 | |||
4287 | 5 | (function (factory) { | ||
4288 | 6 | if (typeof define === 'function' && define.amd) { | ||
4289 | 7 | define(['moment'], factory); // AMD | ||
4290 | 8 | } else if (typeof exports === 'object') { | ||
4291 | 9 | module.exports = factory(require('../moment')); // Node | ||
4292 | 10 | } else { | ||
4293 | 11 | factory(window.moment); // Browser global | ||
4294 | 12 | } | ||
4295 | 13 | }(function (moment) { | ||
4296 | 14 | return moment.lang('ko', { | ||
4297 | 15 | months : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"), | ||
4298 | 16 | monthsShort : "1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"), | ||
4299 | 17 | weekdays : "일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"), | ||
4300 | 18 | weekdaysShort : "일_월_화_수_목_금_토".split("_"), | ||
4301 | 19 | weekdaysMin : "일_월_화_수_목_금_토".split("_"), | ||
4302 | 20 | longDateFormat : { | ||
4303 | 21 | LT : "A h시 mm분", | ||
4304 | 22 | L : "YYYY.MM.DD", | ||
4305 | 23 | LL : "YYYY년 MMMM D일", | ||
4306 | 24 | LLL : "YYYY년 MMMM D일 LT", | ||
4307 | 25 | LLLL : "YYYY년 MMMM D일 dddd LT" | ||
4308 | 26 | }, | ||
4309 | 27 | meridiem : function (hour, minute, isUpper) { | ||
4310 | 28 | return hour < 12 ? '오전' : '오후'; | ||
4311 | 29 | }, | ||
4312 | 30 | calendar : { | ||
4313 | 31 | sameDay : '오늘 LT', | ||
4314 | 32 | nextDay : '내일 LT', | ||
4315 | 33 | nextWeek : 'dddd LT', | ||
4316 | 34 | lastDay : '어제 LT', | ||
4317 | 35 | lastWeek : '지난주 dddd LT', | ||
4318 | 36 | sameElse : 'L' | ||
4319 | 37 | }, | ||
4320 | 38 | relativeTime : { | ||
4321 | 39 | future : "%s 후", | ||
4322 | 40 | past : "%s 전", | ||
4323 | 41 | s : "몇초", | ||
4324 | 42 | ss : "%d초", | ||
4325 | 43 | m : "일분", | ||
4326 | 44 | mm : "%d분", | ||
4327 | 45 | h : "한시간", | ||
4328 | 46 | hh : "%d시간", | ||
4329 | 47 | d : "하루", | ||
4330 | 48 | dd : "%d일", | ||
4331 | 49 | M : "한달", | ||
4332 | 50 | MM : "%d달", | ||
4333 | 51 | y : "일년", | ||
4334 | 52 | yy : "%d년" | ||
4335 | 53 | }, | ||
4336 | 54 | ordinal : '%d일' | ||
4337 | 55 | }); | ||
4338 | 56 | })); | ||
4339 | 0 | 57 | ||
4340 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.lt.js' | |||
4341 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.lt.js 1970-01-01 00:00:00 +0000 | |||
4342 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.lt.js 2014-02-14 15:04:13 +0000 | |||
4343 | @@ -0,0 +1,118 @@ | |||
4344 | 1 | // moment.js language configuration | ||
4345 | 2 | // language : Lithuanian (lt) | ||
4346 | 3 | // author : Mindaugas Mozūras : https://github.com/mmozuras | ||
4347 | 4 | |||
4348 | 5 | (function (factory) { | ||
4349 | 6 | if (typeof define === 'function' && define.amd) { | ||
4350 | 7 | define(['moment'], factory); // AMD | ||
4351 | 8 | } else if (typeof exports === 'object') { | ||
4352 | 9 | module.exports = factory(require('../moment')); // Node | ||
4353 | 10 | } else { | ||
4354 | 11 | factory(window.moment); // Browser global | ||
4355 | 12 | } | ||
4356 | 13 | }(function (moment) { | ||
4357 | 14 | var units = { | ||
4358 | 15 | "m" : "minutė_minutės_minutę", | ||
4359 | 16 | "mm": "minutės_minučių_minutes", | ||
4360 | 17 | "h" : "valanda_valandos_valandą", | ||
4361 | 18 | "hh": "valandos_valandų_valandas", | ||
4362 | 19 | "d" : "diena_dienos_dieną", | ||
4363 | 20 | "dd": "dienos_dienų_dienas", | ||
4364 | 21 | "M" : "mėnuo_mėnesio_mėnesį", | ||
4365 | 22 | "MM": "mėnesiai_mėnesių_mėnesius", | ||
4366 | 23 | "y" : "metai_metų_metus", | ||
4367 | 24 | "yy": "metai_metų_metus" | ||
4368 | 25 | }, | ||
4369 | 26 | weekDays = "pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis_sekmadienis".split("_"); | ||
4370 | 27 | |||
4371 | 28 | function translateSeconds(number, withoutSuffix, key, isFuture) { | ||
4372 | 29 | if (withoutSuffix) { | ||
4373 | 30 | return "kelios sekundės"; | ||
4374 | 31 | } else { | ||
4375 | 32 | return isFuture ? "kelių sekundžių" : "kelias sekundes"; | ||
4376 | 33 | } | ||
4377 | 34 | } | ||
4378 | 35 | |||
4379 | 36 | function translateSingular(number, withoutSuffix, key, isFuture) { | ||
4380 | 37 | return withoutSuffix ? forms(key)[0] : (isFuture ? forms(key)[1] : forms(key)[2]); | ||
4381 | 38 | } | ||
4382 | 39 | |||
4383 | 40 | function special(number) { | ||
4384 | 41 | return number % 10 === 0 || (number > 10 && number < 20); | ||
4385 | 42 | } | ||
4386 | 43 | |||
4387 | 44 | function forms(key) { | ||
4388 | 45 | return units[key].split("_"); | ||
4389 | 46 | } | ||
4390 | 47 | |||
4391 | 48 | function translate(number, withoutSuffix, key, isFuture) { | ||
4392 | 49 | var result = number + " "; | ||
4393 | 50 | if (number === 1) { | ||
4394 | 51 | return result + translateSingular(number, withoutSuffix, key[0], isFuture); | ||
4395 | 52 | } else if (withoutSuffix) { | ||
4396 | 53 | return result + (special(number) ? forms(key)[1] : forms(key)[0]); | ||
4397 | 54 | } else { | ||
4398 | 55 | if (isFuture) { | ||
4399 | 56 | return result + forms(key)[1]; | ||
4400 | 57 | } else { | ||
4401 | 58 | return result + (special(number) ? forms(key)[1] : forms(key)[2]); | ||
4402 | 59 | } | ||
4403 | 60 | } | ||
4404 | 61 | } | ||
4405 | 62 | |||
4406 | 63 | function relativeWeekDay(moment, format) { | ||
4407 | 64 | var nominative = format.indexOf('dddd LT') === -1, | ||
4408 | 65 | weekDay = weekDays[moment.weekday()]; | ||
4409 | 66 | |||
4410 | 67 | return nominative ? weekDay : weekDay.substring(0, weekDay.length - 2) + "į"; | ||
4411 | 68 | } | ||
4412 | 69 | |||
4413 | 70 | return moment.lang("lt", { | ||
4414 | 71 | months : "sausio_vasario_kovo_balandžio_gegužės_biržėlio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"), | ||
4415 | 72 | monthsShort : "sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"), | ||
4416 | 73 | weekdays : relativeWeekDay, | ||
4417 | 74 | weekdaysShort : "Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"), | ||
4418 | 75 | weekdaysMin : "S_P_A_T_K_Pn_Š".split("_"), | ||
4419 | 76 | longDateFormat : { | ||
4420 | 77 | LT : "HH:mm", | ||
4421 | 78 | L : "YYYY-MM-DD", | ||
4422 | 79 | LL : "YYYY [m.] MMMM D [d.]", | ||
4423 | 80 | LLL : "YYYY [m.] MMMM D [d.], LT [val.]", | ||
4424 | 81 | LLLL : "YYYY [m.] MMMM D [d.], dddd, LT [val.]", | ||
4425 | 82 | l : "YYYY-MM-DD", | ||
4426 | 83 | ll : "YYYY [m.] MMMM D [d.]", | ||
4427 | 84 | lll : "YYYY [m.] MMMM D [d.], LT [val.]", | ||
4428 | 85 | llll : "YYYY [m.] MMMM D [d.], ddd, LT [val.]" | ||
4429 | 86 | }, | ||
4430 | 87 | calendar : { | ||
4431 | 88 | sameDay : "[Šiandien] LT", | ||
4432 | 89 | nextDay : "[Rytoj] LT", | ||
4433 | 90 | nextWeek : "dddd LT", | ||
4434 | 91 | lastDay : "[Vakar] LT", | ||
4435 | 92 | lastWeek : "[Praėjusį] dddd LT", | ||
4436 | 93 | sameElse : "L" | ||
4437 | 94 | }, | ||
4438 | 95 | relativeTime : { | ||
4439 | 96 | future : "po %s", | ||
4440 | 97 | past : "prieš %s", | ||
4441 | 98 | s : translateSeconds, | ||
4442 | 99 | m : translateSingular, | ||
4443 | 100 | mm : translate, | ||
4444 | 101 | h : translateSingular, | ||
4445 | 102 | hh : translate, | ||
4446 | 103 | d : translateSingular, | ||
4447 | 104 | dd : translate, | ||
4448 | 105 | M : translateSingular, | ||
4449 | 106 | MM : translate, | ||
4450 | 107 | y : translateSingular, | ||
4451 | 108 | yy : translate | ||
4452 | 109 | }, | ||
4453 | 110 | ordinal : function (number) { | ||
4454 | 111 | return number + '-oji'; | ||
4455 | 112 | }, | ||
4456 | 113 | week : { | ||
4457 | 114 | dow : 1, // Monday is the first day of the week. | ||
4458 | 115 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
4459 | 116 | } | ||
4460 | 117 | }); | ||
4461 | 118 | })); | ||
4462 | 0 | 119 | ||
4463 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.lv.js' | |||
4464 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.lv.js 1970-01-01 00:00:00 +0000 | |||
4465 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.lv.js 2014-02-14 15:04:13 +0000 | |||
4466 | @@ -0,0 +1,77 @@ | |||
4467 | 1 | // moment.js language configuration | ||
4468 | 2 | // language : latvian (lv) | ||
4469 | 3 | // author : Kristaps Karlsons : https://github.com/skakri | ||
4470 | 4 | |||
4471 | 5 | (function (factory) { | ||
4472 | 6 | if (typeof define === 'function' && define.amd) { | ||
4473 | 7 | define(['moment'], factory); // AMD | ||
4474 | 8 | } else if (typeof exports === 'object') { | ||
4475 | 9 | module.exports = factory(require('../moment')); // Node | ||
4476 | 10 | } else { | ||
4477 | 11 | factory(window.moment); // Browser global | ||
4478 | 12 | } | ||
4479 | 13 | }(function (moment) { | ||
4480 | 14 | var units = { | ||
4481 | 15 | 'mm': 'minūti_minūtes_minūte_minūtes', | ||
4482 | 16 | 'hh': 'stundu_stundas_stunda_stundas', | ||
4483 | 17 | 'dd': 'dienu_dienas_diena_dienas', | ||
4484 | 18 | 'MM': 'mēnesi_mēnešus_mēnesis_mēneši', | ||
4485 | 19 | 'yy': 'gadu_gadus_gads_gadi' | ||
4486 | 20 | }; | ||
4487 | 21 | |||
4488 | 22 | function format(word, number, withoutSuffix) { | ||
4489 | 23 | var forms = word.split('_'); | ||
4490 | 24 | if (withoutSuffix) { | ||
4491 | 25 | return number % 10 === 1 && number !== 11 ? forms[2] : forms[3]; | ||
4492 | 26 | } else { | ||
4493 | 27 | return number % 10 === 1 && number !== 11 ? forms[0] : forms[1]; | ||
4494 | 28 | } | ||
4495 | 29 | } | ||
4496 | 30 | |||
4497 | 31 | function relativeTimeWithPlural(number, withoutSuffix, key) { | ||
4498 | 32 | return number + ' ' + format(units[key], number, withoutSuffix); | ||
4499 | 33 | } | ||
4500 | 34 | |||
4501 | 35 | return moment.lang('lv', { | ||
4502 | 36 | months : "janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"), | ||
4503 | 37 | monthsShort : "jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"), | ||
4504 | 38 | weekdays : "svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"), | ||
4505 | 39 | weekdaysShort : "Sv_P_O_T_C_Pk_S".split("_"), | ||
4506 | 40 | weekdaysMin : "Sv_P_O_T_C_Pk_S".split("_"), | ||
4507 | 41 | longDateFormat : { | ||
4508 | 42 | LT : "HH:mm", | ||
4509 | 43 | L : "DD.MM.YYYY", | ||
4510 | 44 | LL : "YYYY. [gada] D. MMMM", | ||
4511 | 45 | LLL : "YYYY. [gada] D. MMMM, LT", | ||
4512 | 46 | LLLL : "YYYY. [gada] D. MMMM, dddd, LT" | ||
4513 | 47 | }, | ||
4514 | 48 | calendar : { | ||
4515 | 49 | sameDay : '[Šodien pulksten] LT', | ||
4516 | 50 | nextDay : '[Rīt pulksten] LT', | ||
4517 | 51 | nextWeek : 'dddd [pulksten] LT', | ||
4518 | 52 | lastDay : '[Vakar pulksten] LT', | ||
4519 | 53 | lastWeek : '[Pagājušā] dddd [pulksten] LT', | ||
4520 | 54 | sameElse : 'L' | ||
4521 | 55 | }, | ||
4522 | 56 | relativeTime : { | ||
4523 | 57 | future : "%s vēlāk", | ||
4524 | 58 | past : "%s agrāk", | ||
4525 | 59 | s : "dažas sekundes", | ||
4526 | 60 | m : "minūti", | ||
4527 | 61 | mm : relativeTimeWithPlural, | ||
4528 | 62 | h : "stundu", | ||
4529 | 63 | hh : relativeTimeWithPlural, | ||
4530 | 64 | d : "dienu", | ||
4531 | 65 | dd : relativeTimeWithPlural, | ||
4532 | 66 | M : "mēnesi", | ||
4533 | 67 | MM : relativeTimeWithPlural, | ||
4534 | 68 | y : "gadu", | ||
4535 | 69 | yy : relativeTimeWithPlural | ||
4536 | 70 | }, | ||
4537 | 71 | ordinal : '%d.', | ||
4538 | 72 | week : { | ||
4539 | 73 | dow : 1, // Monday is the first day of the week. | ||
4540 | 74 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
4541 | 75 | } | ||
4542 | 76 | }); | ||
4543 | 77 | })); | ||
4544 | 0 | 78 | ||
4545 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ml.js' | |||
4546 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ml.js 1970-01-01 00:00:00 +0000 | |||
4547 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ml.js 2014-02-14 15:04:13 +0000 | |||
4548 | @@ -0,0 +1,64 @@ | |||
4549 | 1 | // moment.js language configuration | ||
4550 | 2 | // language : malayalam (ml) | ||
4551 | 3 | // author : Floyd Pink : https://github.com/floydpink | ||
4552 | 4 | |||
4553 | 5 | (function (factory) { | ||
4554 | 6 | if (typeof define === 'function' && define.amd) { | ||
4555 | 7 | define(['moment'], factory); // AMD | ||
4556 | 8 | } else if (typeof exports === 'object') { | ||
4557 | 9 | module.exports = factory(require('../moment')); // Node | ||
4558 | 10 | } else { | ||
4559 | 11 | factory(window.moment); // Browser global | ||
4560 | 12 | } | ||
4561 | 13 | }(function (moment) { | ||
4562 | 14 | return moment.lang('ml', { | ||
4563 | 15 | months : 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split("_"), | ||
4564 | 16 | monthsShort : 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split("_"), | ||
4565 | 17 | weekdays : 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split("_"), | ||
4566 | 18 | weekdaysShort : 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split("_"), | ||
4567 | 19 | weekdaysMin : 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split("_"), | ||
4568 | 20 | longDateFormat : { | ||
4569 | 21 | LT : "A h:mm -നു", | ||
4570 | 22 | L : "DD/MM/YYYY", | ||
4571 | 23 | LL : "D MMMM YYYY", | ||
4572 | 24 | LLL : "D MMMM YYYY, LT", | ||
4573 | 25 | LLLL : "dddd, D MMMM YYYY, LT" | ||
4574 | 26 | }, | ||
4575 | 27 | calendar : { | ||
4576 | 28 | sameDay : '[ഇന്ന്] LT', | ||
4577 | 29 | nextDay : '[നാളെ] LT', | ||
4578 | 30 | nextWeek : 'dddd, LT', | ||
4579 | 31 | lastDay : '[ഇന്നലെ] LT', | ||
4580 | 32 | lastWeek : '[കഴിഞ്ഞ] dddd, LT', | ||
4581 | 33 | sameElse : 'L' | ||
4582 | 34 | }, | ||
4583 | 35 | relativeTime : { | ||
4584 | 36 | future : "%s കഴിഞ്ഞ്", | ||
4585 | 37 | past : "%s മുൻപ്", | ||
4586 | 38 | s : "അൽപ നിമിഷങ്ങൾ", | ||
4587 | 39 | m : "ഒരു മിനിറ്റ്", | ||
4588 | 40 | mm : "%d മിനിറ്റ്", | ||
4589 | 41 | h : "ഒരു മണിക്കൂർ", | ||
4590 | 42 | hh : "%d മണിക്കൂർ", | ||
4591 | 43 | d : "ഒരു ദിവസം", | ||
4592 | 44 | dd : "%d ദിവസം", | ||
4593 | 45 | M : "ഒരു മാസം", | ||
4594 | 46 | MM : "%d മാസം", | ||
4595 | 47 | y : "ഒരു വർഷം", | ||
4596 | 48 | yy : "%d വർഷം" | ||
4597 | 49 | }, | ||
4598 | 50 | meridiem : function (hour, minute, isLower) { | ||
4599 | 51 | if (hour < 4) { | ||
4600 | 52 | return "രാത്രി"; | ||
4601 | 53 | } else if (hour < 12) { | ||
4602 | 54 | return "രാവിലെ"; | ||
4603 | 55 | } else if (hour < 17) { | ||
4604 | 56 | return "ഉച്ച കഴിഞ്ഞ്"; | ||
4605 | 57 | } else if (hour < 20) { | ||
4606 | 58 | return "വൈകുന്നേരം"; | ||
4607 | 59 | } else { | ||
4608 | 60 | return "രാത്രി"; | ||
4609 | 61 | } | ||
4610 | 62 | } | ||
4611 | 63 | }); | ||
4612 | 64 | })); | ||
4613 | 0 | 65 | ||
4614 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.mr.js' | |||
4615 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.mr.js 1970-01-01 00:00:00 +0000 | |||
4616 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.mr.js 2014-02-14 15:04:13 +0000 | |||
4617 | @@ -0,0 +1,104 @@ | |||
4618 | 1 | // moment.js language configuration | ||
4619 | 2 | // language : Marathi (mr) | ||
4620 | 3 | // author : Harshad Kale : https://github.com/kalehv | ||
4621 | 4 | |||
4622 | 5 | (function (factory) { | ||
4623 | 6 | if (typeof define === 'function' && define.amd) { | ||
4624 | 7 | define(['moment'], factory); // AMD | ||
4625 | 8 | } else if (typeof exports === 'object') { | ||
4626 | 9 | module.exports = factory(require('../moment')); // Node | ||
4627 | 10 | } else { | ||
4628 | 11 | factory(window.moment); // Browser global | ||
4629 | 12 | } | ||
4630 | 13 | }(function (moment) { | ||
4631 | 14 | var symbolMap = { | ||
4632 | 15 | '1': '१', | ||
4633 | 16 | '2': '२', | ||
4634 | 17 | '3': '३', | ||
4635 | 18 | '4': '४', | ||
4636 | 19 | '5': '५', | ||
4637 | 20 | '6': '६', | ||
4638 | 21 | '7': '७', | ||
4639 | 22 | '8': '८', | ||
4640 | 23 | '9': '९', | ||
4641 | 24 | '0': '०' | ||
4642 | 25 | }, | ||
4643 | 26 | numberMap = { | ||
4644 | 27 | '१': '1', | ||
4645 | 28 | '२': '2', | ||
4646 | 29 | '३': '3', | ||
4647 | 30 | '४': '4', | ||
4648 | 31 | '५': '5', | ||
4649 | 32 | '६': '6', | ||
4650 | 33 | '७': '7', | ||
4651 | 34 | '८': '8', | ||
4652 | 35 | '९': '9', | ||
4653 | 36 | '०': '0' | ||
4654 | 37 | }; | ||
4655 | 38 | |||
4656 | 39 | return moment.lang('mr', { | ||
4657 | 40 | months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split("_"), | ||
4658 | 41 | monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split("_"), | ||
4659 | 42 | weekdays : 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split("_"), | ||
4660 | 43 | weekdaysShort : 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split("_"), | ||
4661 | 44 | weekdaysMin : 'र_सो_मं_बु_गु_शु_श'.split("_"), | ||
4662 | 45 | longDateFormat : { | ||
4663 | 46 | LT : "A h:mm वाजता", | ||
4664 | 47 | L : "DD/MM/YYYY", | ||
4665 | 48 | LL : "D MMMM YYYY", | ||
4666 | 49 | LLL : "D MMMM YYYY, LT", | ||
4667 | 50 | LLLL : "dddd, D MMMM YYYY, LT" | ||
4668 | 51 | }, | ||
4669 | 52 | calendar : { | ||
4670 | 53 | sameDay : '[आज] LT', | ||
4671 | 54 | nextDay : '[उद्या] LT', | ||
4672 | 55 | nextWeek : 'dddd, LT', | ||
4673 | 56 | lastDay : '[काल] LT', | ||
4674 | 57 | lastWeek: '[मागील] dddd, LT', | ||
4675 | 58 | sameElse : 'L' | ||
4676 | 59 | }, | ||
4677 | 60 | relativeTime : { | ||
4678 | 61 | future : "%s नंतर", | ||
4679 | 62 | past : "%s पूर्वी", | ||
4680 | 63 | s : "सेकंद", | ||
4681 | 64 | m: "एक मिनिट", | ||
4682 | 65 | mm: "%d मिनिटे", | ||
4683 | 66 | h : "एक तास", | ||
4684 | 67 | hh : "%d तास", | ||
4685 | 68 | d : "एक दिवस", | ||
4686 | 69 | dd : "%d दिवस", | ||
4687 | 70 | M : "एक महिना", | ||
4688 | 71 | MM : "%d महिने", | ||
4689 | 72 | y : "एक वर्ष", | ||
4690 | 73 | yy : "%d वर्षे" | ||
4691 | 74 | }, | ||
4692 | 75 | preparse: function (string) { | ||
4693 | 76 | return string.replace(/[१२३४५६७८९०]/g, function (match) { | ||
4694 | 77 | return numberMap[match]; | ||
4695 | 78 | }); | ||
4696 | 79 | }, | ||
4697 | 80 | postformat: function (string) { | ||
4698 | 81 | return string.replace(/\d/g, function (match) { | ||
4699 | 82 | return symbolMap[match]; | ||
4700 | 83 | }); | ||
4701 | 84 | }, | ||
4702 | 85 | meridiem: function (hour, minute, isLower) | ||
4703 | 86 | { | ||
4704 | 87 | if (hour < 4) { | ||
4705 | 88 | return "रात्री"; | ||
4706 | 89 | } else if (hour < 10) { | ||
4707 | 90 | return "सकाळी"; | ||
4708 | 91 | } else if (hour < 17) { | ||
4709 | 92 | return "दुपारी"; | ||
4710 | 93 | } else if (hour < 20) { | ||
4711 | 94 | return "सायंकाळी"; | ||
4712 | 95 | } else { | ||
4713 | 96 | return "रात्री"; | ||
4714 | 97 | } | ||
4715 | 98 | }, | ||
4716 | 99 | week : { | ||
4717 | 100 | dow : 0, // Sunday is the first day of the week. | ||
4718 | 101 | doy : 6 // The week that contains Jan 1st is the first week of the year. | ||
4719 | 102 | } | ||
4720 | 103 | }); | ||
4721 | 104 | })); | ||
4722 | 0 | 105 | ||
4723 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ms-my.js' | |||
4724 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ms-my.js 1970-01-01 00:00:00 +0000 | |||
4725 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ms-my.js 2014-02-14 15:04:13 +0000 | |||
4726 | @@ -0,0 +1,66 @@ | |||
4727 | 1 | // moment.js language configuration | ||
4728 | 2 | // language : Bahasa Malaysia (ms-MY) | ||
4729 | 3 | // author : Weldan Jamili : https://github.com/weldan | ||
4730 | 4 | |||
4731 | 5 | (function (factory) { | ||
4732 | 6 | if (typeof define === 'function' && define.amd) { | ||
4733 | 7 | define(['moment'], factory); // AMD | ||
4734 | 8 | } else if (typeof exports === 'object') { | ||
4735 | 9 | module.exports = factory(require('../moment')); // Node | ||
4736 | 10 | } else { | ||
4737 | 11 | factory(window.moment); // Browser global | ||
4738 | 12 | } | ||
4739 | 13 | }(function (moment) { | ||
4740 | 14 | return moment.lang('ms-my', { | ||
4741 | 15 | months : "Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"), | ||
4742 | 16 | monthsShort : "Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"), | ||
4743 | 17 | weekdays : "Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"), | ||
4744 | 18 | weekdaysShort : "Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"), | ||
4745 | 19 | weekdaysMin : "Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"), | ||
4746 | 20 | longDateFormat : { | ||
4747 | 21 | LT : "HH.mm", | ||
4748 | 22 | L : "DD/MM/YYYY", | ||
4749 | 23 | LL : "D MMMM YYYY", | ||
4750 | 24 | LLL : "D MMMM YYYY [pukul] LT", | ||
4751 | 25 | LLLL : "dddd, D MMMM YYYY [pukul] LT" | ||
4752 | 26 | }, | ||
4753 | 27 | meridiem : function (hours, minutes, isLower) { | ||
4754 | 28 | if (hours < 11) { | ||
4755 | 29 | return 'pagi'; | ||
4756 | 30 | } else if (hours < 15) { | ||
4757 | 31 | return 'tengahari'; | ||
4758 | 32 | } else if (hours < 19) { | ||
4759 | 33 | return 'petang'; | ||
4760 | 34 | } else { | ||
4761 | 35 | return 'malam'; | ||
4762 | 36 | } | ||
4763 | 37 | }, | ||
4764 | 38 | calendar : { | ||
4765 | 39 | sameDay : '[Hari ini pukul] LT', | ||
4766 | 40 | nextDay : '[Esok pukul] LT', | ||
4767 | 41 | nextWeek : 'dddd [pukul] LT', | ||
4768 | 42 | lastDay : '[Kelmarin pukul] LT', | ||
4769 | 43 | lastWeek : 'dddd [lepas pukul] LT', | ||
4770 | 44 | sameElse : 'L' | ||
4771 | 45 | }, | ||
4772 | 46 | relativeTime : { | ||
4773 | 47 | future : "dalam %s", | ||
4774 | 48 | past : "%s yang lepas", | ||
4775 | 49 | s : "beberapa saat", | ||
4776 | 50 | m : "seminit", | ||
4777 | 51 | mm : "%d minit", | ||
4778 | 52 | h : "sejam", | ||
4779 | 53 | hh : "%d jam", | ||
4780 | 54 | d : "sehari", | ||
4781 | 55 | dd : "%d hari", | ||
4782 | 56 | M : "sebulan", | ||
4783 | 57 | MM : "%d bulan", | ||
4784 | 58 | y : "setahun", | ||
4785 | 59 | yy : "%d tahun" | ||
4786 | 60 | }, | ||
4787 | 61 | week : { | ||
4788 | 62 | dow : 1, // Monday is the first day of the week. | ||
4789 | 63 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
4790 | 64 | } | ||
4791 | 65 | }); | ||
4792 | 66 | })); | ||
4793 | 0 | 67 | ||
4794 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.nb.js' | |||
4795 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.nb.js 1970-01-01 00:00:00 +0000 | |||
4796 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.nb.js 2014-02-14 15:04:13 +0000 | |||
4797 | @@ -0,0 +1,57 @@ | |||
4798 | 1 | // moment.js language configuration | ||
4799 | 2 | // language : norwegian bokmål (nb) | ||
4800 | 3 | // authors : Espen Hovlandsdal : https://github.com/rexxars | ||
4801 | 4 | // Sigurd Gartmann : https://github.com/sigurdga | ||
4802 | 5 | |||
4803 | 6 | (function (factory) { | ||
4804 | 7 | if (typeof define === 'function' && define.amd) { | ||
4805 | 8 | define(['moment'], factory); // AMD | ||
4806 | 9 | } else if (typeof exports === 'object') { | ||
4807 | 10 | module.exports = factory(require('../moment')); // Node | ||
4808 | 11 | } else { | ||
4809 | 12 | factory(window.moment); // Browser global | ||
4810 | 13 | } | ||
4811 | 14 | }(function (moment) { | ||
4812 | 15 | return moment.lang('nb', { | ||
4813 | 16 | months : "januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"), | ||
4814 | 17 | monthsShort : "jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"), | ||
4815 | 18 | weekdays : "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"), | ||
4816 | 19 | weekdaysShort : "sø._ma._ti._on._to._fr._lø.".split("_"), | ||
4817 | 20 | weekdaysMin : "sø_ma_ti_on_to_fr_lø".split("_"), | ||
4818 | 21 | longDateFormat : { | ||
4819 | 22 | LT : "H.mm", | ||
4820 | 23 | L : "DD.MM.YYYY", | ||
4821 | 24 | LL : "D. MMMM YYYY", | ||
4822 | 25 | LLL : "D. MMMM YYYY [kl.] LT", | ||
4823 | 26 | LLLL : "dddd D. MMMM YYYY [kl.] LT" | ||
4824 | 27 | }, | ||
4825 | 28 | calendar : { | ||
4826 | 29 | sameDay: '[i dag kl.] LT', | ||
4827 | 30 | nextDay: '[i morgen kl.] LT', | ||
4828 | 31 | nextWeek: 'dddd [kl.] LT', | ||
4829 | 32 | lastDay: '[i går kl.] LT', | ||
4830 | 33 | lastWeek: '[forrige] dddd [kl.] LT', | ||
4831 | 34 | sameElse: 'L' | ||
4832 | 35 | }, | ||
4833 | 36 | relativeTime : { | ||
4834 | 37 | future : "om %s", | ||
4835 | 38 | past : "for %s siden", | ||
4836 | 39 | s : "noen sekunder", | ||
4837 | 40 | m : "ett minutt", | ||
4838 | 41 | mm : "%d minutter", | ||
4839 | 42 | h : "en time", | ||
4840 | 43 | hh : "%d timer", | ||
4841 | 44 | d : "en dag", | ||
4842 | 45 | dd : "%d dager", | ||
4843 | 46 | M : "en måned", | ||
4844 | 47 | MM : "%d måneder", | ||
4845 | 48 | y : "ett år", | ||
4846 | 49 | yy : "%d år" | ||
4847 | 50 | }, | ||
4848 | 51 | ordinal : '%d.', | ||
4849 | 52 | week : { | ||
4850 | 53 | dow : 1, // Monday is the first day of the week. | ||
4851 | 54 | doy : 4 // The week that contains Jan 4th is the first week of the year. | ||
4852 | 55 | } | ||
4853 | 56 | }); | ||
4854 | 57 | })); | ||
4855 | 0 | 58 | ||
4856 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ne.js' | |||
4857 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ne.js 1970-01-01 00:00:00 +0000 | |||
4858 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.ne.js 2014-02-14 15:04:13 +0000 | |||
4859 | @@ -0,0 +1,105 @@ | |||
4860 | 1 | // moment.js language configuration | ||
4861 | 2 | // language : nepali/nepalese | ||
4862 | 3 | // author : suvash : https://github.com/suvash | ||
4863 | 4 | |||
4864 | 5 | (function (factory) { | ||
4865 | 6 | if (typeof define === 'function' && define.amd) { | ||
4866 | 7 | define(['moment'], factory); // AMD | ||
4867 | 8 | } else if (typeof exports === 'object') { | ||
4868 | 9 | module.exports = factory(require('../moment')); // Node | ||
4869 | 10 | } else { | ||
4870 | 11 | factory(window.moment); // Browser global | ||
4871 | 12 | } | ||
4872 | 13 | }(function (moment) { | ||
4873 | 14 | var symbolMap = { | ||
4874 | 15 | '1': '१', | ||
4875 | 16 | '2': '२', | ||
4876 | 17 | '3': '३', | ||
4877 | 18 | '4': '४', | ||
4878 | 19 | '5': '५', | ||
4879 | 20 | '6': '६', | ||
4880 | 21 | '7': '७', | ||
4881 | 22 | '8': '८', | ||
4882 | 23 | '9': '९', | ||
4883 | 24 | '0': '०' | ||
4884 | 25 | }, | ||
4885 | 26 | numberMap = { | ||
4886 | 27 | '१': '1', | ||
4887 | 28 | '२': '2', | ||
4888 | 29 | '३': '3', | ||
4889 | 30 | '४': '4', | ||
4890 | 31 | '५': '5', | ||
4891 | 32 | '६': '6', | ||
4892 | 33 | '७': '7', | ||
4893 | 34 | '८': '8', | ||
4894 | 35 | '९': '9', | ||
4895 | 36 | '०': '0' | ||
4896 | 37 | }; | ||
4897 | 38 | |||
4898 | 39 | return moment.lang('ne', { | ||
4899 | 40 | months : 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split("_"), | ||
4900 | 41 | monthsShort : 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split("_"), | ||
4901 | 42 | weekdays : 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split("_"), | ||
4902 | 43 | weekdaysShort : 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split("_"), | ||
4903 | 44 | weekdaysMin : 'आइ._सो._मङ्_बु._बि._शु._श.'.split("_"), | ||
4904 | 45 | longDateFormat : { | ||
4905 | 46 | LT : "Aको h:mm बजे", | ||
4906 | 47 | L : "DD/MM/YYYY", | ||
4907 | 48 | LL : "D MMMM YYYY", | ||
4908 | 49 | LLL : "D MMMM YYYY, LT", | ||
4909 | 50 | LLLL : "dddd, D MMMM YYYY, LT" | ||
4910 | 51 | }, | ||
4911 | 52 | preparse: function (string) { | ||
4912 | 53 | return string.replace(/[१२३४५६७८९०]/g, function (match) { | ||
4913 | 54 | return numberMap[match]; | ||
4914 | 55 | }); | ||
4915 | 56 | }, | ||
4916 | 57 | postformat: function (string) { | ||
4917 | 58 | return string.replace(/\d/g, function (match) { | ||
4918 | 59 | return symbolMap[match]; | ||
4919 | 60 | }); | ||
4920 | 61 | }, | ||
4921 | 62 | meridiem : function (hour, minute, isLower) { | ||
4922 | 63 | if (hour < 3) { | ||
4923 | 64 | return "राती"; | ||
4924 | 65 | } else if (hour < 10) { | ||
4925 | 66 | return "बिहान"; | ||
4926 | 67 | } else if (hour < 15) { | ||
4927 | 68 | return "दिउँसो"; | ||
4928 | 69 | } else if (hour < 18) { | ||
4929 | 70 | return "बेलुका"; | ||
4930 | 71 | } else if (hour < 20) { | ||
4931 | 72 | return "साँझ"; | ||
4932 | 73 | } else { | ||
4933 | 74 | return "राती"; | ||
4934 | 75 | } | ||
4935 | 76 | }, | ||
4936 | 77 | calendar : { | ||
4937 | 78 | sameDay : '[आज] LT', | ||
4938 | 79 | nextDay : '[भोली] LT', | ||
4939 | 80 | nextWeek : '[आउँदो] dddd[,] LT', | ||
4940 | 81 | lastDay : '[हिजो] LT', | ||
4941 | 82 | lastWeek : '[गएको] dddd[,] LT', | ||
4942 | 83 | sameElse : 'L' | ||
4943 | 84 | }, | ||
4944 | 85 | relativeTime : { | ||
4945 | 86 | future : "%sमा", | ||
4946 | 87 | past : "%s अगाडी", | ||
4947 | 88 | s : "केही समय", | ||
4948 | 89 | m : "एक मिनेट", | ||
4949 | 90 | mm : "%d मिनेट", | ||
4950 | 91 | h : "एक घण्टा", | ||
4951 | 92 | hh : "%d घण्टा", | ||
4952 | 93 | d : "एक दिन", | ||
4953 | 94 | dd : "%d दिन", | ||
4954 | 95 | M : "एक महिना", | ||
4955 | 96 | MM : "%d महिना", | ||
4956 | 97 | y : "एक बर्ष", | ||
4957 | 98 | yy : "%d बर्ष" | ||
4958 | 99 | }, | ||
4959 | 100 | week : { | ||
4960 | 101 | dow : 1, // Monday is the first day of the week. | ||
4961 | 102 | doy : 7 // The week that contains Jan 1st is the first week of the year. | ||
4962 | 103 | } | ||
4963 | 104 | }); | ||
4964 | 105 | })); | ||
4965 | 0 | 106 | ||
4966 | === added file 'addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.nl.js' | |||
4967 | --- addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.nl.js 1970-01-01 00:00:00 +0000 | |||
4968 | +++ addons/web/static/lib/bootstrap-datetimepicker/src/js/locales/bootstrap-datetimepicker.nl.js 2014-02-14 15:04:13 +0000 | |||
4969 | @@ -0,0 +1,67 @@ | |||
4970 | 1 | // moment.js language configuration | ||
4971 | 2 | // language : dutch (nl) | ||
4972 | 3 | // author : Joris Röling : https://github.com/jjupiter | ||
4973 | 4 | |||
4974 | 5 | (function (factory) { | ||
4975 | 6 | if (typeof define === 'function' && define.amd) { | ||
4976 | 7 | define(['moment'], factory); // AMD | ||
4977 | 8 | } else if (typeof exports === 'object') { | ||
4978 | 9 | module.exports = factory(require('../moment')); // Node | ||
4979 | 10 | } else { | ||
4980 | 11 | factory(window.moment); // Browser global | ||
4981 | 12 | } | ||
4982 | 13 | }(function (moment) { | ||
4983 | 14 | var monthsShortWithDots = "jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"), | ||
4984 | 15 | monthsShortWithoutDots = "jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"); | ||
4985 | 16 | |||
4986 | 17 | return moment.lang('nl', { | ||
4987 | 18 | months : "januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"), | ||
4988 | 19 | monthsShort : function (m, format) { | ||
4989 | 20 | if (/-MMM-/.test(format)) { | ||
4990 | 21 | return monthsShortWithoutDots[m.month()]; | ||
4991 | 22 | } else { | ||
4992 | 23 | return monthsShortWithDots[m.month()]; | ||
4993 | 24 | } | ||
4994 | 25 | }, | ||
4995 | 26 | weekdays : "zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"), | ||
4996 | 27 | weekdaysShort : "zo._ma._di._wo._do._vr._za.".split("_"), | ||
4997 | 28 | weekdaysMin : "Zo_Ma_Di_Wo_Do_Vr_Za".split("_"), | ||
4998 | 29 | longDateFormat : { | ||
4999 | 30 | LT : "HH:mm", | ||
5000 | 31 | L : "DD-MM-YYYY", |