Skip to content
This repository
Browse code

jQuery DatePicker modified to use jQuery.glob. Added jQuery.localize(…

…), added culture.language
  • Loading branch information...
commit e8978f8709bb1b0bba1764d2ef62a4dd6e64e598 1 parent 2519b69
InfinitiesLoop authored

Showing 771 changed files with 16,219 additions and 5,562 deletions. Show diff stats Hide diff stats

  1. +95 0 demo-datepicker.css
  2. +131 0 demo-datepicker.html
  3. +3 2 demo.html
  4. +0 2  demo.js
  5. +27 14 generator/Program.cs
  6. +55 1 generator/glob-generator.csproj
  7. +138 0 generator/jQueryUI/jQueryDatePickerGlob.html
  8. +23 0 generator/jQueryUI/jquery.ui.datepicker-af.js
  9. +24 0 generator/jQueryUI/jquery.ui.datepicker-ar.js
  10. +23 0 generator/jQueryUI/jquery.ui.datepicker-az.js
  11. +24 0 generator/jQueryUI/jquery.ui.datepicker-bg.js
  12. +23 0 generator/jQueryUI/jquery.ui.datepicker-bs.js
  13. +23 0 generator/jQueryUI/jquery.ui.datepicker-ca.js
  14. +23 0 generator/jQueryUI/jquery.ui.datepicker-cs.js
  15. +23 0 generator/jQueryUI/jquery.ui.datepicker-da.js
  16. +23 0 generator/jQueryUI/jquery.ui.datepicker-de.js
  17. +23 0 generator/jQueryUI/jquery.ui.datepicker-el.js
  18. +23 0 generator/jQueryUI/jquery.ui.datepicker-en-GB.js
  19. +23 0 generator/jQueryUI/jquery.ui.datepicker-eo.js
  20. +23 0 generator/jQueryUI/jquery.ui.datepicker-es.js
  21. +23 0 generator/jQueryUI/jquery.ui.datepicker-et.js
  22. +23 0 generator/jQueryUI/jquery.ui.datepicker-eu.js
  23. +23 0 generator/jQueryUI/jquery.ui.datepicker-fa.js
  24. +23 0 generator/jQueryUI/jquery.ui.datepicker-fi.js
  25. +23 0 generator/jQueryUI/jquery.ui.datepicker-fo.js
  26. +23 0 generator/jQueryUI/jquery.ui.datepicker-fr-CH.js
  27. +23 0 generator/jQueryUI/jquery.ui.datepicker-fr.js
  28. +23 0 generator/jQueryUI/jquery.ui.datepicker-he.js
  29. +23 0 generator/jQueryUI/jquery.ui.datepicker-hr.js
  30. +23 0 generator/jQueryUI/jquery.ui.datepicker-hu.js
  31. +23 0 generator/jQueryUI/jquery.ui.datepicker-hy.js
  32. +23 0 generator/jQueryUI/jquery.ui.datepicker-id.js
  33. +23 0 generator/jQueryUI/jquery.ui.datepicker-is.js
  34. +23 0 generator/jQueryUI/jquery.ui.datepicker-it.js
  35. +23 0 generator/jQueryUI/jquery.ui.datepicker-ja.js
  36. +23 0 generator/jQueryUI/jquery.ui.datepicker-ko.js
  37. +23 0 generator/jQueryUI/jquery.ui.datepicker-lt.js
  38. +23 0 generator/jQueryUI/jquery.ui.datepicker-lv.js
  39. +23 0 generator/jQueryUI/jquery.ui.datepicker-ms.js
  40. +23 0 generator/jQueryUI/jquery.ui.datepicker-nl.js
  41. +23 0 generator/jQueryUI/jquery.ui.datepicker-no.js
  42. +23 0 generator/jQueryUI/jquery.ui.datepicker-pl.js
  43. +23 0 generator/jQueryUI/jquery.ui.datepicker-pt-BR.js
  44. +26 0 generator/jQueryUI/jquery.ui.datepicker-ro.js
  45. +23 0 generator/jQueryUI/jquery.ui.datepicker-ru.js
  46. +23 0 generator/jQueryUI/jquery.ui.datepicker-sk.js
  47. +24 0 generator/jQueryUI/jquery.ui.datepicker-sl.js
  48. +23 0 generator/jQueryUI/jquery.ui.datepicker-sq.js
  49. +23 0 generator/jQueryUI/jquery.ui.datepicker-sr-SR.js
  50. +23 0 generator/jQueryUI/jquery.ui.datepicker-sr.js
  51. +23 0 generator/jQueryUI/jquery.ui.datepicker-sv.js
  52. +23 0 generator/jQueryUI/jquery.ui.datepicker-ta.js
  53. +23 0 generator/jQueryUI/jquery.ui.datepicker-th.js
  54. +23 0 generator/jQueryUI/jquery.ui.datepicker-tr.js
  55. +23 0 generator/jQueryUI/jquery.ui.datepicker-uk.js
  56. +23 0 generator/jQueryUI/jquery.ui.datepicker-vi.js
  57. +23 0 generator/jQueryUI/jquery.ui.datepicker-zh-CN.js
  58. +23 0 generator/jQueryUI/jquery.ui.datepicker-zh-HK.js
  59. +23 0 generator/jQueryUI/jquery.ui.datepicker-zh-TW.js
  60. +5 3 globinfo/jQuery.glob.af-ZA.js
  61. +1 1  globinfo/jQuery.glob.af-ZA.min.js
  62. +38 0 globinfo/jQuery.glob.af.js
  63. +1 0  globinfo/jQuery.glob.af.min.js
  64. +11,918 5,198 globinfo/jQuery.glob.all.js
  65. +1 1  globinfo/jQuery.glob.all.min.js
  66. +5 3 globinfo/jQuery.glob.am-ET.js
  67. +1 1  globinfo/jQuery.glob.am-ET.min.js
  68. +46 0 globinfo/jQuery.glob.am.js
  69. +1 0  globinfo/jQuery.glob.am.min.js
  70. +5 3 globinfo/jQuery.glob.ar-AE.js
  71. +1 1  globinfo/jQuery.glob.ar-AE.min.js
  72. +5 3 globinfo/jQuery.glob.ar-BH.js
  73. +1 1  globinfo/jQuery.glob.ar-BH.min.js
  74. +5 3 globinfo/jQuery.glob.ar-DZ.js
  75. +1 1  globinfo/jQuery.glob.ar-DZ.min.js
  76. +5 3 globinfo/jQuery.glob.ar-EG.js
  77. +1 1  globinfo/jQuery.glob.ar-EG.min.js
  78. +5 3 globinfo/jQuery.glob.ar-IQ.js
  79. +1 1  globinfo/jQuery.glob.ar-IQ.min.js
  80. +5 3 globinfo/jQuery.glob.ar-JO.js
  81. +1 1  globinfo/jQuery.glob.ar-JO.min.js
  82. +5 3 globinfo/jQuery.glob.ar-KW.js
  83. +1 1  globinfo/jQuery.glob.ar-KW.min.js
  84. +5 3 globinfo/jQuery.glob.ar-LB.js
  85. +1 1  globinfo/jQuery.glob.ar-LB.min.js
  86. +5 3 globinfo/jQuery.glob.ar-LY.js
  87. +1 1  globinfo/jQuery.glob.ar-LY.min.js
  88. +5 3 globinfo/jQuery.glob.ar-MA.js
  89. +1 1  globinfo/jQuery.glob.ar-MA.min.js
  90. +5 3 globinfo/jQuery.glob.ar-OM.js
  91. +1 1  globinfo/jQuery.glob.ar-OM.min.js
  92. +5 3 globinfo/jQuery.glob.ar-QA.js
  93. +1 1  globinfo/jQuery.glob.ar-QA.min.js
  94. +5 3 globinfo/jQuery.glob.ar-SA.js
  95. +1 1  globinfo/jQuery.glob.ar-SA.min.js
  96. +5 3 globinfo/jQuery.glob.ar-SY.js
  97. +1 1  globinfo/jQuery.glob.ar-SY.min.js
  98. +5 3 globinfo/jQuery.glob.ar-TN.js
  99. +1 1  globinfo/jQuery.glob.ar-TN.min.js
  100. +5 3 globinfo/jQuery.glob.ar-YE.js
  101. +1 1  globinfo/jQuery.glob.ar-YE.min.js
  102. +396 0 globinfo/jQuery.glob.ar.js
  103. +1 0  globinfo/jQuery.glob.ar.min.js
  104. +5 3 globinfo/jQuery.glob.arn-CL.js
  105. +1 1  globinfo/jQuery.glob.arn-CL.min.js
  106. +47 0 globinfo/jQuery.glob.arn.js
  107. +1 0  globinfo/jQuery.glob.arn.min.js
  108. +5 3 globinfo/jQuery.glob.as-IN.js
  109. +1 1  globinfo/jQuery.glob.as-IN.min.js
  110. +46 0 globinfo/jQuery.glob.as.js
  111. +1 0  globinfo/jQuery.glob.as.min.js
  112. +5 3 globinfo/jQuery.glob.az-Cyrl-AZ.js
  113. +1 1  globinfo/jQuery.glob.az-Cyrl-AZ.min.js
  114. +49 0 globinfo/jQuery.glob.az-Cyrl.js
  115. +1 0  globinfo/jQuery.glob.az-Cyrl.min.js
  116. +5 3 globinfo/jQuery.glob.az-Latn-AZ.js
  117. +1 1  globinfo/jQuery.glob.az-Latn-AZ.min.js
  118. +49 0 globinfo/jQuery.glob.az-Latn.js
  119. +1 0  globinfo/jQuery.glob.az-Latn.min.js
  120. +49 0 globinfo/jQuery.glob.az.js
  121. +1 0  globinfo/jQuery.glob.az.min.js
  122. +5 3 globinfo/jQuery.glob.ba-RU.js
  123. +1 1  globinfo/jQuery.glob.ba-RU.min.js
  124. +50 0 globinfo/jQuery.glob.ba.js
  125. +1 0  globinfo/jQuery.glob.ba.min.js
  126. +5 3 globinfo/jQuery.glob.be-BY.js
  127. +1 1  globinfo/jQuery.glob.be-BY.min.js
  128. +48 0 globinfo/jQuery.glob.be.js
  129. +1 0  globinfo/jQuery.glob.be.min.js
  130. +5 3 globinfo/jQuery.glob.bg-BG.js
  131. +1 1  globinfo/jQuery.glob.bg-BG.min.js
  132. +48 0 globinfo/jQuery.glob.bg.js
  133. +1 0  globinfo/jQuery.glob.bg.min.js
  134. +5 3 globinfo/jQuery.glob.bn-BD.js
  135. +1 1  globinfo/jQuery.glob.bn-BD.min.js
  136. +5 3 globinfo/jQuery.glob.bn-IN.js
  137. +1 1  globinfo/jQuery.glob.bn-IN.min.js
  138. +46 0 globinfo/jQuery.glob.bn.js
  139. +1 0  globinfo/jQuery.glob.bn.min.js
  140. +5 3 globinfo/jQuery.glob.bo-CN.js
  141. +1 1  globinfo/jQuery.glob.bo-CN.min.js
  142. +43 0 globinfo/jQuery.glob.bo.js
  143. +1 0  globinfo/jQuery.glob.bo.min.js
  144. +5 3 globinfo/jQuery.glob.br-FR.js
  145. +1 1  globinfo/jQuery.glob.br-FR.min.js
  146. +45 0 globinfo/jQuery.glob.br.js
  147. +1 0  globinfo/jQuery.glob.br.min.js
  148. +5 3 globinfo/jQuery.glob.bs-Cyrl-BA.js
  149. +1 1  globinfo/jQuery.glob.bs-Cyrl-BA.min.js
  150. +48 0 globinfo/jQuery.glob.bs-Cyrl.js
  151. +1 0  globinfo/jQuery.glob.bs-Cyrl.min.js
  152. +5 3 globinfo/jQuery.glob.bs-Latn-BA.js
  153. +1 1  globinfo/jQuery.glob.bs-Latn-BA.min.js
  154. +47 0 globinfo/jQuery.glob.bs-Latn.js
  155. +1 0  globinfo/jQuery.glob.bs-Latn.min.js
  156. +47 0 globinfo/jQuery.glob.bs.js
  157. +1 0  globinfo/jQuery.glob.bs.min.js
  158. +5 3 globinfo/jQuery.glob.ca-ES.js
  159. +1 1  globinfo/jQuery.glob.ca-ES.min.js
  160. +45 0 globinfo/jQuery.glob.ca.js
  161. +1 0  globinfo/jQuery.glob.ca.min.js
  162. +5 3 globinfo/jQuery.glob.co-FR.js
  163. +1 1  globinfo/jQuery.glob.co-FR.min.js
  164. +45 0 globinfo/jQuery.glob.co.js
  165. +1 0  globinfo/jQuery.glob.co.min.js
  166. +5 3 globinfo/jQuery.glob.cs-CZ.js
  167. +1 1  globinfo/jQuery.glob.cs-CZ.min.js
  168. +50 0 globinfo/jQuery.glob.cs.js
  169. +1 0  globinfo/jQuery.glob.cs.min.js
  170. +5 3 globinfo/jQuery.glob.cy-GB.js
  171. +1 1  globinfo/jQuery.glob.cy-GB.min.js
  172. +39 0 globinfo/jQuery.glob.cy.js
  173. +1 0  globinfo/jQuery.glob.cy.min.js
  174. +5 3 globinfo/jQuery.glob.da-DK.js
  175. +1 1  globinfo/jQuery.glob.da-DK.min.js
  176. +45 0 globinfo/jQuery.glob.da.js
  177. +1 0  globinfo/jQuery.glob.da.min.js
  178. +5 3 globinfo/jQuery.glob.de-AT.js
  179. +1 1  globinfo/jQuery.glob.de-AT.min.js
  180. +5 3 globinfo/jQuery.glob.de-CH.js
  181. +1 1  globinfo/jQuery.glob.de-CH.min.js
  182. +5 3 globinfo/jQuery.glob.de-DE.js
  183. +1 1  globinfo/jQuery.glob.de-DE.min.js
  184. +5 3 globinfo/jQuery.glob.de-LI.js
  185. +1 1  globinfo/jQuery.glob.de-LI.min.js
  186. +5 3 globinfo/jQuery.glob.de-LU.js
  187. +1 1  globinfo/jQuery.glob.de-LU.min.js
  188. +47 0 globinfo/jQuery.glob.de.js
  189. +1 0  globinfo/jQuery.glob.de.min.js
  190. +5 3 globinfo/jQuery.glob.dsb-DE.js
  191. +1 1  globinfo/jQuery.glob.dsb-DE.min.js
  192. +49 0 globinfo/jQuery.glob.dsb.js
  193. +1 0  globinfo/jQuery.glob.dsb.min.js
  194. +5 3 globinfo/jQuery.glob.dv-MV.js
  195. +1 1  globinfo/jQuery.glob.dv-MV.min.js
  196. +125 0 globinfo/jQuery.glob.dv.js
  197. +1 0  globinfo/jQuery.glob.dv.min.js
  198. +5 3 globinfo/jQuery.glob.el-GR.js
  199. +1 1  globinfo/jQuery.glob.el-GR.min.js
  200. +49 0 globinfo/jQuery.glob.el.js
  201. +1 0  globinfo/jQuery.glob.el.min.js
  202. +5 3 globinfo/jQuery.glob.en-029.js
  203. +1 1  globinfo/jQuery.glob.en-029.min.js
  204. +5 3 globinfo/jQuery.glob.en-AU.js
  205. +1 1  globinfo/jQuery.glob.en-AU.min.js
  206. +5 3 globinfo/jQuery.glob.en-BZ.js
  207. +1 1  globinfo/jQuery.glob.en-BZ.min.js
  208. +5 3 globinfo/jQuery.glob.en-CA.js
  209. +1 1  globinfo/jQuery.glob.en-CA.min.js
  210. +5 3 globinfo/jQuery.glob.en-GB.js
  211. +1 1  globinfo/jQuery.glob.en-GB.min.js
  212. +5 3 globinfo/jQuery.glob.en-IE.js
  213. +1 1  globinfo/jQuery.glob.en-IE.min.js
  214. +5 3 globinfo/jQuery.glob.en-IN.js
  215. +1 1  globinfo/jQuery.glob.en-IN.min.js
  216. +5 3 globinfo/jQuery.glob.en-JM.js
  217. +1 1  globinfo/jQuery.glob.en-JM.min.js
  218. +5 3 globinfo/jQuery.glob.en-MY.js
  219. +1 1  globinfo/jQuery.glob.en-MY.min.js
  220. +5 3 globinfo/jQuery.glob.en-NZ.js
  221. +1 1  globinfo/jQuery.glob.en-NZ.min.js
  222. +5 3 globinfo/jQuery.glob.en-PH.js
  223. +1 1  globinfo/jQuery.glob.en-PH.min.js
  224. +5 3 globinfo/jQuery.glob.en-SG.js
  225. +1 1  globinfo/jQuery.glob.en-SG.min.js
  226. +5 3 globinfo/jQuery.glob.en-TT.js
  227. +1 1  globinfo/jQuery.glob.en-TT.min.js
  228. +5 3 globinfo/jQuery.glob.en-US.js
  229. +1 1  globinfo/jQuery.glob.en-US.min.js
  230. +5 3 globinfo/jQuery.glob.en-ZA.js
  231. +1 1  globinfo/jQuery.glob.en-ZA.min.js
  232. +5 3 globinfo/jQuery.glob.en-ZW.js
  233. +1 1  globinfo/jQuery.glob.en-ZW.min.js
  234. +31 0 globinfo/jQuery.glob.en.js
  235. +1 0  globinfo/jQuery.glob.en.min.js
  236. +5 3 globinfo/jQuery.glob.es-AR.js
  237. +1 1  globinfo/jQuery.glob.es-AR.min.js
  238. +5 3 globinfo/jQuery.glob.es-BO.js
  239. +1 1  globinfo/jQuery.glob.es-BO.min.js
  240. +5 3 globinfo/jQuery.glob.es-CL.js
  241. +1 1  globinfo/jQuery.glob.es-CL.min.js
  242. +5 3 globinfo/jQuery.glob.es-CO.js
  243. +1 1  globinfo/jQuery.glob.es-CO.min.js
  244. +5 3 globinfo/jQuery.glob.es-CR.js
  245. +1 1  globinfo/jQuery.glob.es-CR.min.js
  246. +5 3 globinfo/jQuery.glob.es-DO.js
  247. +1 1  globinfo/jQuery.glob.es-DO.min.js
  248. +5 3 globinfo/jQuery.glob.es-EC.js
  249. +1 1  globinfo/jQuery.glob.es-EC.min.js
  250. +5 3 globinfo/jQuery.glob.es-ES.js
  251. +1 1  globinfo/jQuery.glob.es-ES.min.js
  252. +5 3 globinfo/jQuery.glob.es-GT.js
  253. +1 1  globinfo/jQuery.glob.es-GT.min.js
  254. +5 3 globinfo/jQuery.glob.es-HN.js
  255. +1 1  globinfo/jQuery.glob.es-HN.min.js
  256. +5 3 globinfo/jQuery.glob.es-MX.js
  257. +1 1  globinfo/jQuery.glob.es-MX.min.js
  258. +5 3 globinfo/jQuery.glob.es-NI.js
  259. +1 1  globinfo/jQuery.glob.es-NI.min.js
  260. +5 3 globinfo/jQuery.glob.es-PA.js
  261. +1 1  globinfo/jQuery.glob.es-PA.min.js
  262. +5 3 globinfo/jQuery.glob.es-PE.js
  263. +1 1  globinfo/jQuery.glob.es-PE.min.js
  264. +5 3 globinfo/jQuery.glob.es-PR.js
  265. +1 1  globinfo/jQuery.glob.es-PR.min.js
  266. +5 3 globinfo/jQuery.glob.es-PY.js
  267. +1 1  globinfo/jQuery.glob.es-PY.min.js
  268. +5 3 globinfo/jQuery.glob.es-SV.js
  269. +1 1  globinfo/jQuery.glob.es-SV.min.js
  270. +5 3 globinfo/jQuery.glob.es-US.js
  271. +1 1  globinfo/jQuery.glob.es-US.min.js
  272. +5 3 globinfo/jQuery.glob.es-UY.js
  273. +1 1  globinfo/jQuery.glob.es-UY.min.js
  274. +5 3 globinfo/jQuery.glob.es-VE.js
  275. +1 1  globinfo/jQuery.glob.es-VE.min.js
  276. +47 0 globinfo/jQuery.glob.es.js
  277. +1 0  globinfo/jQuery.glob.es.min.js
  278. +5 3 globinfo/jQuery.glob.et-EE.js
  279. +1 1  globinfo/jQuery.glob.et-EE.min.js
  280. +47 0 globinfo/jQuery.glob.et.js
  281. +1 0  globinfo/jQuery.glob.et.min.js
  282. +5 3 globinfo/jQuery.glob.eu-ES.js
  283. +1 1  globinfo/jQuery.glob.eu-ES.min.js
  284. +45 0 globinfo/jQuery.glob.eu.js
  285. +1 0  globinfo/jQuery.glob.eu.min.js
  286. +5 3 globinfo/jQuery.glob.fa-IR.js
  287. +1 1  globinfo/jQuery.glob.fa-IR.min.js
  288. +167 0 globinfo/jQuery.glob.fa.js
  289. +1 0  globinfo/jQuery.glob.fa.min.js
  290. +5 3 globinfo/jQuery.glob.fi-FI.js
  291. +1 1  globinfo/jQuery.glob.fi-FI.min.js
  292. +47 0 globinfo/jQuery.glob.fi.js
  293. +1 0  globinfo/jQuery.glob.fi.min.js
  294. +5 3 globinfo/jQuery.glob.fil-PH.js
  295. +1 1  globinfo/jQuery.glob.fil-PH.min.js
  296. +34 0 globinfo/jQuery.glob.fil.js
  297. +1 0  globinfo/jQuery.glob.fil.min.js
  298. +5 3 globinfo/jQuery.glob.fo-FO.js
  299. +1 1  globinfo/jQuery.glob.fo-FO.min.js
  300. +46 0 globinfo/jQuery.glob.fo.js
