ext-locale-th.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. /**
  2. * List compiled by KillerNay on the extjs.com forums.
  3. * Thank you KillerNay!
  4. *
  5. * Thailand Translations
  6. */
  7. Ext.onReady(function() {
  8. if (Ext.Date) {
  9. Ext.Date.monthNames = ["รยกรƒร’โ‚ฌร", "ยกร˜รลธร’ร“ลธร‘ยนลพรฌ", "รร•ยนร’โ‚ฌร", "ร รร‰ร’ร‚ยน", "ลธร„ร‰ร€ร’โ‚ฌร", "รร”ยถร˜ยนร’ร‚ยน", "ยกร„ยกยฏร’โ‚ฌร", "รŠร”ยงร‹ร’โ‚ฌร", "ยกร‘ยนร‚ร’ร‚ยน", "ยตร˜ร…ร’โ‚ฌร", "ลธร„รˆลกร”ยกร’ร‚ยน", "ลพร‘ยนร‡ร’โ‚ฌร"];
  10. Ext.Date.getShortMonthName = function(month) {
  11. return Ext.Date.monthNames[month].substring(0, 3);
  12. };
  13. Ext.Date.monthNumbers = {
  14. "รโ‚ฌ": 0,
  15. "ยกลธ": 1,
  16. "รร•โ‚ฌ": 2,
  17. "ร รร‚": 3,
  18. "ลธโ‚ฌ": 4,
  19. "รร”ร‚": 5,
  20. "ยกโ‚ฌ": 6,
  21. "รŠโ‚ฌ": 7,
  22. "ยกร‚": 8,
  23. "ยตโ‚ฌ": 9,
  24. "ลธร‚": 10,
  25. "ลพโ‚ฌ": 11
  26. };
  27. Ext.Date.getMonthNumber = function(name) {
  28. return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  29. };
  30. Ext.Date.dayNames = ["รร’ยทร”ยตร‚รฌ", "ลกร‘ยนยทรƒรฌ", "รร‘ยงโ‚ฌร’รƒ", "ลธร˜ร—ลพ", "ลธร„ร‹ร‘รŠยบลฝร•", "รˆร˜ยกรƒรฌ", "ร รŠร’รƒรฌ"];
  31. Ext.Date.getShortDayName = function(day) {
  32. return Ext.Date.dayNames[day].substring(0, 3);
  33. };
  34. }
  35. if (Ext.util && Ext.util.Format) {
  36. Ext.apply(Ext.util.Format, {
  37. thousandSeparator: '.',
  38. decimalSeparator: ',',
  39. currencySign: '\u0e3f',
  40. // Thai Baht
  41. dateFormat: 'm/d/Y'
  42. });
  43. }
  44. });
  45. Ext.define("Ext.locale.th.view.View", {
  46. override: "Ext.view.View",
  47. emptyText: ""
  48. });
  49. Ext.define("Ext.locale.th.grid.plugin.DragDrop", {
  50. override: "Ext.grid.plugin.DragDrop",
  51. dragText: "{0} ร ร…ร—รยกรกร…รฉร‡ยทร‘รฉยงร‹รลฝรกยถร‡"
  52. });
  53. Ext.define("Ext.locale.th.tab.Tab", {
  54. override: "Ext.tab.Tab",
  55. closeText: "ยปร”ลฝรกยทรงยบยนร•รฉ"
  56. });
  57. Ext.define("Ext.locale.th.form.field.Base", {
  58. override: "Ext.form.field.Base",
  59. invalidText: "โ‚ฌรจร’ยขรยงยชรจรยงยนร•รฉรครรจยถร™ยกยตรฉรยง"
  60. });
  61. // changing the msg text below will affect the LoadMask
  62. Ext.define("Ext.locale.th.view.AbstractView", {
  63. override: "Ext.view.AbstractView",
  64. loadingText: "ยกร“ร…ร‘ยงรขร‹ร…ลฝ..."
  65. });
  66. Ext.define("Ext.locale.th.picker.Date", {
  67. override: "Ext.picker.Date",
  68. todayText: "ร‡ร‘ยนยนร•รฉ",
  69. minText: "This date is before the minimum date",
  70. maxText: "This date is after the maximum date",
  71. disabledDaysText: "",
  72. disabledDatesText: "",
  73. nextText: 'ร ลฝร—รยนยถร‘ลฝรคยป (Control+Right)',
  74. prevText: 'ร ลฝร—รยนยกรจรยนร‹ยนรฉร’ (Control+Left)',
  75. monthYearText: 'ร ร…ร—รยกร ลฝร—รยน (Control+Up/Down to move years)',
  76. todayTip: "{0} (Spacebar)",
  77. format: "m/d/y",
  78. startDay: 0
  79. });
  80. Ext.define("Ext.locale.th.picker.Month", {
  81. override: "Ext.picker.Month",
  82. okText: " ยตยกร…ยง ",
  83. cancelText: "ร‚ยกร ร…ร”ยก"
  84. });
  85. Ext.define("Ext.locale.th.toolbar.Paging", {
  86. override: "Ext.PagingToolbar",
  87. beforePageText: "ร‹ยนรฉร’",
  88. afterPageText: "of {0}",
  89. firstText: "ร‹ยนรฉร’รกรƒยก",
  90. prevText: "ยกรจรยนร‹ยนรฉร’",
  91. nextText: "ยถร‘ลฝรคยป",
  92. lastText: "ร‹ยนรฉร’รŠร˜ลฝยทรฉร’ร‚",
  93. refreshText: "รƒร•ร ยฟรƒยช",
  94. displayMsg: "ยกร“ร…ร‘ยงรกรŠลฝยง {0} - {1} ลกร’ยก {2}",
  95. emptyMsg: 'รครรจรร•ยขรฉรรร™ร…รกรŠลฝยง'
  96. });
  97. Ext.define("Ext.locale.th.form.field.Text", {
  98. override: "Ext.form.field.Text",
  99. minLengthText: "The minimum length for this field is {0}",
  100. maxLengthText: "The maximum length for this field is {0}",
  101. blankText: "This field is required",
  102. regexText: "",
  103. emptyText: null
  104. });
  105. Ext.define("Ext.locale.th.form.field.Number", {
  106. override: "Ext.form.field.Number",
  107. minText: "The minimum value for this field is {0}",
  108. maxText: "The maximum value for this field is {0}",
  109. nanText: "{0} is not a valid number"
  110. });
  111. Ext.define("Ext.locale.th.form.field.Date", {
  112. override: "Ext.form.field.Date",
  113. disabledDaysText: "ยปร”ลฝ",
  114. disabledDatesText: "ยปร”ลฝ",
  115. minText: "The date in this field must be after {0}",
  116. maxText: "The date in this field must be before {0}",
  117. invalidText: "{0} is not a valid date - it must be in the format {1}",
  118. format: "m/d/y",
  119. altFormats: "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
  120. });
  121. Ext.define("Ext.locale.th.form.field.ComboBox", {
  122. override: "Ext.form.field.ComboBox",
  123. valueNotFoundText: undefined
  124. }, function() {
  125. Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
  126. loadingText: "ยกร“ร…ร‘ยงรขร‹ร…ลฝ..."
  127. });
  128. });
  129. Ext.define("Ext.locale.th.form.field.VTypes", {
  130. override: "Ext.form.field.VTypes",
  131. emailText: 'This field should be an e-mail address in the format "user@example.com"',
  132. urlText: 'This field should be a URL in the format "http:/' + '/www.example.com"',
  133. alphaText: 'This field should only contain letters and _',
  134. alphanumText: 'This field should only contain letters, numbers and _'
  135. });
  136. Ext.define("Ext.locale.th.form.field.HtmlEditor", {
  137. override: "Ext.form.field.HtmlEditor",
  138. createLinkText: 'Please enter the URL for the link:'
  139. }, function() {
  140. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  141. buttonTips: {
  142. bold: {
  143. title: 'Bold (Ctrl+B)',
  144. text: 'Make the selected text bold.',
  145. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  146. },
  147. italic: {
  148. title: 'Italic (Ctrl+I)',
  149. text: 'Make the selected text italic.',
  150. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  151. },
  152. underline: {
  153. title: 'Underline (Ctrl+U)',
  154. text: 'Underline the selected text.',
  155. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  156. },
  157. increasefontsize: {
  158. title: 'Grow Text',
  159. text: 'Increase the font size.',
  160. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  161. },
  162. decreasefontsize: {
  163. title: 'Shrink Text',
  164. text: 'Decrease the font size.',
  165. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  166. },
  167. backcolor: {
  168. title: 'Text Highlight Color',
  169. text: 'Change the background color of the selected text.',
  170. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  171. },
  172. forecolor: {
  173. title: 'Font Color',
  174. text: 'Change the color of the selected text.',
  175. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  176. },
  177. justifyleft: {
  178. title: 'Align Text Left',
  179. text: 'Align text to the left.',
  180. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  181. },
  182. justifycenter: {
  183. title: 'Center Text',
  184. text: 'Center text in the editor.',
  185. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  186. },
  187. justifyright: {
  188. title: 'Align Text Right',
  189. text: 'Align text to the right.',
  190. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  191. },
  192. insertunorderedlist: {
  193. title: 'Bullet List',
  194. text: 'Start a bulleted list.',
  195. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  196. },
  197. insertorderedlist: {
  198. title: 'Numbered List',
  199. text: 'Start a numbered list.',
  200. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  201. },
  202. createlink: {
  203. title: 'Hyperlink',
  204. text: 'Make the selected text a hyperlink.',
  205. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  206. },
  207. sourceedit: {
  208. title: 'Source Edit',
  209. text: 'Switch to source editing mode.',
  210. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  211. }
  212. }
  213. });
  214. });
  215. Ext.define("Ext.locale.th.grid.header.Container", {
  216. override: "Ext.grid.header.Container",
  217. sortAscText: "Sort Ascending",
  218. sortDescText: "Sort Descending",
  219. lockText: "Lock Column",
  220. unlockText: "Unlock Column",
  221. columnsText: "Columns"
  222. });
  223. Ext.define("Ext.locale.th.grid.GroupingFeature", {
  224. override: "Ext.grid.feature.Grouping",
  225. emptyGroupText: '(None)',
  226. groupByText: 'Group By This Field',
  227. showGroupsText: 'Show in Groups'
  228. });
  229. Ext.define("Ext.locale.th.grid.PropertyColumnModel", {
  230. override: "Ext.grid.PropertyColumnModel",
  231. nameText: "Name",
  232. valueText: "Value",
  233. dateFormat: "m/j/Y"
  234. });
  235. Ext.define("Ext.locale.th.window.MessageBox", {
  236. override: "Ext.window.MessageBox",
  237. buttonText: {
  238. ok: "ยตยกร…ยง",
  239. cancel: "ร‚ยกร ร…ร”ยก",
  240. yes: "รฃยชรจ",
  241. no: "รครรจรฃยชรจ"
  242. }
  243. });
  244. // This is needed until we can refactor all of the locales into individual files
  245. Ext.define("Ext.locale.th.Component", {
  246. override: "Ext.Component"
  247. });