Browse files

[tizen] Add samples and templates

  • Loading branch information...
1 parent def7a4d commit f98b376acc94234bbb60cb8ba9661ff14595747d Christophe Guiraud committed Aug 2, 2012
Showing with 33,703 additions and 3 deletions.
  1. +12 −0 LICENSE
  2. +5 −0 NOTICE
  3. +76 −3 README.md
  4. +1 −0 VERSION
  5. +48 −0 samples/cordova-basic/.project
  6. +19 −0 samples/cordova-basic/config.xml
  7. +6,957 −0 samples/cordova-basic/cordova-2.0.0.js
  8. +120 −0 samples/cordova-basic/css/style.css
  9. BIN samples/cordova-basic/icon.png
  10. BIN samples/cordova-basic/images/ic_cordova_32.png
  11. +57 −0 samples/cordova-basic/index.html
  12. +25 −0 samples/cordova-basic/js/main.js
  13. BIN samples/cordova-basic/sounds/beep.wav
  14. +48 −0 samples/cordova-tizen-web-ui/.project
  15. +19 −0 samples/cordova-tizen-web-ui/config.xml
  16. +6,957 −0 samples/cordova-tizen-web-ui/cordova-2.0.0.js
  17. +2 −0 samples/cordova-tizen-web-ui/css/style.css
  18. BIN samples/cordova-tizen-web-ui/icon.png
  19. +57 −0 samples/cordova-tizen-web-ui/index.html
  20. +27 −0 samples/cordova-tizen-web-ui/js/main.js
  21. BIN samples/cordova-tizen-web-ui/sounds/beep.wav
  22. +67 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.af-ZA.js
  23. +67 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.af.js
  24. +74 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.am-ET.js
  25. +74 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.am.js
  26. +457 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-AE.js
  27. +462 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-BH.js
  28. +458 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-DZ.js
  29. +484 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-EG.js
  30. +457 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-IQ.js
  31. +462 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-JO.js
  32. +462 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-KW.js
  33. +457 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-LB.js
  34. +462 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-LY.js
  35. +458 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-MA.js
  36. +458 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-OM.js
  37. +457 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-QA.js
  38. +457 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-SA.js
  39. +457 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-SY.js
  40. +463 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-TN.js
  41. +457 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-YE.js
  42. +457 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar.js
  43. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.arn-CL.js
  44. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.arn.js
  45. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.as-IN.js
  46. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.as.js
  47. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.az-Cyrl-AZ.js
  48. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.az-Cyrl.js
  49. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.az-Latn-AZ.js
  50. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.az-Latn.js
  51. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.az.js
  52. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ba-RU.js
  53. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ba.js
  54. +80 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.be-BY.js
  55. +80 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.be.js
  56. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bg-BG.js
  57. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bg.js
  58. +74 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bn-BD.js
  59. +74 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bn-IN.js
  60. +74 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bn.js
  61. +77 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bo-CN.js
  62. +77 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bo.js
  63. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.br-FR.js
  64. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.br.js
  65. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bs-Cyrl-BA.js
  66. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bs-Cyrl.js
  67. +76 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bs-Latn-BA.js
  68. +76 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bs-Latn.js
  69. +76 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.bs.js
  70. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ca-ES.js
  71. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ca.js
  72. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.co-FR.js
  73. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.co.js
  74. +85 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.cs-CZ.js
  75. +85 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.cs.js
  76. +70 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.cy-GB.js
  77. +70 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.cy.js
  78. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.da-DK.js
  79. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.da.js
  80. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.de-AT.js
  81. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.de-CH.js
  82. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.de-DE.js
  83. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.de-LI.js
  84. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.de-LU.js
  85. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.de.js
  86. +84 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.dsb-DE.js
  87. +84 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.dsb.js
  88. +164 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.dv-MV.js
  89. +164 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.dv.js
  90. +82 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.el-GR.js
  91. +82 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.el.js
  92. +47 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-029.js
  93. +52 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-AU.js
  94. +54 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-BZ.js
  95. +49 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-CA.js
  96. +55 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-GB.js
  97. +57 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-IE.js
  98. +60 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-IN.js
  99. +51 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-JM.js
  100. +56 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-MY.js
  101. +54 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-NZ.js
  102. +39 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-PH.js
  103. +53 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-SG.js
  104. +54 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-TT.js
  105. +33 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-US.js
  106. +61 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-ZA.js
  107. +39 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.en-ZW.js
  108. +77 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-AR.js
  109. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-BO.js
  110. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-CL.js
  111. +77 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-CO.js
  112. +77 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-CR.js
  113. +69 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-DO.js
  114. +77 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-EC.js
  115. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-ES.js
  116. +69 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-GT.js
  117. +71 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-HN.js
  118. +69 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-MX.js
  119. +71 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-NI.js
  120. +70 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-PA.js
  121. +70 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-PE.js
  122. +70 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-PR.js
  123. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-PY.js
  124. +69 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-SV.js
  125. +62 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-US.js
  126. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-UY.js
  127. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es-VE.js
  128. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.es.js
  129. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.et-EE.js
  130. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.et.js
  131. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.eu-ES.js
  132. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.eu.js
  133. +213 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fa-IR.js
  134. +213 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fa.js
  135. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fi-FI.js
  136. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fi.js
  137. +54 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fil-PH.js
  138. +54 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fil.js
  139. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fo-FO.js
  140. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fo.js
  141. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fr-BE.js
  142. +77 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fr-CA.js
  143. +77 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fr-CH.js
  144. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fr-FR.js
  145. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fr-LU.js
  146. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fr-MC.js
  147. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fr.js
  148. +76 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fy-NL.js
  149. +76 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.fy.js
  150. +67 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ga-IE.js
  151. +67 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ga.js
  152. +69 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.gd-GB.js
  153. +69 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.gd.js
  154. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.gl-ES.js
  155. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.gl.js
  156. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.gsw-FR.js
  157. +79 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.gsw.js
  158. +72 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.gu-IN.js
  159. +72 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.gu.js
  160. +60 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ha-Latn-NG.js
  161. +60 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ha-Latn.js
  162. +60 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ha.js
  163. +97 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.he-IL.js
  164. +97 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.he.js
  165. +72 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hi-IN.js
  166. +72 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hi.js
  167. +80 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hr-BA.js
  168. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hr-HR.js
  169. +81 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hr.js
  170. +84 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hsb-DE.js
  171. +84 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hsb.js
  172. +80 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hu-HU.js
  173. +80 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hu.js
  174. +67 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hy-AM.js
  175. +67 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.hy.js
  176. +75 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.id-ID.js
  177. +75 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.id.js
  178. +60 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ig-NG.js
  179. +60 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ig.js
  180. +76 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ii-CN.js
  181. +76 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ii.js
  182. +80 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.is-IS.js
  183. +80 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.is.js
  184. +78 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.it-CH.js
  185. +80 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.it-IT.js
  186. +80 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.it.js
  187. +65 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.iu-Cans-CA.js
  188. +65 −0 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.iu-Cans.js