Sorry, we could not display the entire diff because too many files (771) changed.
95 demo-datepicker.css
... ... @@ -0,0 +1,95 @@
  1 +body {
  2 + font-family: Arial
  3 +}
  4 +a {
  5 + color: #6D929B;
  6 +}
  7 +input {
  8 + width: 100px;
  9 + margin: 5px;
  10 +}
  11 +.results {
  12 + border-collapse: collapse;
  13 +}
  14 +.results td {
  15 + border: 1px solid #C1DAD7;
  16 + padding: 2px 2px 2px 2px;
  17 + color: #6D929B;
  18 + font-size: x-small;
  19 + white-space: nowrap;
  20 + text-align: center;
  21 +}
  22 +.results th {
  23 + border: 1px solid #C1DAD7;
  24 + letter-spacing: 2px;
  25 + text-align: center;
  26 + padding: 6px 6px 6px 12px;
  27 + white-space: nowrap;
  28 +}
  29 +table {
  30 + width: 100%;
  31 +}
  32 +fieldset.info {
  33 + width: 45%;
  34 + float: left;
  35 +}
  36 +.info td {
  37 + font-size: x-small;
  38 +}
  39 +
  40 +.tab {
  41 + margin-top: 5px;
  42 + margin-right: 5px;
  43 + padding: 2px;
  44 + cursor: pointer;
  45 + background-color: #EEEEEE;
  46 +}
  47 +
  48 +.active {
  49 + border: 1px solid black;
  50 + float: left;
  51 +}
  52 +
  53 +.inactive {
  54 + float: left;
  55 +}
  56 +
  57 +.tab.active {
  58 + font-weight: bold;
  59 + border: 1px solid black;
  60 + float: left;
  61 +}
  62 +
  63 +div.inactive {
  64 + display: none;
  65 +}
  66 +
  67 +div.active {
  68 + clear: both;
  69 + min-width: 100%;
  70 +}
  71 +
  72 +.pane {
  73 + margin-top: 10px;
  74 + clear: both;
  75 +}
  76 +
  77 +#intro {
  78 + font-size: x-small;
  79 + margin-bottom: 10px;
  80 +}
  81 +
  82 +.demosection {
  83 + width: 800px
  84 +}
  85 +
  86 +.demo {
  87 + float: left;
  88 + min-height: 300px;
  89 + border: 1px solid #EFEFEF;
  90 + font-size: smaller;
  91 +}
  92 +.demo select
  93 +{
  94 + font-size: x-small;
  95 +}
