ext-lang-th.js 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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. var cm = Ext.ClassManager,
  9. exists = Ext.Function.bind(cm.get, cm);
  10. if (Ext.Updater) {
  11. Ext.Updater.defaults.indicatorText = '<div class="loading-indicator">¡ÓÅѧâËÅŽ...</div>';
  12. }
  13. Ext.define("Ext.locale.th.view.View", {
  14. override: "Ext.view.View",
  15. emptyText: ""
  16. });
  17. Ext.define("Ext.locale.th.grid.Panel", {
  18. override: "Ext.grid.Panel",
  19. ddText: "{0} àÅ×Í¡áÅéÇ·Ñé§ËÁŽá¶Ç"
  20. });
  21. Ext.define("Ext.locale.th.TabPanelItem", {
  22. override: "Ext.TabPanelItem",
  23. closeText: "»ÔŽá·çº¹Õé"
  24. });
  25. Ext.define("Ext.locale.th.form.field.Base", {
  26. override: "Ext.form.field.Base",
  27. invalidText: "€èҢͧªèͧ¹ÕéäÁè¶Ù¡µéͧ"
  28. });
  29. // changing the msg text below will affect the LoadMask
  30. Ext.define("Ext.locale.th.view.AbstractView", {
  31. override: "Ext.view.AbstractView",
  32. msg: "¡ÓÅѧâËÅŽ..."
  33. });
  34. if (Ext.Date) {
  35. Ext.Date.monthNames = ["Á¡ÃÒ€Á", "¡ØÁŸÒӟѹžì", "ÁÕ¹Ò€Á", "àÁÉÒ¹", "ŸÄÉÀÒ€Á", "ÁԶعÒ¹", "¡Ä¡¯Ò€Á", "ÊÔ§ËÒ€Á", "¡Ñ¹ÂÒ¹", "µØÅÒ€Á", "ŸÄÈšÔ¡Ò¹", "žÑ¹ÇÒ€Á"];
  36. Ext.Date.getShortMonthName = function(month) {
  37. return Ext.Date.monthNames[month].substring(0, 3);
  38. };
  39. Ext.Date.monthNumbers = {
  40. "Á€": 0,
  41. "¡Ÿ": 1,
  42. "ÁÕ€": 2,
  43. "àÁÂ": 3,
  44. "Ÿ€": 4,
  45. "ÁÔÂ": 5,
  46. "¡€": 6,
  47. "Ê€": 7,
  48. "¡Â": 8,
  49. "µ€": 9,
  50. "ŸÂ": 10,
  51. "ž€": 11
  52. };
  53. Ext.Date.getMonthNumber = function(name) {
  54. return Ext.Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
  55. };
  56. Ext.Date.dayNames = ["ÍÒ·ÔµÂì", "šÑ¹·Ãì", "Íѧ€ÒÃ", "ŸØ×ž", "ŸÄËÑʺŽÕ", "ÈØ¡Ãì", "àÊÒÃì"];
  57. Ext.Date.getShortDayName = function(day) {
  58. return Ext.Date.dayNames[day].substring(0, 3);
  59. };
  60. }
  61. if (Ext.MessageBox) {
  62. Ext.MessageBox.buttonText = {
  63. ok: "µ¡Å§",
  64. cancel: "¡àÅÔ¡",
  65. yes: "ãªè",
  66. no: "äÁèãªè"
  67. };
  68. }
  69. if (exists('Ext.util.Format')) {
  70. Ext.apply(Ext.util.Format, {
  71. thousandSeparator: '.',
  72. decimalSeparator: ',',
  73. currencySign: '\u0e3f',
  74. // Thai Baht
  75. dateFormat: 'm/d/Y'
  76. });
  77. }
  78. Ext.define("Ext.locale.th.picker.Date", {
  79. override: "Ext.picker.Date",
  80. todayText: "Çѹ¹Õé",
  81. minText: "This date is before the minimum date",
  82. maxText: "This date is after the maximum date",
  83. disabledDaysText: "",
  84. disabledDatesText: "",
  85. monthNames: Ext.Date.monthNames,
  86. dayNames: Ext.Date.dayNames,
  87. nextText: 'àŽ×͹¶ÑŽä» (Control+Right)',
  88. prevText: 'àŽ×͹¡è͹˹éÒ (Control+Left)',
  89. monthYearText: 'àÅ×Í¡àŽ×͹ (Control+Up/Down to move years)',
  90. todayTip: "{0} (Spacebar)",
  91. format: "m/d/y",
  92. startDay: 0
  93. });
  94. Ext.define("Ext.locale.th.picker.Month", {
  95. override: "Ext.picker.Month",
  96. okText: "&#160;µ¡Å§&#160;",
  97. cancelText: "¡àÅÔ¡"
  98. });
  99. Ext.define("Ext.locale.th.toolbar.Paging", {
  100. override: "Ext.PagingToolbar",
  101. beforePageText: "˹éÒ",
  102. afterPageText: "of {0}",
  103. firstText: "˹éÒáá",
  104. prevText: "¡è͹˹éÒ",
  105. nextText: "¶ÑŽä»",
  106. lastText: "˹éÒÊØŽ·éÒÂ",
  107. refreshText: "ÃÕà¿Ãª",
  108. displayMsg: "¡ÓÅѧáÊŽ§ {0} - {1} šÒ¡ {2}",
  109. emptyMsg: 'äÁèÁÕ¢éÍÁÙÅáÊŽ§'
  110. });
  111. Ext.define("Ext.locale.th.form.field.Text", {
  112. override: "Ext.form.field.Text",
  113. minLengthText: "The minimum length for this field is {0}",
  114. maxLengthText: "The maximum length for this field is {0}",
  115. blankText: "This field is required",
  116. regexText: "",
  117. emptyText: null
  118. });
  119. Ext.define("Ext.locale.th.form.field.Number", {
  120. override: "Ext.form.field.Number",
  121. minText: "The minimum value for this field is {0}",
  122. maxText: "The maximum value for this field is {0}",
  123. nanText: "{0} is not a valid number"
  124. });
  125. Ext.define("Ext.locale.th.form.field.Date", {
  126. override: "Ext.form.field.Date",
  127. disabledDaysText: "»ÔŽ",
  128. disabledDatesText: "»ÔŽ",
  129. minText: "The date in this field must be after {0}",
  130. maxText: "The date in this field must be before {0}",
  131. invalidText: "{0} is not a valid date - it must be in the format {1}",
  132. format: "m/d/y",
  133. altFormats: "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
  134. });
  135. Ext.define("Ext.locale.th.form.field.ComboBox", {
  136. override: "Ext.form.field.ComboBox",
  137. valueNotFoundText: undefined
  138. }, function() {
  139. Ext.apply(Ext.form.field.ComboBox.prototype.defaultListConfig, {
  140. loadingText: "¡ÓÅѧâËÅŽ..."
  141. });
  142. });
  143. if (exists('Ext.form.field.VTypes')) {
  144. Ext.apply(Ext.form.field.VTypes, {
  145. emailText: 'This field should be an e-mail address in the format "user@example.com"',
  146. urlText: 'This field should be a URL in the format "http:/' + '/www.example.com"',
  147. alphaText: 'This field should only contain letters and _',
  148. alphanumText: 'This field should only contain letters, numbers and _'
  149. });
  150. }
  151. Ext.define("Ext.locale.th.form.field.HtmlEditor", {
  152. override: "Ext.form.field.HtmlEditor",
  153. createLinkText: 'Please enter the URL for the link:'
  154. }, function() {
  155. Ext.apply(Ext.form.field.HtmlEditor.prototype, {
  156. buttonTips: {
  157. bold: {
  158. title: 'Bold (Ctrl+B)',
  159. text: 'Make the selected text bold.',
  160. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  161. },
  162. italic: {
  163. title: 'Italic (Ctrl+I)',
  164. text: 'Make the selected text italic.',
  165. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  166. },
  167. underline: {
  168. title: 'Underline (Ctrl+U)',
  169. text: 'Underline the selected text.',
  170. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  171. },
  172. increasefontsize: {
  173. title: 'Grow Text',
  174. text: 'Increase the font size.',
  175. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  176. },
  177. decreasefontsize: {
  178. title: 'Shrink Text',
  179. text: 'Decrease the font size.',
  180. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  181. },
  182. backcolor: {
  183. title: 'Text Highlight Color',
  184. text: 'Change the background color of the selected text.',
  185. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  186. },
  187. forecolor: {
  188. title: 'Font Color',
  189. text: 'Change the color of the selected text.',
  190. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  191. },
  192. justifyleft: {
  193. title: 'Align Text Left',
  194. text: 'Align text to the left.',
  195. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  196. },
  197. justifycenter: {
  198. title: 'Center Text',
  199. text: 'Center text in the editor.',
  200. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  201. },
  202. justifyright: {
  203. title: 'Align Text Right',
  204. text: 'Align text to the right.',
  205. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  206. },
  207. insertunorderedlist: {
  208. title: 'Bullet List',
  209. text: 'Start a bulleted list.',
  210. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  211. },
  212. insertorderedlist: {
  213. title: 'Numbered List',
  214. text: 'Start a numbered list.',
  215. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  216. },
  217. createlink: {
  218. title: 'Hyperlink',
  219. text: 'Make the selected text a hyperlink.',
  220. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  221. },
  222. sourceedit: {
  223. title: 'Source Edit',
  224. text: 'Switch to source editing mode.',
  225. cls: Ext.baseCSSPrefix + 'html-editor-tip'
  226. }
  227. }
  228. });
  229. });
  230. Ext.define("Ext.locale.th.grid.header.Container", {
  231. override: "Ext.grid.header.Container",
  232. sortAscText: "Sort Ascending",
  233. sortDescText: "Sort Descending",
  234. lockText: "Lock Column",
  235. unlockText: "Unlock Column",
  236. columnsText: "Columns"
  237. });
  238. Ext.define("Ext.locale.th.grid.GroupingFeature", {
  239. override: "Ext.grid.GroupingFeature",
  240. emptyGroupText: '(None)',
  241. groupByText: 'Group By This Field',
  242. showGroupsText: 'Show in Groups'
  243. });
  244. Ext.define("Ext.locale.th.grid.PropertyColumnModel", {
  245. override: "Ext.grid.PropertyColumnModel",
  246. nameText: "Name",
  247. valueText: "Value",
  248. dateFormat: "m/j/Y"
  249. });
  250. });