Sorry, we could not display the entire diff because too many files (1,582) changed.
View
12 LICENSE
@@ -0,0 +1,12 @@
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
View
5 NOTICE
@@ -0,0 +1,5 @@
+Apache Cordova
+Copyright 2012 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org)
View
79 README.md
@@ -1,4 +1,77 @@
-incubator-cordova-tizen
-=======================
+Cordova implementation for Tizen
+===
+
+Cordova implementation for Tizen is a JavaScript Wrapper library allowing to build and run Cordova based projects on [Tizen](https://www.tizen.org/).
+Cordova based applications are, at the core, an application written with web technology: HTML, CSS and JavaScript.
+
+Apache Cordova is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator project. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
+
+Pre-requisites
+---
+ - [Tizen SDK 1.0 Larkspur Release](https://developer.tizen.org/sdk)
+
+Directory Structure
+---
+ /tizen
+ /samples ..... Ready-to-run Tizen Eclipse IDE sample projects
+ /templates ... Cordova Tizen SDK projects templates for Tizen Eclipse IDE
+ /www ......... Barebones project assets
+
+Import a Cordova Tizen project sample into Tizen Eclipse IDE
+----
+
+1. File -> Import
+2. Select Import Source: Widget -> Projects and Widget file -> Next
+3. Import Widget -> Select root directory: Point to the one of the sample projects (e.g: /cordova-basic) -> Finish
+4. The project should be available now in the Tizen Eclipse IDE Project Explorer
+5. You can now go to the [Build and Deploy a project] section of this document
+
+
+Install Cordova Tizen project templates into Tizen Eclipse IDE
+----
+1. Copy the entire /templates directory content into you Tizen Eclipse IDE web templates directory (e.g: /home/my_username/tizen-sdk/IDE/Templates/web)
+2. You can now create Cordova Tizen project by using Tizen Eclipse IDE project templates
+
+Create a project with the Tizen Eclipse IDE Cordova Tizen project templates
+----
+1. File -> New -> Tizen Web Project.
+2. Select: User Template.
+3. Select: User defined.
+4. Select one of the Cordova templates, fill the Project Name, then -> Finish.
+5. The project should be available now in the Tizen Eclipse IDE Project Explorer
+6. You can now go to the [Build and Deploy a project] section of this document
+
+Build and Deploy a project
+----
+1. Select and Right click the project -> Select Build project, this will generate your project widget package (.wgt)
+2. Select and Right click the project -> Run As -> Here you can choose:
+ - Tizen Web Simulator application
+ - Tizen Web application (this will deploy you application to a pre-launched Tizen emulator or a Tizen connected device)
+
+Barebones project assets
+----
+
+The `www` folder contains the Cordova specific assets that must be available in a Tizen Web project to make it 'Cordova enabled'.
+If you have an existing Tizen Web application project, copy/merge these files into its root directory.
+
+ /www
+ config.xml .............. Tizen configuration file
+ cordova-x.y.z.js ........ Tizen Cordova JavaScript API implementation library
+ /sounds
+ beep.wav ............ Needed for Cordova Notification API implementation
+
+Add the following lines into the `<head>` section of your `index.html` project file:
+
+ <script type="text/javascript" src="js/cordova.x.y.z.js"></script>
+
+`config.xml` is a sample that you are free to alter or merge with an existing Tizen configuration file.
+It contains the `<feature>` elements required by the Cordova API.
+
+Further Reading
+---
+
+- [Cordova home](http://incubator.apache.org/cordova/)
+- [Cordova Documentation](http://docs.phonegap.com)
+- [Cordova Issue Tracker](https://issues.apache.org/jira/browse/CB)
+- [Tizen Web SDK Documentation](https://developer.tizen.org/documentation)
-temporary &lt;incubator-cordova-tizen>
View
1 VERSION
@@ -0,0 +1 @@
+2.0.0
View
48 samples/cordova-basic/.project
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>cordova-basic</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>json.validation.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.tizen.web.jslint.nature.JSLintBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.tizen.web.project.builder.WACBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.tizen.web.css.nature.CSSBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ <nature>json.validation.nature</nature>
+ <nature>org.tizen.web.jslint.nature.JSLintNature</nature>
+ <nature>org.tizen.web.WACnature</nature>
+ <nature>org.tizen.web.css.nature.CSSNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ </natures>
+</projectDescription>
View
19 samples/cordova-basic/config.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" version="2.0 Beta" viewmodes="fullscreen" id="http://yourdomain/cordova-basic">
+ <icon src="icon.png"/>
+ <content src="index.html"/>
+ <feature name="http://tizen.org/api/application" required="true"/>
+ <feature name="http://tizen.org/api/application.kill" required="true"/>
+ <feature name="http://tizen.org/api/application.launch" required="true"/>
+ <feature name="http://tizen.org/api/application.read" required="true"/>
+ <feature name="http://tizen.org/api/contact" required="true"/>
+ <feature name="http://tizen.org/api/contact.read" required="true"/>
+ <feature name="http://tizen.org/api/contact.write" required="true"/>
+ <feature name="http://tizen.org/api/systeminfo" required="true"/>
+ <feature name="http://tizen.org/api/time" required="true"/>
+ <feature name="http://tizen.org/api/time.read" required="true"/>
+ <feature name="http://tizen.org/api/time.write" required="true"/>
+ <feature name="http://tizen.org/api/tizen" required="true"/>
+ <name>cordova-basic</name>
+</widget>
View
6,957 samples/cordova-basic/cordova-2.0.0.js
6,957 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
120 samples/cordova-basic/css/style.css
@@ -0,0 +1,120 @@
+* {
+ font-family: Lucida Sans, Arial, Helvetica, sans-serif;
+}
+
+body {
+ margin: 0px auto;
+}
+
+header h1 {
+ font-size: 36px;
+ margin: 0px;
+}
+
+header h2 {
+ font-size: 18px;
+ margin: 0px;
+ color: #888;
+ font-style: italic;
+}
+
+nav ul {
+ list-style: none;
+ padding: 0px;
+ display: block;
+ clear: right;
+ background-color: #666;
+ padding-left: 4px;
+ height: 24px;
+}
+
+nav ul li {
+ display: inline;
+ padding: 0px 20px 5px 10px;
+ height: 24px;
+ border-right: 1px solid #ccc;
+}
+
+nav ul li a {
+ color: #EFD3D3;
+ text-decoration: none;
+ font-size: 13px;
+ font-weight: bold;
+}
+
+nav ul li a:hover {
+ color: #fff;
+}
+
+article > header h1 {
+ font-size: 20px;
+ margin-left: 14px;
+}
+
+article > header h1 a {
+ color: #993333;
+}
+
+article > header h1 img {
+ vertical-align:middle;
+}
+
+article > section header h1 {
+ font-size: 16px;
+}
+
+article p {
+ clear: both;
+}
+
+article > section video {
+ width: 480px;
+ height: 200px;
+}
+
+article > section div.no-html5-video,
+article > section div#no-canvas {
+ width: 480px;
+ height: 40px;
+ border: 1px solid #993333;
+ text-align: center;
+ color: #993333;
+ font-size: 13px;
+ font-style: italic;
+ background-color: #F7E9E9;
+}
+
+article > section div#no-canvas {
+ display: none;
+}
+
+article > section form {
+ border: 1px solid #888;
+ -moz-border-radius: 10px;
+ -webkit-border-radius: 10px;
+ border-radius: 10px;
+ -moz-box-shadow: 10px 10px 5px #888;
+ -webkit-box-shadow: 10px 10px 5px #888;
+ box-shadow: 10px 10px 5px #888;
+ background-color: #eee;
+ padding: 10px;
+ margin-bottom: 30px;
+}
+
+article > section label {
+ font-weight: bold;
+ font-size: 13px;
+}
+
+article > section input {
+ margin-bottom: 3px;
+ font-size: 13px;
+}
+
+footer p {
+ text-align: center;
+ font-size: 12px;
+ color: #888;
+ margin-top: 24px;
+}
+
View
BIN samples/cordova-basic/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN samples/cordova-basic/images/ic_cordova_32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
57 samples/cordova-basic/index.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, target-densityDpi=device-dpi">
+ <meta name="description" content="Cordova Tizen basic template generated by Tizen Web IDE"/>
+
+ <title>Tizen Web IDE - Tizen - Tizen basic Application</title>
+
+ <script type="text/javascript" src="cordova-2.0.0.js"></script>
+
+ <link rel="stylesheet" type="text/css" href="css/style.css"/>
+ <script src="js/main.js"></script>
+</head>
+
+<body>
+ <header>
+ <hgroup>
+ <h1>Tizen Cordova Application</h1>
+ <h2>An empty template of a Cordova Tizen application</h2>
+ </hgroup>
+ </header>
+
+ <nav>
+ <ul>
+ <li><a href="#">Home</a></li>
+ <li><a href="#">About Us</a></li>
+ <li><a href="#">Contact Us</a></li>
+ </ul>
+ </nav>
+
+ <article>
+ <header>
+ <h1>
+ <img src="images/ic_cordova_32.png" /> Application Name
+ </h1>
+ </header>
+ <p>This is an empty template of a Cordova Tizen Web Application. Tizen will support multiple device categories:
+ <ul>
+ <li>smartphones, tablets and smart TVs
+ <li>netbooks, in-vehicle infotainment devices
+ </ul>
+ </p>
+ <section>
+ <p>This is a basic section of a document.</p>
+ <p>The following button displays live battery info by using the Cordova JavaScript API.</p>
+ <div id="divbutton1">
+ <button onclick="startBatteryInfoMonitoring();">Battery Info</button>
+ </div>
+ </section>
+ </article>
+
+ <footer>
+ <p>&copy; 2012 Company Name. All rights reserved.</p>
+ </footer>
+</body>
+</html>
View
25 samples/cordova-basic/js/main.js
@@ -0,0 +1,25 @@
+var deviceReady = false;
+
+function startBatteryInfoMonitoring() {
+ window.addEventListener("batterystatus", function (info) {
+ var batteryInfoStr = "Level = " + info.level + "%, Status: " + ((info.isPlugged) ? "Plugged" : "Unplugged");
+ document.getElementById('divbutton1').innerHTML = batteryInfoStr;
+ }, false);
+}
+
+// Initialize function called when page loading is finished
+var init = function () {
+ console.log("init() called");
+ document.addEventListener("deviceready", function() {
+ deviceReady = true;
+ console.log("Device = " + device.platform + ", Version = " + device.version);
+ }, false);
+
+ window.setTimeout(function() {
+ if (!deviceReady) {
+ alert("Cordova initialization failed !!!");
+ }
+ }, 1000);
+};
+
+window.onload = init;
View
BIN samples/cordova-basic/sounds/beep.wav
Binary file not shown.
View
48 samples/cordova-tizen-web-ui/.project
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>cordova-tizen-web-ui</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>json.validation.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.tizen.web.jslint.nature.JSLintBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.tizen.web.project.builder.WACBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.tizen.web.css.nature.CSSBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ <nature>json.validation.nature</nature>
+ <nature>org.tizen.web.jslint.nature.JSLintNature</nature>
+ <nature>org.tizen.web.WACnature</nature>
+ <nature>org.tizen.web.css.nature.CSSNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ </natures>
+</projectDescription>
View
19 samples/cordova-tizen-web-ui/config.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" version="2.0 Beta" viewmodes="fullscreen" id="http://yourdomain/cordova-tizen-web-ui">
+ <icon src="icon.png"/>
+ <content src="index.html"/>
+ <feature name="http://tizen.org/api/application" required="true"/>
+ <feature name="http://tizen.org/api/application.kill" required="true"/>
+ <feature name="http://tizen.org/api/application.launch" required="true"/>
+ <feature name="http://tizen.org/api/application.read" required="true"/>
+ <feature name="http://tizen.org/api/contact" required="true"/>
+ <feature name="http://tizen.org/api/contact.read" required="true"/>
+ <feature name="http://tizen.org/api/contact.write" required="true"/>
+ <feature name="http://tizen.org/api/systeminfo" required="true"/>
+ <feature name="http://tizen.org/api/time" required="true"/>
+ <feature name="http://tizen.org/api/time.read" required="true"/>
+ <feature name="http://tizen.org/api/time.write" required="true"/>
+ <feature name="http://tizen.org/api/tizen" required="true"/>
+ <name>cordova-tizen-web-ui</name>
+</widget>
View
6,957 samples/cordova-tizen-web-ui/cordova-2.0.0.js
6,957 additions, 0 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2 samples/cordova-tizen-web-ui/css/style.css
@@ -0,0 +1,2 @@
+body {
+}
View
BIN samples/cordova-tizen-web-ui/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
57 samples/cordova-tizen-web-ui/index.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+
+<head>
+ <meta charset="utf-8"/>
+ <meta name="description" content="A Cordova Tizen Web UI FW single-page template generated by Tizen Web IDE"/>
+
+ <title>Tizen Web IDE - Template - Cordova Tizen - Tizen Web UI Framework - Single-Page</title>
+ <!--NOTE:
+ jquery.js and web-ui-fw.js must be included.
+ DO NOT REMOVE below code!
+ -->
+ <script src="tizen-web-ui-fw/0.1/js/jquery.js"></script>
+ <script src="tizen-web-ui-fw/0.1/js/tizen-web-ui-fw-libs.js"></script>
+ <script src="tizen-web-ui-fw/0.1/js/tizen-web-ui-fw.js"
+ data-framework-theme="tizen-gray" data-framework-viewport-scale="false"></script>
+
+ <!--NOTE:
+ Additional scripts and css files are to be placed here.
+ You can use jQuery namespace($) and all functionalities in jQuery
+ in your script. For example:
+
+ <script src="main.js"></script>
+ <link rel="stylesheet" href="my.css">
+
+ When you want to manipulate elements in your code, you have to
+ use domReady for your code to work properly, like this;
+
+ domReady(function(){ ... });
+ -->
+ <script type="text/javascript" src="cordova-2.0.0.js"></script>
+
+ <script type="text/javascript" src="./js/main.js"></script>
+ <link rel="stylesheet" type="text/css" href="./css/style.css"/>
+</head>
+
+<body>
+ <div data-role="page">
+ <div data-role="header" data-position="fixed">
+ <h1>Cordova Single-Page Application </h1>
+ </div><!-- /header -->
+
+ <div data-role="content">
+ <p>This is a Cordova single page boilerplate template that you can copy to build your first Cordova Tizen Web UI Framework page.</p>
+ <div id="myButton" data-role="button" data-inline="true">Battery Info</div>
+ <div id="myInfo" data-role="content" data-inline="true" hidden="hidden">
+ <p>Battery Info.</p>
+ </div>
+ </div>
+ </div><!-- /content -->
+
+ <div data-role="footer" data-position="fixed">
+ <h4>Footer content</h4>
+ </div><!-- /footer -->
+ </div><!-- /page -->
+</body>
+</html>
View
27 samples/cordova-tizen-web-ui/js/main.js
@@ -0,0 +1,27 @@
+var deviceReady = false;
+
+var init = function () {
+ console.log("init() called");
+ $("#myButton").click(function () {
+ $(this).remove();
+ $("#myInfo").show();
+ window.addEventListener("batterystatus", function(info) {
+ $("#myInfo").text("Level = " + info.level + "%, Status: " + ((info.isPlugged) ? "Plugged" : "Unplugged"));
+ }, false);
+ });
+
+};
+
+window.onload = function () {
+ document.addEventListener("deviceready", function () {
+ deviceReady = true;
+ console.log("Device = " + device.platform + ", Version = " + device.version);
+ $(document).ready(init);
+ }, false);
+
+ window.setTimeout(function() {
+ if (!deviceReady) {
+ alert("Cordova initialization failed !!!");
+ }
+ }, 1000);
+};
View
BIN samples/cordova-tizen-web-ui/sounds/beep.wav
Binary file not shown.
View
67 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.af-ZA.js
@@ -0,0 +1,67 @@
+/*
+ * Globalize Culture af-ZA
+ *
+ * http://github.com/jquery/globalize
+ *
+ * Copyright Software Freedom Conservancy, Inc.
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * This file was generated by the Globalize Culture Generator
+ * Translation: bugs found in this file need to be fixed in the generator
+ */
+
+(function( window, undefined ) {
+
+var Globalize;
+
+if ( typeof require !== "undefined"
+ && typeof exports !== "undefined"
+ && typeof module !== "undefined" ) {
+ // Assume CommonJS
+ Globalize = require( "globalize" );
+} else {
+ // Global variable
+ Globalize = window.Globalize;
+}
+
+Globalize.addCultureInfo( "af-ZA", "default", {
+ name: "af-ZA",
+ englishName: "Afrikaans (South Africa)",
+ nativeName: "Afrikaans (Suid Afrika)",
+ language: "af",
+ numberFormat: {
+ percent: {
+ pattern: ["-n%","n%"]
+ },
+ currency: {
+ pattern: ["$-n","$ n"],
+ symbol: "R"
+ }
+ },
+ calendars: {
+ standard: {
+ days: {
+ names: ["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"],
+ namesAbbr: ["Son","Maan","Dins","Woen","Dond","Vry","Sat"],
+ namesShort: ["So","Ma","Di","Wo","Do","Vr","Sa"]
+ },
+ months: {
+ names: ["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember",""],
+ namesAbbr: ["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des",""]
+ },
+ patterns: {
+ d: "yyyy/MM/dd",
+ D: "dd MMMM yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dd MMMM yyyy hh:mm tt",
+ F: "dd MMMM yyyy hh:mm:ss tt",
+ M: "dd MMMM",
+ Y: "MMMM yyyy"
+ }
+ }
+ }
+});
+
+}( this ));
View
67 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.af.js
@@ -0,0 +1,67 @@
+/*
+ * Globalize Culture af
+ *
+ * http://github.com/jquery/globalize
+ *
+ * Copyright Software Freedom Conservancy, Inc.
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * This file was generated by the Globalize Culture Generator
+ * Translation: bugs found in this file need to be fixed in the generator
+ */
+
+(function( window, undefined ) {
+
+var Globalize;
+
+if ( typeof require !== "undefined"
+ && typeof exports !== "undefined"
+ && typeof module !== "undefined" ) {
+ // Assume CommonJS
+ Globalize = require( "globalize" );
+} else {
+ // Global variable
+ Globalize = window.Globalize;
+}
+
+Globalize.addCultureInfo( "af", "default", {
+ name: "af",
+ englishName: "Afrikaans",
+ nativeName: "Afrikaans",
+ language: "af",
+ numberFormat: {
+ percent: {
+ pattern: ["-n%","n%"]
+ },
+ currency: {
+ pattern: ["$-n","$ n"],
+ symbol: "R"
+ }
+ },
+ calendars: {
+ standard: {
+ days: {
+ names: ["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"],
+ namesAbbr: ["Son","Maan","Dins","Woen","Dond","Vry","Sat"],
+ namesShort: ["So","Ma","Di","Wo","Do","Vr","Sa"]
+ },
+ months: {
+ names: ["Januarie","Februarie","Maart","April","Mei","Junie","Julie","Augustus","September","Oktober","November","Desember",""],
+ namesAbbr: ["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Des",""]
+ },
+ patterns: {
+ d: "yyyy/MM/dd",
+ D: "dd MMMM yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dd MMMM yyyy hh:mm tt",
+ F: "dd MMMM yyyy hh:mm:ss tt",
+ M: "dd MMMM",
+ Y: "MMMM yyyy"
+ }
+ }
+ }
+});
+
+}( this ));
View
74 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.am-ET.js
@@ -0,0 +1,74 @@
+/*
+ * Globalize Culture am-ET
+ *
+ * http://github.com/jquery/globalize
+ *
+ * Copyright Software Freedom Conservancy, Inc.
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * This file was generated by the Globalize Culture Generator
+ * Translation: bugs found in this file need to be fixed in the generator
+ */
+
+(function( window, undefined ) {
+
+var Globalize;
+
+if ( typeof require !== "undefined"
+ && typeof exports !== "undefined"
+ && typeof module !== "undefined" ) {
+ // Assume CommonJS
+ Globalize = require( "globalize" );
+} else {
+ // Global variable
+ Globalize = window.Globalize;
+}
+
+Globalize.addCultureInfo( "am-ET", "default", {
+ name: "am-ET",
+ englishName: "Amharic (Ethiopia)",
+ nativeName: "አማርኛ (ኢትዮጵያ)",
+ language: "am",
+ numberFormat: {
+ decimals: 1,
+ groupSizes: [3,0],
+ NaN: "NAN",
+ percent: {
+ pattern: ["-n%","n%"],
+ decimals: 1,
+ groupSizes: [3,0]
+ },
+ currency: {
+ pattern: ["-$n","$n"],
+ groupSizes: [3,0],
+ symbol: "ETB"
+ }
+ },
+ calendars: {
+ standard: {
+ days: {
+ names: ["እሑድ","ሰኞ","ማክሰኞ","ረቡዕ","ሐሙስ","ዓርብ","ቅዳሜ"],
+ namesAbbr: ["እሑድ","ሰኞ","ማክሰ","ረቡዕ","ሐሙስ","ዓርብ","ቅዳሜ"],
+ namesShort: ["","","","","","",""]
+ },
+ months: {
+ names: ["ጃንዩወሪ","ፌብሩወሪ","ማርች","ኤፕረል","ሜይ","ጁን","ጁላይ","ኦገስት","ሴፕቴምበር","ኦክተውበር","ኖቬምበር","ዲሴምበር",""],
+ namesAbbr: ["ጃንዩ","ፌብሩ","ማርች","ኤፕረ","ሜይ","ጁን","ጁላይ","ኦገስ","ሴፕቴ","ኦክተ","ኖቬም","ዲሴም",""]
+ },
+ AM: ["ጡዋት","ጡዋት","ጡዋት"],
+ PM: ["ከሰዓት","ከሰዓት","ከሰዓት"],
+ eras: [{"name":"ዓመተ ምሕረት","start":null,"offset":0}],
+ patterns: {
+ d: "d/M/yyyy",
+ D: "dddd '፣' MMMM d 'ቀን' yyyy",
+ f: "dddd '፣' MMMM d 'ቀን' yyyy h:mm tt",
+ F: "dddd '፣' MMMM d 'ቀን' yyyy h:mm:ss tt",
+ M: "MMMM d ቀን",
+ Y: "MMMM yyyy"
+ }
+ }
+ }
+});
+
+}( this ));
View
74 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.am.js
@@ -0,0 +1,74 @@
+/*
+ * Globalize Culture am
+ *
+ * http://github.com/jquery/globalize
+ *
+ * Copyright Software Freedom Conservancy, Inc.
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * This file was generated by the Globalize Culture Generator
+ * Translation: bugs found in this file need to be fixed in the generator
+ */
+
+(function( window, undefined ) {
+
+var Globalize;
+
+if ( typeof require !== "undefined"
+ && typeof exports !== "undefined"
+ && typeof module !== "undefined" ) {
+ // Assume CommonJS
+ Globalize = require( "globalize" );
+} else {
+ // Global variable
+ Globalize = window.Globalize;
+}
+
+Globalize.addCultureInfo( "am", "default", {
+ name: "am",
+ englishName: "Amharic",
+ nativeName: "አማርኛ",
+ language: "am",
+ numberFormat: {
+ decimals: 1,
+ groupSizes: [3,0],
+ NaN: "NAN",
+ percent: {
+ pattern: ["-n%","n%"],
+ decimals: 1,
+ groupSizes: [3,0]
+ },
+ currency: {
+ pattern: ["-$n","$n"],
+ groupSizes: [3,0],
+ symbol: "ETB"
+ }
+ },
+ calendars: {
+ standard: {
+ days: {
+ names: ["እሑድ","ሰኞ","ማክሰኞ","ረቡዕ","ሐሙስ","ዓርብ","ቅዳሜ"],
+ namesAbbr: ["እሑድ","ሰኞ","ማክሰ","ረቡዕ","ሐሙስ","ዓርብ","ቅዳሜ"],
+ namesShort: ["","","","","","",""]
+ },
+ months: {
+ names: ["ጃንዩወሪ","ፌብሩወሪ","ማርች","ኤፕረል","ሜይ","ጁን","ጁላይ","ኦገስት","ሴፕቴምበር","ኦክተውበር","ኖቬምበር","ዲሴምበር",""],
+ namesAbbr: ["ጃንዩ","ፌብሩ","ማርች","ኤፕረ","ሜይ","ጁን","ጁላይ","ኦገስ","ሴፕቴ","ኦክተ","ኖቬም","ዲሴም",""]
+ },
+ AM: ["ጡዋት","ጡዋት","ጡዋት"],
+ PM: ["ከሰዓት","ከሰዓት","ከሰዓት"],
+ eras: [{"name":"ዓመተ ምሕረት","start":null,"offset":0}],
+ patterns: {
+ d: "d/M/yyyy",
+ D: "dddd '፣' MMMM d 'ቀን' yyyy",
+ f: "dddd '፣' MMMM d 'ቀን' yyyy h:mm tt",
+ F: "dddd '፣' MMMM d 'ቀን' yyyy h:mm:ss tt",
+ M: "MMMM d ቀን",
+ Y: "MMMM yyyy"
+ }
+ }
+ }
+});
+
+}( this ));
View
457 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-AE.js
@@ -0,0 +1,457 @@
+/*
+ * Globalize Culture ar-AE
+ *
+ * http://github.com/jquery/globalize
+ *
+ * Copyright Software Freedom Conservancy, Inc.
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * This file was generated by the Globalize Culture Generator
+ * Translation: bugs found in this file need to be fixed in the generator
+ */
+
+(function( window, undefined ) {
+
+var Globalize;
+
+if ( typeof require !== "undefined"
+ && typeof exports !== "undefined"
+ && typeof module !== "undefined" ) {
+ // Assume CommonJS
+ Globalize = require( "globalize" );
+} else {
+ // Global variable
+ Globalize = window.Globalize;
+}
+
+Globalize.addCultureInfo( "ar-AE", "default", {
+ name: "ar-AE",
+ englishName: "Arabic (U.A.E.)",
+ nativeName: "العربية (الإمارات العربية المتحدة)",
+ language: "ar",
+ isRTL: true,
+ numberFormat: {
+ pattern: ["n-"],
+ NaN: "ليس برقم",
+ negativeInfinity: "-لا نهاية",
+ positiveInfinity: "+لا نهاية",
+ currency: {
+ pattern: ["$n-","$ n"],
+ symbol: "د.إ.‏"
+ }
+ },
+ calendars: {
+ standard: {
+ firstDay: 6,
+ days: {
+ names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesShort: ["ح","ن","ث","ر","خ","ج","س"]
+ },
+ months: {
+ names: ["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],
+ namesAbbr: ["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""]
+ },
+ AM: ["ص","ص","ص"],
+ PM: ["م","م","م"],
+ patterns: {
+ d: "dd/MM/yyyy",
+ D: "dd MMMM, yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dd MMMM, yyyy hh:mm tt",
+ F: "dd MMMM, yyyy hh:mm:ss tt",
+ M: "dd MMMM"
+ }
+ },
+ UmAlQura: {
+ name: "UmAlQura",
+ firstDay: 6,
+ days: {
+ names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesShort: ["ح","ن","ث","ر","خ","ج","س"]
+ },
+ months: {
+ names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
+ namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
+ },
+ AM: ["ص","ص","ص"],
+ PM: ["م","م","م"],
+ eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
+ twoDigitYearMax: 1451,
+ patterns: {
+ d: "dd/MM/yy",
+ D: "dd/MMMM/yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dd/MMMM/yyyy hh:mm tt",
+ F: "dd/MMMM/yyyy hh:mm:ss tt",
+ M: "dd MMMM"
+ },
+ convert: {
+ _yearInfo: [
+ // MonthLengthFlags, Gregorian Date
+ [746, -2198707200000],
+ [1769, -2168121600000],
+ [3794, -2137449600000],
+ [3748, -2106777600000],
+ [3402, -2076192000000],
+ [2710, -2045606400000],
+ [1334, -2015020800000],
+ [2741, -1984435200000],
+ [3498, -1953763200000],
+ [2980, -1923091200000],
+ [2889, -1892505600000],
+ [2707, -1861920000000],
+ [1323, -1831334400000],
+ [2647, -1800748800000],
+ [1206, -1770076800000],
+ [2741, -1739491200000],
+ [1450, -1708819200000],
+ [3413, -1678233600000],
+ [3370, -1647561600000],
+ [2646, -1616976000000],
+ [1198, -1586390400000],
+ [2397, -1555804800000],
+ [748, -1525132800000],
+ [1749, -1494547200000],
+ [1706, -1463875200000],
+ [1365, -1433289600000],
+ [1195, -1402704000000],
+ [2395, -1372118400000],
+ [698, -1341446400000],
+ [1397, -1310860800000],
+ [2994, -1280188800000],
+ [1892, -1249516800000],
+ [1865, -1218931200000],
+ [1621, -1188345600000],
+ [683, -1157760000000],
+ [1371, -1127174400000],
+ [2778, -1096502400000],
+ [1748, -1065830400000],
+ [3785, -1035244800000],
+ [3474, -1004572800000],
+ [3365, -973987200000],
+ [2637, -943401600000],
+ [685, -912816000000],
+ [1389, -882230400000],
+ [2922, -851558400000],
+ [2898, -820886400000],
+ [2725, -790300800000],
+ [2635, -759715200000],
+ [1175, -729129600000],
+ [2359, -698544000000],
+ [694, -667872000000],
+ [1397, -637286400000],
+ [3434, -606614400000],
+ [3410, -575942400000],
+ [2710, -545356800000],
+ [2349, -514771200000],
+ [605, -484185600000],
+ [1245, -453600000000],
+ [2778, -422928000000],
+ [1492, -392256000000],
+ [3497, -361670400000],
+ [3410, -330998400000],
+ [2730, -300412800000],
+ [1238, -269827200000],
+ [2486, -239241600000],
+ [884, -208569600000],
+ [1897, -177984000000],
+ [1874, -147312000000],
+ [1701, -116726400000],
+ [1355, -86140800000],
+ [2731, -55555200000],
+ [1370, -24883200000],
+ [2773, 5702400000],
+ [3538, 36374400000],
+ [3492, 67046400000],
+ [3401, 97632000000],
+ [2709, 128217600000],
+ [1325, 158803200000],
+ [2653, 189388800000],
+ [1370, 220060800000],
+ [2773, 250646400000],
+ [1706, 281318400000],
+ [1685, 311904000000],
+ [1323, 342489600000],
+ [2647, 373075200000],
+ [1198, 403747200000],
+ [2422, 434332800000],
+ [1388, 465004800000],
+ [2901, 495590400000],
+ [2730, 526262400000],
+ [2645, 556848000000],
+ [1197, 587433600000],
+ [2397, 618019200000],
+ [730, 648691200000],
+ [1497, 679276800000],
+ [3506, 709948800000],
+ [2980, 740620800000],
+ [2890, 771206400000],
+ [2645, 801792000000],
+ [693, 832377600000],
+ [1397, 862963200000],
+ [2922, 893635200000],
+ [3026, 924307200000],
+ [3012, 954979200000],
+ [2953, 985564800000],
+ [2709, 1016150400000],
+ [1325, 1046736000000],
+ [1453, 1077321600000],
+ [2922, 1107993600000],
+ [1748, 1138665600000],
+ [3529, 1169251200000],
+ [3474, 1199923200000],
+ [2726, 1230508800000],
+ [2390, 1261094400000],
+ [686, 1291680000000],
+ [1389, 1322265600000],
+ [874, 1352937600000],
+ [2901, 1383523200000],
+ [2730, 1414195200000],
+ [2381, 1444780800000],
+ [1181, 1475366400000],
+ [2397, 1505952000000],
+ [698, 1536624000000],
+ [1461, 1567209600000],
+ [1450, 1597881600000],
+ [3413, 1628467200000],
+ [2714, 1659139200000],
+ [2350, 1689724800000],
+ [622, 1720310400000],
+ [1373, 1750896000000],
+ [2778, 1781568000000],
+ [1748, 1812240000000],
+ [1701, 1842825600000],
+ [0, 1873411200000]
+ ],
+ minDate: -2198707200000,
+ maxDate: 1873411199999,
+ toGregorian: function(hyear, hmonth, hday) {
+ var days = hday - 1,
+ gyear = hyear - 1318;
+ if (gyear < 0 || gyear >= this._yearInfo.length) return null;
+ var info = this._yearInfo[gyear],
+ gdate = new Date(info[1]),
+ monthLength = info[0];
+ // Date's ticks in javascript are always from the GMT time,
+ // but we are interested in the gregorian date in the same timezone,
+ // not what the gregorian date was at GMT time, so we adjust for the offset.
+ gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
+ for (var i = 0; i < hmonth; i++) {
+ days += 29 + (monthLength & 1);
+ monthLength = monthLength >> 1;
+ }
+ gdate.setDate(gdate.getDate() + days);
+ return gdate;
+ },
+ fromGregorian: function(gdate) {
+ // Date's ticks in javascript are always from the GMT time,
+ // but we are interested in the hijri date in the same timezone,
+ // not what the hijri date was at GMT time, so we adjust for the offset.
+ var ticks = gdate - gdate.getTimezoneOffset() * 60000;
+ if (ticks < this.minDate || ticks > this.maxDate) return null;
+ var hyear = 0,
+ hmonth = 1;
+ // find the earliest gregorian date in the array that is greater than or equal to the given date
+ while (ticks > this._yearInfo[++hyear][1]) { }
+ if (ticks !== this._yearInfo[hyear][1]) {
+ hyear--;
+ }
+ var info = this._yearInfo[hyear],
+ // how many days has it been since the date we found in the array?
+ // 86400000 = ticks per day
+ days = Math.floor((ticks - info[1]) / 86400000),
+ monthLength = info[0];
+ hyear += 1318; // the Nth array entry corresponds to hijri year 1318+N
+ // now increment day/month based on the total days, considering
+ // how many days are in each month. We cannot run past the year
+ // mark since we would have found a different array entry in that case.
+ var daysInMonth = 29 + (monthLength & 1);
+ while (days >= daysInMonth) {
+ days -= daysInMonth;
+ monthLength = monthLength >> 1;
+ daysInMonth = 29 + (monthLength & 1);
+ hmonth++;
+ }
+ // remaining days is less than is in one month, thus is the day of the month we landed on
+ // hmonth-1 because in javascript months are zero based, stay consistent with that.
+ return [hyear, hmonth - 1, days + 1];
+ }
+ }
+ },
+ Hijri: {
+ name: "Hijri",
+ firstDay: 6,
+ days: {
+ names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesShort: ["ح","ن","ث","ر","خ","ج","س"]
+ },
+ months: {
+ names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
+ namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
+ },
+ AM: ["ص","ص","ص"],
+ PM: ["م","م","م"],
+ eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
+ twoDigitYearMax: 1451,
+ patterns: {
+ d: "dd/MM/yy",
+ D: "dd/MM/yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dd/MM/yyyy hh:mm tt",
+ F: "dd/MM/yyyy hh:mm:ss tt",
+ M: "dd MMMM"
+ },
+ convert: {
+ // Adapted to Script from System.Globalization.HijriCalendar
+ ticks1970: 62135596800000,
+ // number of days leading up to each month
+ monthDays: [0, 30, 59, 89, 118, 148, 177, 207, 236, 266, 295, 325, 355],
+ minDate: -42521673600000,
+ maxDate: 253402300799999,
+ // The number of days to add or subtract from the calendar to accommodate the variances
+ // in the start and the end of Ramadan and to accommodate the date difference between
+ // countries/regions. May be dynamically adjusted based on user preference, but should
+ // remain in the range of -2 to 2, inclusive.
+ hijriAdjustment: 0,
+ toGregorian: function(hyear, hmonth, hday) {
+ var daysSinceJan0101 = this.daysToYear(hyear) + this.monthDays[hmonth] + hday - 1 - this.hijriAdjustment;
+ // 86400000 = ticks per day
+ var gdate = new Date(daysSinceJan0101 * 86400000 - this.ticks1970);
+ // adjust for timezone, because we are interested in the gregorian date for the same timezone
+ // but ticks in javascript is always from GMT, unlike the server were ticks counts from the base
+ // date in the current timezone.
+ gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
+ return gdate;
+ },
+ fromGregorian: function(gdate) {
+ if ((gdate < this.minDate) || (gdate > this.maxDate)) return null;
+ var ticks = this.ticks1970 + (gdate-0) - gdate.getTimezoneOffset() * 60000,
+ daysSinceJan0101 = Math.floor(ticks / 86400000) + 1 + this.hijriAdjustment;
+ // very particular formula determined by someone smart, adapted from the server-side implementation.
+ // it approximates the hijri year.
+ var hday, hmonth, hyear = Math.floor(((daysSinceJan0101 - 227013) * 30) / 10631) + 1,
+ absDays = this.daysToYear(hyear),
+ daysInYear = this.isLeapYear(hyear) ? 355 : 354;
+ // hyear is just approximate, it may need adjustment up or down by 1.
+ if (daysSinceJan0101 < absDays) {
+ hyear--;
+ absDays -= daysInYear;
+ }
+ else if (daysSinceJan0101 === absDays) {
+ hyear--;
+ absDays = this.daysToYear(hyear);
+ }
+ else {
+ if (daysSinceJan0101 > (absDays + daysInYear)) {
+ absDays += daysInYear;
+ hyear++;
+ }
+ }
+ // determine month by looking at how many days into the hyear we are
+ // monthDays contains the number of days up to each month.
+ hmonth = 0;
+ var daysIntoYear = daysSinceJan0101 - absDays;
+ while (hmonth <= 11 && daysIntoYear > this.monthDays[hmonth]) {
+ hmonth++;
+ }
+ hmonth--;
+ hday = daysIntoYear - this.monthDays[hmonth];
+ return [hyear, hmonth, hday];
+ },
+ daysToYear: function(year) {
+ // calculates how many days since Jan 1, 0001
+ var yearsToYear30 = Math.floor((year - 1) / 30) * 30,
+ yearsInto30 = year - yearsToYear30 - 1,
+ days = Math.floor((yearsToYear30 * 10631) / 30) + 227013;
+ while (yearsInto30 > 0) {
+ days += (this.isLeapYear(yearsInto30) ? 355 : 354);
+ yearsInto30--;
+ }
+ return days;
+ },
+ isLeapYear: function(year) {
+ return ((((year * 11) + 14) % 30) < 11);
+ }
+ }
+ },
+ Gregorian_MiddleEastFrench: {
+ name: "Gregorian_MiddleEastFrench",
+ firstDay: 6,
+ days: {
+ names: ["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],
+ namesAbbr: ["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],
+ namesShort: ["di","lu","ma","me","je","ve","sa"]
+ },
+ months: {
+ names: ["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],
+ namesAbbr: ["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""]
+ },
+ AM: ["ص","ص","ص"],
+ PM: ["م","م","م"],
+ eras: [{"name":"ap. J.-C.","start":null,"offset":0}],
+ patterns: {
+ d: "MM/dd/yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dddd, MMMM dd, yyyy hh:mm tt",
+ F: "dddd, MMMM dd, yyyy hh:mm:ss tt",
+ M: "dd MMMM"
+ }
+ },
+ Gregorian_Arabic: {
+ name: "Gregorian_Arabic",
+ firstDay: 6,
+ days: {
+ names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesShort: ["ح","ن","ث","ر","خ","ج","س"]
+ },
+ months: {
+ names: ["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],
+ namesAbbr: ["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""]
+ },
+ AM: ["ص","ص","ص"],
+ PM: ["م","م","م"],
+ eras: [{"name":"م","start":null,"offset":0}],
+ patterns: {
+ d: "MM/dd/yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dddd, MMMM dd, yyyy hh:mm tt",
+ F: "dddd, MMMM dd, yyyy hh:mm:ss tt"
+ }
+ },
+ Gregorian_TransliteratedFrench: {
+ name: "Gregorian_TransliteratedFrench",
+ firstDay: 6,
+ days: {
+ names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesShort: ["ح","ن","ث","ر","خ","ج","س"]
+ },
+ months: {
+ names: ["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],
+ namesAbbr: ["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""]
+ },
+ AM: ["ص","ص","ص"],
+ PM: ["م","م","م"],
+ eras: [{"name":"م","start":null,"offset":0}],
+ patterns: {
+ d: "MM/dd/yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dddd, MMMM dd, yyyy hh:mm tt",
+ F: "dddd, MMMM dd, yyyy hh:mm:ss tt"
+ }
+ }
+ }
+});
+
+}( this ));
View
462 samples/cordova-tizen-web-ui/tizen-web-ui-fw/0.1/js/cultures/globalize.culture.ar-BH.js
@@ -0,0 +1,462 @@
+/*
+ * Globalize Culture ar-BH
+ *
+ * http://github.com/jquery/globalize
+ *
+ * Copyright Software Freedom Conservancy, Inc.
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * This file was generated by the Globalize Culture Generator
+ * Translation: bugs found in this file need to be fixed in the generator
+ */
+
+(function( window, undefined ) {
+
+var Globalize;
+
+if ( typeof require !== "undefined"
+ && typeof exports !== "undefined"
+ && typeof module !== "undefined" ) {
+ // Assume CommonJS
+ Globalize = require( "globalize" );
+} else {
+ // Global variable
+ Globalize = window.Globalize;
+}
+
+Globalize.addCultureInfo( "ar-BH", "default", {
+ name: "ar-BH",
+ englishName: "Arabic (Bahrain)",
+ nativeName: "العربية (البحرين)",
+ language: "ar",
+ isRTL: true,
+ numberFormat: {
+ pattern: ["n-"],
+ decimals: 3,
+ NaN: "ليس برقم",
+ negativeInfinity: "-لا نهاية",
+ positiveInfinity: "+لا نهاية",
+ percent: {
+ decimals: 3
+ },
+ currency: {
+ pattern: ["$n-","$ n"],
+ decimals: 3,
+ symbol: "د.ب.‏"
+ }
+ },
+ calendars: {
+ standard: {
+ firstDay: 6,
+ days: {
+ names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesShort: ["ح","ن","ث","ر","خ","ج","س"]
+ },
+ months: {
+ names: ["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],
+ namesAbbr: ["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""]
+ },
+ AM: ["ص","ص","ص"],
+ PM: ["م","م","م"],
+ patterns: {
+ d: "dd/MM/yyyy",
+ D: "dd MMMM, yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dd MMMM, yyyy hh:mm tt",
+ F: "dd MMMM, yyyy hh:mm:ss tt",
+ M: "dd MMMM"
+ }
+ },
+ UmAlQura: {
+ name: "UmAlQura",
+ firstDay: 6,
+ days: {
+ names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesShort: ["ح","ن","ث","ر","خ","ج","س"]
+ },
+ months: {
+ names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
+ namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
+ },
+ AM: ["ص","ص","ص"],
+ PM: ["م","م","م"],
+ eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
+ twoDigitYearMax: 1451,
+ patterns: {
+ d: "dd/MM/yy",
+ D: "dd/MMMM/yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dd/MMMM/yyyy hh:mm tt",
+ F: "dd/MMMM/yyyy hh:mm:ss tt",
+ M: "dd MMMM"
+ },
+ convert: {
+ _yearInfo: [
+ // MonthLengthFlags, Gregorian Date
+ [746, -2198707200000],
+ [1769, -2168121600000],
+ [3794, -2137449600000],
+ [3748, -2106777600000],
+ [3402, -2076192000000],
+ [2710, -2045606400000],
+ [1334, -2015020800000],
+ [2741, -1984435200000],
+ [3498, -1953763200000],
+ [2980, -1923091200000],
+ [2889, -1892505600000],
+ [2707, -1861920000000],
+ [1323, -1831334400000],
+ [2647, -1800748800000],
+ [1206, -1770076800000],
+ [2741, -1739491200000],
+ [1450, -1708819200000],
+ [3413, -1678233600000],
+ [3370, -1647561600000],
+ [2646, -1616976000000],
+ [1198, -1586390400000],
+ [2397, -1555804800000],
+ [748, -1525132800000],
+ [1749, -1494547200000],
+ [1706, -1463875200000],
+ [1365, -1433289600000],
+ [1195, -1402704000000],
+ [2395, -1372118400000],
+ [698, -1341446400000],
+ [1397, -1310860800000],
+ [2994, -1280188800000],
+ [1892, -1249516800000],
+ [1865, -1218931200000],
+ [1621, -1188345600000],
+ [683, -1157760000000],
+ [1371, -1127174400000],
+ [2778, -1096502400000],
+ [1748, -1065830400000],
+ [3785, -1035244800000],
+ [3474, -1004572800000],
+ [3365, -973987200000],
+ [2637, -943401600000],
+ [685, -912816000000],
+ [1389, -882230400000],
+ [2922, -851558400000],
+ [2898, -820886400000],
+ [2725, -790300800000],
+ [2635, -759715200000],
+ [1175, -729129600000],
+ [2359, -698544000000],
+ [694, -667872000000],
+ [1397, -637286400000],
+ [3434, -606614400000],
+ [3410, -575942400000],
+ [2710, -545356800000],
+ [2349, -514771200000],
+ [605, -484185600000],
+ [1245, -453600000000],
+ [2778, -422928000000],
+ [1492, -392256000000],
+ [3497, -361670400000],
+ [3410, -330998400000],
+ [2730, -300412800000],
+ [1238, -269827200000],
+ [2486, -239241600000],
+ [884, -208569600000],
+ [1897, -177984000000],
+ [1874, -147312000000],
+ [1701, -116726400000],
+ [1355, -86140800000],
+ [2731, -55555200000],
+ [1370, -24883200000],
+ [2773, 5702400000],
+ [3538, 36374400000],
+ [3492, 67046400000],
+ [3401, 97632000000],
+ [2709, 128217600000],
+ [1325, 158803200000],
+ [2653, 189388800000],
+ [1370, 220060800000],
+ [2773, 250646400000],
+ [1706, 281318400000],
+ [1685, 311904000000],
+ [1323, 342489600000],
+ [2647, 373075200000],
+ [1198, 403747200000],
+ [2422, 434332800000],
+ [1388, 465004800000],
+ [2901, 495590400000],
+ [2730, 526262400000],
+ [2645, 556848000000],
+ [1197, 587433600000],
+ [2397, 618019200000],
+ [730, 648691200000],
+ [1497, 679276800000],
+ [3506, 709948800000],
+ [2980, 740620800000],
+ [2890, 771206400000],
+ [2645, 801792000000],
+ [693, 832377600000],
+ [1397, 862963200000],
+ [2922, 893635200000],
+ [3026, 924307200000],
+ [3012, 954979200000],
+ [2953, 985564800000],
+ [2709, 1016150400000],
+ [1325, 1046736000000],
+ [1453, 1077321600000],
+ [2922, 1107993600000],
+ [1748, 1138665600000],
+ [3529, 1169251200000],
+ [3474, 1199923200000],
+ [2726, 1230508800000],
+ [2390, 1261094400000],
+ [686, 1291680000000],
+ [1389, 1322265600000],
+ [874, 1352937600000],
+ [2901, 1383523200000],
+ [2730, 1414195200000],
+ [2381, 1444780800000],
+ [1181, 1475366400000],
+ [2397, 1505952000000],
+ [698, 1536624000000],
+ [1461, 1567209600000],
+ [1450, 1597881600000],
+ [3413, 1628467200000],
+ [2714, 1659139200000],
+ [2350, 1689724800000],
+ [622, 1720310400000],
+ [1373, 1750896000000],
+ [2778, 1781568000000],
+ [1748, 1812240000000],
+ [1701, 1842825600000],
+ [0, 1873411200000]
+ ],
+ minDate: -2198707200000,
+ maxDate: 1873411199999,
+ toGregorian: function(hyear, hmonth, hday) {
+ var days = hday - 1,
+ gyear = hyear - 1318;
+ if (gyear < 0 || gyear >= this._yearInfo.length) return null;
+ var info = this._yearInfo[gyear],
+ gdate = new Date(info[1]),
+ monthLength = info[0];
+ // Date's ticks in javascript are always from the GMT time,
+ // but we are interested in the gregorian date in the same timezone,
+ // not what the gregorian date was at GMT time, so we adjust for the offset.
+ gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
+ for (var i = 0; i < hmonth; i++) {
+ days += 29 + (monthLength & 1);
+ monthLength = monthLength >> 1;
+ }
+ gdate.setDate(gdate.getDate() + days);
+ return gdate;
+ },
+ fromGregorian: function(gdate) {
+ // Date's ticks in javascript are always from the GMT time,
+ // but we are interested in the hijri date in the same timezone,
+ // not what the hijri date was at GMT time, so we adjust for the offset.
+ var ticks = gdate - gdate.getTimezoneOffset() * 60000;
+ if (ticks < this.minDate || ticks > this.maxDate) return null;
+ var hyear = 0,
+ hmonth = 1;
+ // find the earliest gregorian date in the array that is greater than or equal to the given date
+ while (ticks > this._yearInfo[++hyear][1]) { }
+ if (ticks !== this._yearInfo[hyear][1]) {
+ hyear--;
+ }
+ var info = this._yearInfo[hyear],
+ // how many days has it been since the date we found in the array?
+ // 86400000 = ticks per day
+ days = Math.floor((ticks - info[1]) / 86400000),
+ monthLength = info[0];
+ hyear += 1318; // the Nth array entry corresponds to hijri year 1318+N
+ // now increment day/month based on the total days, considering
+ // how many days are in each month. We cannot run past the year
+ // mark since we would have found a different array entry in that case.
+ var daysInMonth = 29 + (monthLength & 1);
+ while (days >= daysInMonth) {
+ days -= daysInMonth;
+ monthLength = monthLength >> 1;
+ daysInMonth = 29 + (monthLength & 1);
+ hmonth++;
+ }
+ // remaining days is less than is in one month, thus is the day of the month we landed on
+ // hmonth-1 because in javascript months are zero based, stay consistent with that.
+ return [hyear, hmonth - 1, days + 1];
+ }
+ }
+ },
+ Hijri: {
+ name: "Hijri",
+ firstDay: 6,
+ days: {
+ names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
+ namesShort: ["ح","ن","ث","ر","خ","ج","س"]
+ },
+ months: {
+ names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
+ namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
+ },
+ AM: ["ص","ص","ص"],
+ PM: ["م","م","م"],
+ eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
+ twoDigitYearMax: 1451,
+ patterns: {
+ d: "dd/MM/yy",
+ D: "dd/MM/yyyy",
+ t: "hh:mm tt",
+ T: "hh:mm:ss tt",
+ f: "dd/MM/yyyy hh:mm tt",
+ F: "dd/MM/yyyy hh:mm:ss tt",
+ M: "dd MMMM"
+ },
+ convert: {
+ // Adapted to Script from System.Globalization.HijriCalendar
+ ticks1970: 62135596800000,
+ // number of days leading up to each month
+ monthDays: [0, 30, 59, 89, 118, 148, 177, 207, 236, 266, 295, 325, 355],
+ minDate: -42521673600000,
+ maxDate: 253402300799999,
+ // The number of days to add or subtract from the calendar to accommodate the variances
+ // in the start and the end of Ramadan and to accommodate the date difference between
+ // countries/regions. May be dynamically adjusted based on user preference, but should
+ // remain in the range of -2 to 2, inclusive.
+ hijriAdjustment: 0,
+ toGregorian: function(hyear, hmonth, hday) {
+ var daysSinceJan0101 = this.daysToYear(hyear) + this.monthDays[hmonth] + hday - 1 - this.hijriAdjustment;
+ // 86400000 = ticks per day
+ var gdate = new Date(daysSinceJan0101 * 86400000 - this.ticks1970);
+ // adjust for timezone, because we are interested in the gregorian date for the same timezone
+ // but ticks in javascript is always from GMT, unlike the server were ticks counts from the base
+ // date in the current timezone.
+ gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
+ return gdate;
+ },
+ fromGregorian: function(gdate) {
+ if ((gdate < this.minDate) || (gdate > this.maxDate)) return null;
+ var ticks = this.ticks1970 + (gdate-0) - gdate.getTimezoneOffset() * 60000,
+ daysSinceJan0101 = Math.floor(ticks / 86400000) + 1 + this.hijriAdjustment;
+ // very particular formula determined by someone smart, adapted from the server-side implementation.
+ // it approximates the hijri year.
+ var hday, hmonth, hyear = Math.floor(((daysSinceJan0101 - 227013) * 30) / 10631) + 1,
+ absDays = this.daysToYear(hyear),
+ daysInYear = this.isLeapYear(hyear) ? 355 : 354;
+ // hyear is just approximate, it may need adjustment up or down by 1.
+ if (daysSinceJan0101 < absDays) {
+ hyear--;
+ absDays -= daysInYear;
+ }
+ else if (daysSinceJan0101 === absDays) {
+ hyear--;
+ absDays = this.daysToYear(hyear);
+ }
+ else {
+ if (daysSinceJan0101 > (absDays + daysInYear)) {
+ absDays += daysInYear;
+ hyear++;
+ }
+ }
+ // determine month by looking at how many days into the hyear we are
+ // monthDays contains the number of days up to each month.
+ hmonth = 0;
+ var daysIntoYear = daysSinceJan0101 - absDays;
+ while (hmonth <= 11 && daysIntoYear > this.monthDays[hmonth]) {
+ hmonth++;
+ }
+ hmonth--;
+ hday = daysIntoYear - this.monthDays[hmonth];
+ return [hyear, hmonth, hday];
+ },
+ daysToYear: function(year) {
+ // calculates how many days since Jan 1, 0001
+ var yearsToYear30 = Math.floor((year - 1) / 30) * 30,
+ yearsInto30 = year - yearsToYear30 - 1,
+ days = Math.floor((yearsToYear30 * 10631) / 30) + 227013;
+ while (yearsInto30 > 0) {
+ days += (this.isLeapYear(yearsInto30) ? 355 : 354);
+ yearsInto30--;
+ }
+ return days;
+ },
+ isLeapYear: function(year) {
+ return ((((year * 11) + 14) % 30) < 11);
+ }
+ }
+ },
+ Gregorian_MiddleEastFrench: {
+ name: "Gregorian_MiddleEastFrench",
+ firstDay: 6,
+ days: {
+ names: ["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],
+ namesAbbr: ["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],
+ namesShort: ["di",