131 demo-datepicker.html
... ... @@ -0,0 +1,131 @@
  1 +<!DOCTYPE html>
  2 +<html xmlns="http://www.w3.org/1999/xhtml">
  3 +<head>
  4 + <title>Globalization Demo</title>
  5 + <link type="text/css" rel="Stylesheet" href="demo-datepicker.css" />
  6 + <link type="text/css" rel="Stylesheet" href="jquery-ui-1.8.1.custom.css" />
  7 + <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
  8 + <script type="text/javascript" src="jquery.glob.js"></script>
  9 + <script type="text/javascript" src="globinfo/jquery.glob.all.js"></script>
  10 + <script type="text/javascript" src="jquery.ui.core.js"></script>
  11 + <script type="text/javascript" src="jquery.ui.datepicker.js"></script>
  12 +</head>
  13 +
  14 +<body>
  15 +<div id="intro">
  16 +This is a demo of the Globalization plugin being proposed by Microsoft. You can follow the discussion and provide feedback on the jQuery developer forum, here:
  17 +<br/><a href="">jQuery Discussion</a>
  18 +<br/>
  19 +And you can view the source from here or keep up to date with it on github, here:
  20 +<br/><a href="https://github.com/nje/jquery-glob/">jQuery Globalization on GitHub</a>
  21 +</div>
  22 +
  23 +
  24 +
  25 +
  26 +<script type="text/javascript">
  27 +function sortByName(map) {
  28 + // converts a dictionary into a sorted dictionary based on obj.name
  29 + var arr = [];
  30 + $.each(map, function(name, value) {
  31 + arr.push(value);
  32 + });
  33 + arr.sort(function(a, b) {
  34 + return a.name < b.name ? -1 : 1;
  35 + });
  36 + return arr;
  37 +}
  38 +var sortedCultures = sortByName($.cultures);
  39 +
  40 +$.fn.dateSample = function(culture) {
  41 + this.each(function() {
  42 + var thisCulture = culture || $(this).attr("data-culture");
  43 + var cultures = $(".cultures", this);
  44 + var formats = $(".formats", this);
  45 + var picker = $(".picker", this);
  46 + var selected = $(".selected", this);
  47 +
  48 + function createPicker() {
  49 + thisCulture = cultures.val();
  50 + picker.datepicker("destroy").datepicker({
  51 + culture: thisCulture,
  52 + changeMonth: true,
  53 + changeYear: true,
  54 + onSelect: function(dateText) {
  55 + selected.text(dateText);
  56 + }
  57 + });
  58 + selected.text("");
  59 +
  60 + formats.empty();
  61 + $.each($.cultures[thisCulture].calendar.patterns, function(name) {
  62 + $("<option/>", {
  63 + value: name,
  64 + text: $.cultures[thisCulture].calendar.patterns[name]
  65 + }).appendTo(formats);
  66 + });
  67 + formats.val("d");
  68 + }
  69 +
  70 + $.each(sortedCultures, function(i, culture) {
  71 + $("<option/>", {
  72 + value: culture.name,
  73 + text: culture.name + ": " + (culture.englishName || "Invariant")
  74 + }).appendTo(cultures);
  75 + });
  76 + cultures.val(thisCulture);
  77 + cultures.bind("change keyup", createPicker);
  78 +
  79 + formats.bind("change keyup", function() {
  80 + picker.datepicker("option", "dateFormat", $(this).val());
  81 + selected.text("");
  82 + });
  83 +
  84 + createPicker();
  85 + });
  86 +}
  87 +
  88 +$(function() {
  89 + $(".demo").dateSample();
  90 +});
  91 +
  92 +
  93 +</script>
  94 +
  95 +
  96 +<div class="demosection">
  97 +<div class="demo" data-culture="he">
  98 + <div class="picker"></div>
  99 +
  100 + <div>Date: <span class="selected"></span></div>
  101 + <div>Format: <select class="formats"></select></div>
  102 + <select class="cultures"></select>
  103 +</div>
  104 +
  105 +<div class="demo" data-culture="ar">
  106 + <div class="picker"></div>
  107 +
  108 + <div>Date: <span class="selected"></span></div>
  109 + <div>Format: <select class="formats"></select></div>
  110 + <select class="cultures"></select>
  111 +</div>
  112 +
  113 +<div class="demo" data-culture="es-MX">
  114 + <div class="picker"></div>
  115 +
  116 + <div>Date: <span class="selected"></span></div>
  117 + <div>Format: <select class="formats"></select></div>
  118 + <select class="cultures"></select>
  119 +</div>
  120 +
  121 +<div class="demo" data-culture="fr">
  122 + <div class="picker"></div>
  123 +
  124 + <div>Date: <span class="selected"></span></div>
  125 + <div>Format: <select class="formats"></select></div>
  126 + <select class="cultures"></select>
  127 +</div>
  128 +</div>
  129 +
  130 +</body>
  131 +</html>
