Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

288 lines
7.6 KiB

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