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