5 demo.html
@@ -6,7 +6,7 @@
6 6 <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
7 7 <script type="text/javascript" src="jquery.tmpl.js"></script>
8 8 <script type="text/javascript" src="jquery.glob.js"></script>
9   - <script type="text/javascript" src="globinfo/jquery.glob.all.min.js"></script>
  9 + <script type="text/javascript" src="globinfo/jquery.glob.all.js"></script>
10 10 <script type="text/javascript" src="demo.js"></script>
11 11 <script id="formattmpl" type="text/html">
12 12 <tr>
@@ -143,7 +143,8 @@
143 143 <li>{{=}}</li>
144 144 {{/each}}
145 145 </ol>
146   - </td> </tr>
  146 + </td>
  147 + </tr>
147 148 <tr>
148 149 <td>Months</td>
149 150 <td colspan="3">
2  demo.js
... ... @@ -1,5 +1,4 @@
1 1 jQuery(function($) {
2   -
3 2 // setup sample data
4 3 window.numbers = [
5 4 0, 1, 10, 100, 1000, 10000, 0.1, 0.12, 0.123, 0.1234, 0.12345, 1000.123, 10000.12345,
@@ -108,6 +107,5 @@ jQuery(function($) {
108 107
109 108 // initial rendering
110 109 selectCulture();
111   -
112 110 });
113 111
41 generator/Program.cs
@@ -17,9 +17,11 @@ public class GlobalizationInfo {
17 17 public string name = "";
18 18 public string englishName;
19 19 public string nativeName;
  20 + public string language;
20 21 public bool isRTL;
21 22 public NumberFormatInfo numberFormat;
22 23 public Dictionary<String, DateFormatInfo> calendars;
  24 + private CultureInfo culture;
23 25 public static Dictionary<String, Object> InvariantGlobInfo;
24 26
25 27
@@ -31,6 +33,8 @@ public class GlobalizationInfo {
31 33
32 34 public static GlobalizationInfo GetGlobInfo(CultureInfo culture) {
33 35 var info = new GlobalizationInfo {
  36 + culture = culture,
  37 + language = (culture == CultureInfo.InvariantCulture || culture.IsNeutralCulture) ? culture.Name : culture.Parent.Name,
34 38 name = String.IsNullOrEmpty(culture.Name) ? "invariant" : culture.Name,
35 39 englishName = String.IsNullOrEmpty(culture.Name) ? "invariant" : culture.EnglishName,
36 40 nativeName = String.IsNullOrEmpty(culture.Name) ? "invariant" : culture.NativeName,
@@ -297,13 +301,13 @@ public class GlobalizationInfo {
297 301 return value < list.Length ? list[value] : null;
298 302 }
299 303
300   - public Dictionary<String, Object> ToDictionary(bool isInvariant) {
  304 + public Dictionary<String, Object> ToDictionary() {
301 305 var jss = new JavaScriptSerializer();
302 306 var str = jss.Serialize(this);
303 307 var dictionary = jss.Deserialize<Dictionary<String, Object>>(str);
304 308 var cals = (Dictionary<String, Object>) dictionary["calendars"];
305 309 Dictionary<String, Object> invariantStandardCal = null;
306   - if (!isInvariant) {
  310 + if (culture != CultureInfo.InvariantCulture) {
307 311 invariantStandardCal = (Dictionary<String, Object>)((Dictionary<String, Object>)GlobalizationInfo.InvariantGlobInfo["calendars"])["standard"];
308 312 foreach (var pair in this.calendars) {
309 313 var cal = (Dictionary<String, Object>)cals[pair.Key];
@@ -326,13 +330,13 @@ public class GlobalizationInfo {
326 330 }
327 331
328 332 public static string GenerateJavaScript(CultureInfo culture, string name, Dictionary<String, Object> dictionary, StringBuilder aggregateScript) {
329   - string cultureFragment = ToJavaScript(dictionary, 2, culture == CultureInfo.InvariantCulture, false);
  333 + string cultureFragment = ToJavaScript(culture, dictionary, 2, false);
330 334
331 335 if (aggregateScript != null) {
332 336 aggregateScript.AppendFormat(CultureInfo.InvariantCulture, @" culture = cultures[""{0}""] = $.extend(true, {{}}, invariant, {{
333 337 {1}
334 338 }}, cultures[""{0}""]);
335   - culture.calendar = culture.calendar || culture.calendars.standard;
  339 + culture.calendar = culture.calendars.standard;
336 340 ", name, cultureFragment);
337 341 }
338 342
@@ -343,11 +347,11 @@ public class GlobalizationInfo {
343 347 culture = cultures[""{0}""] = $.extend(true, {{}}, invariant, {{
344 348 {1}
345 349 }}, cultures[""{0}""]);
346   - culture.calendar = culture.calendar || culture.calendars.standard;
  350 + culture.calendar = culture.calendars.standard;
347 351 }})(jQuery);", name, cultureFragment);
348 352 }
349 353
350   - private static string ToJavaScript(Dictionary<String, Object> dictionary, int level, bool isInvariant, bool isCalendars) {
  354 + private static string ToJavaScript(CultureInfo culture, Dictionary<String, Object> dictionary, int level, bool isCalendars) {
351 355 StringBuilder sb = new StringBuilder();
352 356 string padding = _padding.Substring(0, level * 4);
353 357 bool first = true;
@@ -357,11 +361,11 @@ public class GlobalizationInfo {
357 361 }
358 362 first = false;
359 363 if (pair.Value is Dictionary<String, Object>) {
360   - if (!isInvariant && isCalendars) {
361   - sb.AppendFormat("{0}{1}: $.extend(true, {{}}, standard, {{\n{2}\n{0}}})", padding, pair.Key, ToJavaScript((Dictionary<String, Object>)pair.Value, level + 1, false, false));
  364 + if (culture != CultureInfo.InvariantCulture && isCalendars) {
  365 + sb.AppendFormat("{0}{1}: $.extend(true, {{}}, standard, {{\n{2}\n{0}}})", padding, pair.Key, ToJavaScript(culture, (Dictionary<String, Object>)pair.Value, level + 1, false));
362 366 }
363 367 else {
364   - sb.AppendFormat("{0}{1}: {{\n{2}\n{0}}}", padding, pair.Key, ToJavaScript((Dictionary<String, Object>)pair.Value, level + 1, isInvariant, pair.Key.Equals("calendars")));
  368 + sb.AppendFormat("{0}{1}: {{\n{2}\n{0}}}", padding, pair.Key, ToJavaScript(culture, (Dictionary<String, Object>)pair.Value, level + 1, pair.Key.Equals("calendars")));
365 369 }
366 370 }
367 371 else if (pair.Key.Equals("convert")) {
@@ -516,7 +520,7 @@ public class Program {
516 520
517 521 private static void WriteCulture(string outputdir, CultureInfo culture, StringBuilder aggregateScript) {
518 522 var globInfo = GlobalizationInfo.GetGlobInfo(culture);
519   - var diff = culture == CultureInfo.InvariantCulture ? globInfo.ToDictionary(true) : GlobalizationInfo.DiffGlobInfos(GlobalizationInfo.InvariantGlobInfo, globInfo.ToDictionary(false));
  523 + var diff = culture == CultureInfo.InvariantCulture ? globInfo.ToDictionary() : GlobalizationInfo.DiffGlobInfos(GlobalizationInfo.InvariantGlobInfo, globInfo.ToDictionary());
520 524 var script = GlobalizationInfo.GenerateJavaScript(culture, culture.Name, diff, aggregateScript);
521 525 var filePath = Path.Combine(outputdir, "jQuery.glob." + (String.IsNullOrEmpty(culture.Name) ? "invariant" : culture.Name) + ".js");
522 526
@@ -533,23 +537,30 @@ public class Program {
533 537 static void Main(string[] args) {
534 538 string outputdir = args.Length > 0 ? args[0] : "output";
535 539 Directory.CreateDirectory(outputdir);
536   - GlobalizationInfo.InvariantGlobInfo = GlobalizationInfo.GetGlobInfo(CultureInfo.InvariantCulture).ToDictionary(true);
  540 + GlobalizationInfo.InvariantGlobInfo = GlobalizationInfo.GetGlobInfo(CultureInfo.InvariantCulture).ToDictionary();
537 541
538 542 StringBuilder aggregateScript = new StringBuilder();
539   - aggregateScript.Append("(function($) {\n var culture, cultures = $.cultures,\n invariant = cultures.invariant,\n standard = invariant.calendars.standard;\n\n");
  543 + aggregateScript.Append(
  544 +@"(function($) {
  545 + var culture, cultures = $.cultures,
  546 + invariant = cultures.invariant,
  547 + standard = invariant.calendars.standard;
  548 +
  549 +");
540 550
541 551 WriteCulture(outputdir, CultureInfo.InvariantCulture, null);
542 552
543 553 int count = 0;
544 554 foreach (var culture in CultureInfo.GetCultures(CultureTypes.AllCultures)) {
545   - if (!culture.IsNeutralCulture && !String.IsNullOrEmpty(culture.Name) && culture != CultureInfo.InvariantCulture) {
  555 + if (!String.IsNullOrEmpty(culture.Name) && culture != CultureInfo.InvariantCulture) {
546 556 WriteCulture(outputdir, culture, aggregateScript);
547 557 count++;
548 558 }
549 559 }
550 560
  561 + aggregateScript.Append(@"
551 562
552   - aggregateScript.Append("\n\n})(jQuery);");
  563 +})(jQuery);");
553 564 string aggregateScriptString = aggregateScript.ToString();
554 565 string aggregatePath = Path.Combine(outputdir, "jQuery.glob.all.js");
555 566 File.WriteAllText(aggregatePath, aggregateScriptString);
@@ -560,6 +571,8 @@ public class Program {
560 571 File.WriteAllText(minPath, minScript);
561 572 Console.WriteLine(minPath);
562 573
  574 + // generate the
  575 +
563 576 Console.WriteLine("Done! Generated scripts for a total of {0} cultures, and 1 aggregate script.", count);
564 577 }
565 578 }
56 generator/glob-generator.csproj
@@ -49,7 +49,6 @@
49 49 <Reference Include="System.Xml.Linq" />
50 50 </ItemGroup>
51 51 <ItemGroup>
52   - <Compile Include="class.cs" />
53 52 <Compile Include="Program.cs" />
54 53 <Compile Include="Properties\AssemblyInfo.cs" />
55 54 </ItemGroup>
@@ -60,6 +59,61 @@
60 59 <ItemGroup>
61 60 <Folder Include="datepicker\" />
62 61 </ItemGroup>
  62 + <ItemGroup>
  63 + <Content Include="jQueryUI\jquery.ui.datepicker-af.js" />
  64 + <Content Include="jQueryUI\jquery.ui.datepicker-ar.js" />
  65 + <Content Include="jQueryUI\jquery.ui.datepicker-az.js" />
  66 + <Content Include="jQueryUI\jquery.ui.datepicker-bg.js" />
  67 + <Content Include="jQueryUI\jquery.ui.datepicker-bs.js" />
  68 + <Content Include="jQueryUI\jquery.ui.datepicker-ca.js" />
  69 + <Content Include="jQueryUI\jquery.ui.datepicker-cs.js" />
  70 + <Content Include="jQueryUI\jquery.ui.datepicker-da.js" />
  71 + <Content Include="jQueryUI\jquery.ui.datepicker-de.js" />
  72 + <Content Include="jQueryUI\jquery.ui.datepicker-el.js" />
  73 + <Content Include="jQueryUI\jquery.ui.datepicker-en-GB.js" />
  74 + <Content Include="jQueryUI\jquery.ui.datepicker-eo.js" />
  75 + <Content Include="jQueryUI\jquery.ui.datepicker-es.js" />
  76 + <Content Include="jQueryUI\jquery.ui.datepicker-et.js" />
  77 + <Content Include="jQueryUI\jquery.ui.datepicker-eu.js" />
  78 + <Content Include="jQueryUI\jquery.ui.datepicker-fa.js" />
  79 + <Content Include="jQueryUI\jquery.ui.datepicker-fi.js" />
  80 + <Content Include="jQueryUI\jquery.ui.datepicker-fo.js" />
  81 + <Content Include="jQueryUI\jquery.ui.datepicker-fr-CH.js" />
  82 + <Content Include="jQueryUI\jquery.ui.datepicker-fr.js" />
  83 + <Content Include="jQueryUI\jquery.ui.datepicker-he.js" />
  84 + <Content Include="jQueryUI\jquery.ui.datepicker-hr.js" />
  85 + <Content Include="jQueryUI\jquery.ui.datepicker-hu.js" />
  86 + <Content Include="jQueryUI\jquery.ui.datepicker-hy.js" />
  87 + <Content Include="jQueryUI\jquery.ui.datepicker-id.js" />
  88 + <Content Include="jQueryUI\jquery.ui.datepicker-is.js" />
  89 + <Content Include="jQueryUI\jquery.ui.datepicker-it.js" />
  90 + <Content Include="jQueryUI\jquery.ui.datepicker-ja.js" />
  91 + <Content Include="jQueryUI\jquery.ui.datepicker-ko.js" />
  92 + <Content Include="jQueryUI\jquery.ui.datepicker-lt.js" />
  93 + <Content Include="jQueryUI\jquery.ui.datepicker-lv.js" />
  94 + <Content Include="jQueryUI\jquery.ui.datepicker-ms.js" />
  95 + <Content Include="jQueryUI\jquery.ui.datepicker-nl.js" />
  96 + <Content Include="jQueryUI\jquery.ui.datepicker-no.js" />
  97 + <Content Include="jQueryUI\jquery.ui.datepicker-pl.js" />
  98 + <Content Include="jQueryUI\jquery.ui.datepicker-pt-BR.js" />
  99 + <Content Include="jQueryUI\jquery.ui.datepicker-ro.js" />
  100 + <Content Include="jQueryUI\jquery.ui.datepicker-ru.js" />
  101 + <Content Include="jQueryUI\jquery.ui.datepicker-sk.js" />
  102 + <Content Include="jQueryUI\jquery.ui.datepicker-sl.js" />
  103 + <Content Include="jQueryUI\jquery.ui.datepicker-sq.js" />
  104 + <Content Include="jQueryUI\jquery.ui.datepicker-sr-SR.js" />
  105 + <Content Include="jQueryUI\jquery.ui.datepicker-sr.js" />
  106 + <Content Include="jQueryUI\jquery.ui.datepicker-sv.js" />
  107 + <Content Include="jQueryUI\jquery.ui.datepicker-ta.js" />
  108 + <Content Include="jQueryUI\jquery.ui.datepicker-th.js" />
  109 + <Content Include="jQueryUI\jquery.ui.datepicker-tr.js" />
  110 + <Content Include="jQueryUI\jquery.ui.datepicker-uk.js" />
  111 + <Content Include="jQueryUI\jquery.ui.datepicker-vi.js" />
  112 + <Content Include="jQueryUI\jquery.ui.datepicker-zh-CN.js" />
  113 + <Content Include="jQueryUI\jquery.ui.datepicker-zh-HK.js" />
  114 + <Content Include="jQueryUI\jquery.ui.datepicker-zh-TW.js" />
  115 + <Content Include="jQueryUI\jQueryDatePickerGlob.html" />
  116 + </ItemGroup>
63 117 <Import Project="$(MSBuildToolsPath)\Microsoft.CSHARP.Targets" />
64 118 <ProjectExtensions>
65 119 <VisualStudio AllowExistingFolder="true" />
138 generator/jQueryUI/jQueryDatePickerGlob.html
... ... @@ -0,0 +1,138 @@
  1 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2 +<html>
  3 + <head>
  4 + <title></title>
  5 + <script type="text/javascript" src="http://code.jquery.com/jquery.js"></script>
  6 + <script type="text/javascript">
  7 + jQuery.datepicker = {
  8 + regional: {
  9 + '': { // Default regional settings
  10 + closeText: 'Done', // Display text for close link
  11 + prevText: 'Prev', // Display text for previous month link
  12 + nextText: 'Next', // Display text for next month link
  13 + currentText: 'Today', // Display text for current month link
  14 + monthNames: ['January','February','March','April','May','June',
  15 + 'July','August','September','October','November','December'], // Names of months for drop-down and formatting
  16 + monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], // For formatting
  17 + dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], // For formatting
  18 + dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], // For formatting
  19 + dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'], // Column headings for days starting at Sunday
  20 + weekHeader: 'Wk', // Column header for week of the year
  21 + dateFormat: 'mm/dd/yy', // See format options on parseDate
  22 + firstDay: 0, // The first day of the week, Sun = 0, Mon = 1, ...
  23 + isRTL: false, // True if right-to-left language, false if left-to-right
  24 + showMonthAfterYear: false, // True if the year select precedes month, false for month then year
  25 + yearSuffix: '' // Additional text to append to the year in the month headers
  26 + }
  27 + },
  28 + // no op
  29 + setDefaults: function() { }
  30 + };
  31 + </script>
  32 + <script src="../../jquery.glob.js" type="text/javascript"></script>
  33 + <script src="../../globinfo/jquery.glob.all.min.js" type="text/javascript"></script>
  34 + <script src="jquery.ui.datepicker-af.js" type="text/javascript"></script>
  35 + <script src="jquery.ui.datepicker-zh-TW.js" type="text/javascript"></script>
  36 + <script src="jquery.ui.datepicker-ar.js" type="text/javascript"></script>
  37 + <script src="jquery.ui.datepicker-az.js" type="text/javascript"></script>
  38 + <script src="jquery.ui.datepicker-bg.js" type="text/javascript"></script>
  39 + <script src="jquery.ui.datepicker-bs.js" type="text/javascript"></script>
  40 + <script src="jquery.ui.datepicker-ca.js" type="text/javascript"></script>
  41 + <script src="jquery.ui.datepicker-cs.js" type="text/javascript"></script>
  42 + <script src="jquery.ui.datepicker-da.js" type="text/javascript"></script>
  43 + <script src="jquery.ui.datepicker-de.js" type="text/javascript"></script>
  44 + <script src="jquery.ui.datepicker-el.js" type="text/javascript"></script>
  45 + <script src="jquery.ui.datepicker-en-GB.js" type="text/javascript"></script>
  46 + <script src="jquery.ui.datepicker-eo.js" type="text/javascript"></script>
  47 + <script src="jquery.ui.datepicker-es.js" type="text/javascript"></script>
  48 + <script src="jquery.ui.datepicker-et.js" type="text/javascript"></script>
  49 + <script src="jquery.ui.datepicker-eu.js" type="text/javascript"></script>
  50 + <script src="jquery.ui.datepicker-fa.js" type="text/javascript"></script>
  51 + <script src="jquery.ui.datepicker-fi.js" type="text/javascript"></script>
  52 + <script src="jquery.ui.datepicker-fo.js" type="text/javascript"></script>
  53 + <script src="jquery.ui.datepicker-fr-CH.js" type="text/javascript"></script>
  54 + <script src="jquery.ui.datepicker-fr.js" type="text/javascript"></script>
  55 + <script src="jquery.ui.datepicker-he.js" type="text/javascript"></script>
  56 + <script src="jquery.ui.datepicker-hr.js" type="text/javascript"></script>
  57 + <script src="jquery.ui.datepicker-hu.js" type="text/javascript"></script>
  58 + <script src="jquery.ui.datepicker-hy.js" type="text/javascript"></script>
  59 + <script src="jquery.ui.datepicker-id.js" type="text/javascript"></script>
  60 + <script src="jquery.ui.datepicker-is.js" type="text/javascript"></script>
  61 + <script src="jquery.ui.datepicker-it.js" type="text/javascript"></script>
  62 + <script src="jquery.ui.datepicker-ja.js" type="text/javascript"></script>
  63 + <script src="jquery.ui.datepicker-ko.js" type="text/javascript"></script>
  64 + <script src="jquery.ui.datepicker-lt.js" type="text/javascript"></script>
  65 + <script src="jquery.ui.datepicker-lv.js" type="text/javascript"></script>
  66 + <script src="jquery.ui.datepicker-ms.js" type="text/javascript"></script>
  67 + <script src="jquery.ui.datepicker-nl.js" type="text/javascript"></script>
  68 + <script src="jquery.ui.datepicker-no.js" type="text/javascript"></script>
  69 + <script src="jquery.ui.datepicker-pl.js" type="text/javascript"></script>
  70 + <script src="jquery.ui.datepicker-pt-BR.js" type="text/javascript"></script>
  71 + <script src="jquery.ui.datepicker-ro.js" type="text/javascript"></script>
  72 + <script src="jquery.ui.datepicker-ru.js" type="text/javascript"></script>
  73 + <script src="jquery.ui.datepicker-sk.js" type="text/javascript"></script>
  74 + <script src="jquery.ui.datepicker-sl.js" type="text/javascript"></script>
  75 + <script src="jquery.ui.datepicker-sq.js" type="text/javascript"></script>
  76 + <script src="jquery.ui.datepicker-sr-SR.js" type="text/javascript"></script>
  77 + <script src="jquery.ui.datepicker-sr.js" type="text/javascript"></script>
  78 + <script src="jquery.ui.datepicker-sv.js" type="text/javascript"></script>
  79 + <script src="jquery.ui.datepicker-ta.js" type="text/javascript"></script>
  80 + <script src="jquery.ui.datepicker-th.js" type="text/javascript"></script>
  81 + <script src="jquery.ui.datepicker-tr.js" type="text/javascript"></script>
  82 + <script src="jquery.ui.datepicker-uk.js" type="text/javascript"></script>
  83 + <script src="jquery.ui.datepicker-vi.js" type="text/javascript"></script>
  84 + <script src="jquery.ui.datepicker-zh-CN.js" type="text/javascript"></script>
  85 + <script src="jquery.ui.datepicker-zh-HK.js" type="text/javascript"></script>
  86 + </head>
  87 + <body>
  88 + <textarea id="results" rows="15" cols="40">
  89 + </textarea>
  90 + </body>
  91 + <script type="text/javascript">
  92 + //<![CDATA[
  93 + function convertFormat(name, format) {
  94 + format = format
  95 + .replace(/DD/g, "dddd")
  96 + .replace(/D/g, "ddd")
  97 + .replace(/m/g, "#")
  98 + .replace(/MM/g, "####")
  99 + .replace(/M/g, "###")
  100 + .replace(/\#/g, "M")
  101 + .replace(/y/g, "yy");
  102 + var culture = $.cultures[name];
  103 + if (!culture) {
  104 + alert('unknown culture: ' + name);
  105 + }
  106 + return (culture ? "d" : format);
  107 + }
  108 +
  109 + $(function() {
  110 + var count = 0;
  111 + var regionData = {};
  112 + $.each($.datepicker.regional, function(name, value) {
  113 + name = name || "invariant";
  114 + regionData[name] = {
  115 + closeText: value.closeText,
  116 + prevText: value.prevText,
  117 + nextText: value.nextText,
  118 + currentText: value.currentText,
  119 + weekHeader: value.weekHeader,
  120 + dateFormat: convertFormat(name, value.dateFormat)
  121 + }
  122 + count++;
  123 + });
  124 +
  125 + var script = "(function($) {\n\n\
  126 +var regions = " + JSON.stringify(regionData, null, 4) + ";\n\
  127 +$.each(regions, function(name, value) {\n\
  128 + $.localize('datepicker', name, value);\n\
  129 +});\n\
  130 +\n\
  131 +})(jQuery);";
  132 + $("#results").val(script);
  133 + alert(count + " regional data processed.");
  134 + });
  135 +
  136 + //]]>
  137 + </script>
  138 +</html>
23 generator/jQueryUI/jquery.ui.datepicker-af.js
... ... @@ -0,0 +1,23 @@
  1 +/* Afrikaans initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Renier Pretorius. */
  3 +jQuery(function($){
  4 + $.datepicker.regional['af'] = {
  5 + closeText: 'Selekteer',
  6 + prevText: 'Vorige',
  7 + nextText: 'Volgende',
  8 + currentText: 'Vandag',
  9 + monthNames: ['Januarie','Februarie','Maart','April','Mei','Junie',
  10 + 'Julie','Augustus','September','Oktober','November','Desember'],
  11 + monthNamesShort: ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun',
  12 + 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
  13 + dayNames: ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
  14 + dayNamesShort: ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'],
  15 + dayNamesMin: ['So','Ma','Di','Wo','Do','Vr','Sa'],
  16 + weekHeader: 'Wk',
  17 + dateFormat: 'dd/mm/yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['af']);
  23 +});
24 generator/jQueryUI/jquery.ui.datepicker-ar.js
... ... @@ -0,0 +1,24 @@
  1 +/* Arabic Translation for jQuery UI date picker plugin. */
  2 +/* Khaled Al Horani -- koko.dw@gmail.com */
  3 +/* خالد الحوراني -- koko.dw@gmail.com */
  4 +/* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */
  5 +jQuery(function($){
  6 + $.datepicker.regional['ar'] = {
  7 + closeText: 'إغلاق',
  8 + prevText: '&#x3c;السابق',
  9 + nextText: 'التالي&#x3e;',
  10 + currentText: 'اليوم',
  11 + monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'آذار', 'حزيران',
  12 + 'تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'],
  13 + monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'],
  14 + dayNames: ['السبت', 'الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة'],
  15 + dayNamesShort: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'],
  16 + dayNamesMin: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'],
  17 + weekHeader: 'أسبوع',
  18 + dateFormat: 'dd/mm/yy',
  19 + firstDay: 0,
  20 + isRTL: true,
  21 + showMonthAfterYear: false,
  22 + yearSuffix: ''};
  23 + $.datepicker.setDefaults($.datepicker.regional['ar']);
  24 +});
23 generator/jQueryUI/jquery.ui.datepicker-az.js
... ... @@ -0,0 +1,23 @@
  1 +/* Azerbaijani (UTF-8) initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Jamil Najafov (necefov33@gmail.com). */
  3 +jQuery(function($) {
  4 + $.datepicker.regional['az'] = {
  5 + closeText: 'Bağla',
  6 + prevText: '&#x3c;Geri',
  7 + nextText: 'İrəli&#x3e;',
  8 + currentText: 'Bugün',
  9 + monthNames: ['Yanvar','Fevral','Mart','Aprel','May','İyun',
  10 + 'İyul','Avqust','Sentyabr','Oktyabr','Noyabr','Dekabr'],
  11 + monthNamesShort: ['Yan','Fev','Mar','Apr','May','İyun',
  12 + 'İyul','Avq','Sen','Okt','Noy','Dek'],
  13 + dayNames: ['Bazar','Bazar ertəsi','Çərşənbə axşamı','Çərşənbə','Cümə axşamı','Cümə','Şənbə'],
  14 + dayNamesShort: ['B','Be','Ça','Ç','Ca','C','Ş'],
  15 + dayNamesMin: ['B','B','Ç','С','Ç','C','Ş'],
  16 + weekHeader: 'Hf',
  17 + dateFormat: 'dd.mm.yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['az']);
  23 +});
24 generator/jQueryUI/jquery.ui.datepicker-bg.js
... ... @@ -0,0 +1,24 @@
  1 +/* Bulgarian initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Stoyan Kyosev (http://svest.org). */
  3 +jQuery(function($){
  4 + $.datepicker.regional['bg'] = {
  5 + closeText: 'затвори',
  6 + prevText: '&#x3c;назад',
  7 + nextText: 'напред&#x3e;',
  8 + nextBigText: '&#x3e;&#x3e;',
  9 + currentText: 'днес',
  10 + monthNames: ['Януари','Февруари','Март','Април','Май','Юни',
  11 + 'Юли','Август','Септември','Октомври','Ноември','Декември'],
  12 + monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни',
  13 + 'Юли','Авг','Сеп','Окт','Нов','Дек'],
  14 + dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'],
  15 + dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'],
  16 + dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'],
  17 + weekHeader: 'Wk',
  18 + dateFormat: 'dd.mm.yy',
  19 + firstDay: 1,
  20 + isRTL: false,
  21 + showMonthAfterYear: false,
  22 + yearSuffix: ''};
  23 + $.datepicker.setDefaults($.datepicker.regional['bg']);
  24 +});
23 generator/jQueryUI/jquery.ui.datepicker-bs.js
... ... @@ -0,0 +1,23 @@
  1 +/* Bosnian i18n for the jQuery UI date picker plugin. */
  2 +/* Written by Kenan Konjo. */
  3 +jQuery(function($){
  4 + $.datepicker.regional['bs'] = {
  5 + closeText: 'Zatvori',
  6 + prevText: '&#x3c;',
  7 + nextText: '&#x3e;',
  8 + currentText: 'Danas',
  9 + monthNames: ['Januar','Februar','Mart','April','Maj','Juni',
  10 + 'Juli','August','Septembar','Oktobar','Novembar','Decembar'],
  11 + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
  12 + 'Jul','Aug','Sep','Okt','Nov','Dec'],
  13 + dayNames: ['Nedelja','Ponedeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'],
  14 + dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'],
  15 + dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'],
  16 + weekHeader: 'Wk',
  17 + dateFormat: 'dd.mm.yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['bs']);
  23 +});
23 generator/jQueryUI/jquery.ui.datepicker-ca.js
... ... @@ -0,0 +1,23 @@
  1 +/* Inicialització en català per a l'extenció 'calendar' per jQuery. */
  2 +/* Writers: (joan.leon@gmail.com). */
  3 +jQuery(function($){
  4 + $.datepicker.regional['ca'] = {
  5 + closeText: 'Tancar',
  6 + prevText: '&#x3c;Ant',
  7 + nextText: 'Seg&#x3e;',
  8 + currentText: 'Avui',
  9 + monthNames: ['Gener','Febrer','Mar&ccedil;','Abril','Maig','Juny',
  10 + 'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'],
  11 + monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun',
  12 + 'Jul','Ago','Set','Oct','Nov','Des'],
  13 + dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'],
  14 + dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'],
  15 + dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'],
  16 + weekHeader: 'Sm',
  17 + dateFormat: 'dd/mm/yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['ca']);
  23 +});
23 generator/jQueryUI/jquery.ui.datepicker-cs.js
... ... @@ -0,0 +1,23 @@
  1 +/* Czech initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Tomas Muller (tomas@tomas-muller.net). */
  3 +jQuery(function($){
  4 + $.datepicker.regional['cs'] = {
  5 + closeText: 'Zavřít',
  6 + prevText: '&#x3c;Dříve',
  7 + nextText: 'Později&#x3e;',
  8 + currentText: 'Nyní',
  9 + monthNames: ['leden','únor','březen','duben','květen','červen',
  10 + 'červenec','srpen','září','říjen','listopad','prosinec'],
  11 + monthNamesShort: ['led','úno','bře','dub','kvě','čer',
  12 + 'čvc','srp','zář','říj','lis','pro'],
  13 + dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'],
  14 + dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'],
  15 + dayNamesMin: ['ne','po','út','st','čt','pá','so'],
  16 + weekHeader: 'Týd',
  17 + dateFormat: 'dd.mm.yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['cs']);
  23 +});
23 generator/jQueryUI/jquery.ui.datepicker-da.js
... ... @@ -0,0 +1,23 @@
  1 +/* Danish initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Jan Christensen ( deletestuff@gmail.com). */
  3 +jQuery(function($){
  4 + $.datepicker.regional['da'] = {
  5 + closeText: 'Luk',
  6 + prevText: '&#x3c;Forrige',
  7 + nextText: 'Næste&#x3e;',
  8 + currentText: 'Idag',
  9 + monthNames: ['Januar','Februar','Marts','April','Maj','Juni',
  10 + 'Juli','August','September','Oktober','November','December'],
  11 + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
  12 + 'Jul','Aug','Sep','Okt','Nov','Dec'],
  13 + dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'],
  14 + dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'],
  15 + dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'],
  16 + weekHeader: 'Uge',
  17 + dateFormat: 'dd-mm-yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['da']);
  23 +});
23 generator/jQueryUI/jquery.ui.datepicker-de.js
... ... @@ -0,0 +1,23 @@
  1 +/* German initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Milian Wolff (mail@milianw.de). */
  3 +jQuery(function($){
  4 + $.datepicker.regional['de'] = {
  5 + closeText: 'schließen',
  6 + prevText: '&#x3c;zurück',
  7 + nextText: 'Vor&#x3e;',
  8 + currentText: 'heute',
  9 + monthNames: ['Januar','Februar','März','April','Mai','Juni',
  10 + 'Juli','August','September','Oktober','November','Dezember'],
  11 + monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun',
  12 + 'Jul','Aug','Sep','Okt','Nov','Dez'],
  13 + dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
  14 + dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
  15 + dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
  16 + weekHeader: 'Wo',
  17 + dateFormat: 'dd.mm.yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['de']);
  23 +});
23 generator/jQueryUI/jquery.ui.datepicker-el.js
... ... @@ -0,0 +1,23 @@
  1 +/* Greek (el) initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Alex Cicovic (http://www.alexcicovic.com) */
  3 +jQuery(function($){
  4 + $.datepicker.regional['el'] = {
  5 + closeText: 'Κλείσιμο',
  6 + prevText: 'Προηγούμενος',
  7 + nextText: 'Επόμενος',
  8 + currentText: 'Τρέχων Μήνας',
  9 + monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος',
  10 + 'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'],
  11 + monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν',
  12 + 'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'],
  13 + dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'],
  14 + dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'],
  15 + dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'],
  16 + weekHeader: 'Εβδ',
  17 + dateFormat: 'dd/mm/yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['el']);
  23 +});
23 generator/jQueryUI/jquery.ui.datepicker-en-GB.js
... ... @@ -0,0 +1,23 @@
  1 +/* English/UK initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Stuart. */
  3 +jQuery(function($){
  4 + $.datepicker.regional['en-GB'] = {
  5 + closeText: 'Done',
  6 + prevText: 'Prev',
  7 + nextText: 'Next',
  8 + currentText: 'Today',
  9 + monthNames: ['January','February','March','April','May','June',
  10 + 'July','August','September','October','November','December'],
  11 + monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
  12 + 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
  13 + dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
  14 + dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
  15 + dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
  16 + weekHeader: 'Wk',
  17 + dateFormat: 'dd/mm/yy',
  18 + firstDay: 1,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['en-GB']);
  23 +});
23 generator/jQueryUI/jquery.ui.datepicker-eo.js
... ... @@ -0,0 +1,23 @@
  1 +/* Esperanto initialisation for the jQuery UI date picker plugin. */
  2 +/* Written by Olivier M. (olivierweb@ifrance.com). */
  3 +jQuery(function($){
  4 + $.datepicker.regional['eo'] = {
  5 + closeText: 'Fermi',
  6 + prevText: '&lt;Anta',
  7 + nextText: 'Sekv&gt;',
  8 + currentText: 'Nuna',
  9 + monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio',
  10 + 'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'],
  11 + monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun',
  12 + 'Jul','Aŭg','Sep','Okt','Nov','Dec'],
  13 + dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'],
  14 + dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'],
  15 + dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'],
  16 + weekHeader: 'Sb',
  17 + dateFormat: 'dd/mm/yy',
  18 + firstDay: 0,
  19 + isRTL: false,
  20 + showMonthAfterYear: false,
  21 + yearSuffix: ''};
  22 + $.datepicker.setDefaults($.datepicker.regional['eo']);
  23 +});
23 generator/jQueryUI/jquery.ui.datepicker-es.js
... ... @@ -0,0 +1,23 @@
  1 +/* Inicialización en español para la extensión 'UI date picker' para jQuery. */
  2 +/* Traducido por Vester (xvester@gmail.com). */
  3 +jQuery(function($){
  4 + $.datepicker.regional['es'] = {
  5 + closeText: 'Cerrar',