3 * Copyright(c) 2006-2010 Sencha Inc.
5 * http://www.sencha.com/license
9 * By spartacus (from forums) 06-12-2007
12 Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">...����</div>';
15 Ext.View.prototype.emptyText = "";
18 if(Ext.grid.GridPanel){
19 Ext.grid.GridPanel.prototype.ddText = "����� ������ {0}";
23 Ext.TabPanelItem.prototype.closeText = "���� ������";
27 Ext.form.Field.prototype.invalidText = "���� ���� �� ����";
31 Ext.LoadMask.prototype.msg = "...����";
49 Date.getShortMonthName = function(month) {
50 return Date.monthNames[month].substring(0, 3);
68 Date.getMonthNumber = function(name) {
69 return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
82 Date.getShortDayName = function(day) {
83 return Date.dayNames[day].substring(0, 3);
87 Ext.MessageBox.buttonText = {
96 Ext.util.Format.date = function(v, format){
98 if(!(v instanceof Date)) v = new Date(Date.parse(v));
99 return v.dateFormat(format || "d/m/Y");
104 Ext.apply(Ext.DatePicker.prototype, {
106 minText : ".����� �� �� ���� ������ ������� �����",
107 maxText : ".����� �� �� ���� ������ ����� �����",
108 disabledDaysText : "",
109 disabledDatesText : "",
110 monthNames : Date.monthNames,
111 dayNames : Date.dayNames,
112 nextText : '(Control+Right) ����� ���',
113 prevText : '(Control+Left) ����� �����',
114 monthYearText : '(������ ��� Control+Up/Down) ��� ����',
115 todayTip : "��� ����) {0})",
117 okText : " ����� ",
118 cancelText : "�����",
123 if(Ext.PagingToolbar){
124 Ext.apply(Ext.PagingToolbar.prototype, {
125 beforePageText : "����",
126 afterPageText : "{0} ����",
127 firstText : "���� �����",
128 prevText : "���� ����",
129 nextText : "���� ���",
130 lastText : "���� �����",
131 refreshText : "����",
132 displayMsg : "���� {0} - {1} ���� {2}",
133 emptyMsg : '��� ���� �����'
137 if(Ext.form.TextField){
138 Ext.apply(Ext.form.TextField.prototype, {
139 minLengthText : "{0} ����� ��������� ���� �� ���",
140 maxLengthText : "{0} ����� ������ ���� �� ���",
141 blankText : "��� �� �����",
147 if(Ext.form.NumberField){
148 Ext.apply(Ext.form.NumberField.prototype, {
149 minText : "{0} ���� ��������� ���� �� ���",
150 maxText : "{0} ���� ������ ���� �� ���",
151 nanText : "��� �� ���� {0}"
155 if(Ext.form.DateField){
156 Ext.apply(Ext.form.DateField.prototype, {
157 disabledDaysText : "������",
158 disabledDatesText : "������",
159 minText : "{0} ������ ���� �� ���� ����� ����",
160 maxText : "{0} ������ ���� �� ���� ����� ����",
161 invalidText : "{1} ��� �� ����� ���� - ���� ����� ������ {0}",
163 altFormats : "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d",
168 if(Ext.form.ComboBox){
169 Ext.apply(Ext.form.ComboBox.prototype, {
170 loadingText : "...����",
171 valueNotFoundText : undefined
176 Ext.apply(Ext.form.VTypes, {
177 emailText : '"user@example.com" ��� �� ���� ����� ����� ���� �������� ������',
178 urlText : '"http:/'+'/www.example.com" ��� �� ���� ����� ����� ������� ������',
179 alphaText : '_��� �� ���� ����� �� ������ �',
180 alphanumText : '_��� �� ���� ����� �� ������, ������ �'
184 if(Ext.form.HtmlEditor){
185 Ext.apply(Ext.form.HtmlEditor.prototype, {
186 createLinkText : ':��� ���� �� ����� �������� ���� ������',
189 title: '(Ctrl+B) �����',
190 text: '.���� �� ����� �����',
191 cls: 'x-html-editor-tip'
194 title: '(Ctrl+I) ����',
195 text: '.��� �� ����� �����',
196 cls: 'x-html-editor-tip'
199 title: '(Ctrl+U) �� ����',
200 text: '.���� �� ���� ���� ����� �����',
201 cls: 'x-html-editor-tip'
205 text: '.���� ���� ���� ����� �����',
206 cls: 'x-html-editor-tip'
210 text: '.���� ���� ���� ����� �����',
211 cls: 'x-html-editor-tip'
214 title: '��� ��� �����',
215 text: '.��� �� ��� ���� ���� ����� �����',
216 cls: 'x-html-editor-tip'
220 text: '.��� �� ��� ����� ���� ����� �����',
221 cls: 'x-html-editor-tip'
225 text: '.��� ����� �� ����� �����',
226 cls: 'x-html-editor-tip'
230 text: '.��� ����� �� ����� �����',
231 cls: 'x-html-editor-tip'
235 text: '.��� ����� �� ����� �����',
236 cls: 'x-html-editor-tip'
238 insertunorderedlist : {
239 title: '����� ������',
240 text: '.���� ����� ������',
241 cls: 'x-html-editor-tip'
243 insertorderedlist : {
244 title: '����� �������',
245 text: '.���� ����� �������',
246 cls: 'x-html-editor-tip'
250 text: '.���� �� ����� ����� ������',
251 cls: 'x-html-editor-tip'
254 title: '����� ��� ����',
255 text: '.��� ��� ����',
256 cls: 'x-html-editor-tip'
262 if(Ext.grid.GridView){
263 Ext.apply(Ext.grid.GridView.prototype, {
264 sortAscText : "���� ���� ����",
265 sortDescText : "���� ���� ����",
266 lockText : "��� �����",
267 unlockText : "���� �����",
268 columnsText : "������"
272 if(Ext.grid.GroupingView){
273 Ext.apply(Ext.grid.GroupingView.prototype, {
274 emptyGroupText : '(���)',
275 groupByText : '��� ������� ��� ��� ��',
276 showGroupsText : '��� �������'
280 if(Ext.grid.PropertyColumnModel){
281 Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
288 if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){
289 Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
290 splitTip : ".���� ������ ����",
291 collapsibleSplitTip : ".���� ������ ����. ����� ����� ������"