Subversion Repositories eFlore/Applications.cel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27 jpm 1
/*
2
 * Farsi (Persian) translation
3
 * By Mohaqa
4
 * 03-10-2007, 06:23 PM
5
 */
6
 
7
Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">در حال بارگذاری ...</div>';
8
 
9
if(Ext.View){
10
   Ext.View.prototype.emptyText = "";
11
}
12
 
13
if(Ext.grid.Grid){
14
   Ext.grid.Grid.prototype.ddText = "{0} رکورد انتخاب شده";
15
}
16
 
17
if(Ext.TabPanelItem){
18
   Ext.TabPanelItem.prototype.closeText = "بستن";
19
}
20
 
21
if(Ext.form.Field){
22
   Ext.form.Field.prototype.invalidText = "مقدار فیلد صحیح نیست";
23
}
24
 
25
if(Ext.LoadMask){
26
    Ext.LoadMask.prototype.msg = "در حال بارگذاری ...";
27
}
28
 
29
Date.monthNames = [
30
   "ژانویه",
31
   "فوریه",
32
   "مارس",
33
   "آپریل",
34
   "می",
35
   "ژوئن",
36
   "جولای",
37
   "آگوست",
38
   "سپتامبر",
39
   "اکتبر",
40
   "نوامبر",
41
   "دسامبر"
42
];
43
 
44
Date.monthNumbers = {
45
  Jan : 0,
46
  Feb : 1,
47
  Mar : 2,
48
  Apr : 3,
49
  May : 4,
50
  Jun : 5,
51
  Jul : 6,
52
  Aug : 7,
53
  Sep : 8,
54
  Oct : 9,
55
  Nov : 10,
56
  Dec : 11
57
};
58
 
59
Date.dayNames = [
60
   "یکشنبه",
61
   "دوشنبه",
62
   "سه شنبه",
63
   "چهارشنبه",
64
   "پنجشنبه",
65
   "جمعه",
66
   "شنبه"
67
];
68
 
69
if(Ext.MessageBox){
70
   Ext.MessageBox.buttonText = {
71
      ok     : "تایید",
72
      cancel : "بازگشت",
73
      yes    : "بله",
74
      no     : "خیر"
75
   };
76
}
77
 
78
if(Ext.util.Format){
79
   Ext.util.Format.date = function(v, format){
80
      if(!v) return "";
81
      if(!(v instanceof Date)) v = new Date(Date.parse(v));
82
      return v.dateFormat(format || "Y/m/d");
83
   };
84
}
85
 
86
if(Ext.DatePicker){
87
  Ext.apply(Ext.DatePicker.prototype, {
88
    todayText         : "امروز",
89
    minText           : "این تاریخ قبل از محدوده مجاز است",
90
    maxText           : "این تاریخ پس از محدوده مجاز است",
91
    disabledDaysText  : "",
92
    disabledDatesText : "",
93
    monthNames        : Date.monthNames,
94
    dayNames          : Date.dayNames,
95
    nextText          : 'ماه بعد (Control + Right)',
96
    prevText          : 'ماه قبل (Control+Left)',
97
    monthYearText     : 'یک ماه را انتخاب کنید (Control+Up/Down برای انتقال در سال)',
98
    todayTip          : "{0} (Spacebar)",
99
    format            : "y/m/d",
100
    okText            : "&#160;OK&#160;",
101
    cancelText        : "Cancel",
102
    startDay          : 0
103
   });
104
}
105
 
106
if(Ext.PagingToolbar){
107
   Ext.apply(Ext.PagingToolbar.prototype, {
108
      beforePageText : "صفحه",
109
      afterPageText  : "از {0}",
110
      firstText      : "صفحه اول",
111
      prevText       : "صفحه قبل",
112
      nextText       : "صفحه بعد",
113
      lastText       : "صفحه آخر",
114
      refreshText    : "بازخوانی",
115
      displayMsg     : "نمایش {0} - {1} of {2}",
116
      emptyMsg       : 'داده ای برای نمایش وجود ندارد'
117
   });
118
}
119
 
120
if(Ext.form.TextField){
121
   Ext.apply(Ext.form.TextField.prototype, {
122
      minLengthText : "حداقل طول این فیلد برابر است با {0}",
123
      maxLengthText : "حداکثر طول این فیلد برابر است با {0}",
124
      blankText     : "این فیلد باید مقداری داشته باشد",
125
      regexText     : "",
126
      emptyText     : null
127
   });
128
}
129
 
130
if(Ext.form.NumberField){
131
   Ext.apply(Ext.form.NumberField.prototype, {
132
      minText : "حداقل مقدار این فیلد برابر است با {0}",
133
      maxText : "حداکثر مقدار این فیلد برابر است با {0}",
134
      nanText : "{0} یک عدد نیست"
135
   });
136
}
137
 
138
if(Ext.form.DateField){
139
   Ext.apply(Ext.form.DateField.prototype, {
140
      disabledDaysText  : "غیرفعال",
141
      disabledDatesText : "غیرفعال",
142
      minText           : "تاریخ باید پس از {0} باشد",
143
      maxText           : "تاریخ باید پس از {0} باشد",
144
      invalidText       : "{0} تاریخ صحیحی نیست - فرمت صحیح {1}",
145
      format            : "y/m/d"
146
   });
147
}
148
 
149
if(Ext.form.ComboBox){
150
   Ext.apply(Ext.form.ComboBox.prototype, {
151
      loadingText       : "در حال بارگذاری ...",
152
      valueNotFoundText : undefined
153
   });
154
}
155
 
156
if(Ext.form.VTypes){
157
   Ext.apply(Ext.form.VTypes, {
158
      emailText    : 'مقدار این فیلد باید یک ایمیل با این فرمت باشد "user@domain.com"',
159
      urlText      : 'مقدار این آدرس باید یک آدرس سایت با این فرمت باشد "http:/'+'/www.domain.com"',
160
      alphaText    : 'مقدار این فیلد باید فقط از حروف الفبا و _ تشکیل شده باشد ',
161
      alphanumText : 'مقدار این فیلد باید فقط از حروف الفبا، اعداد و _ تشکیل شده باشد'
162
   });
163
}
164
 
165
if(Ext.form.HtmlEditor){
166
  Ext.apply(Ext.form.HtmlEditor.prototype, {
167
    createLinkText : 'لطفا آدرس لینک را وارد کنید:',
168
    buttonTips : {
169
      bold : {
170
        title: 'تیره (Ctrl+B)',
171
        text: 'متن انتخاب شده را تیره می کند.',
172
        cls: 'x-html-editor-tip'
173
      },
174
      italic : {
175
        title: 'ایتالیک (Ctrl+I)',
176
        text: 'متن انتخاب شده را ایتالیک می کند.',
177
        cls: 'x-html-editor-tip'
178
      },
179
      underline : {
180
        title: 'زیرخط (Ctrl+U)',
181
        text: 'زیر هر نوشته یک خط نمایش می دهد.',
182
        cls: 'x-html-editor-tip'
183
      },
184
      increasefontsize : {
185
        title: 'افزایش اندازه',
186
        text: 'اندازه فونت را افزایش می دهد.',
187
        cls: 'x-html-editor-tip'
188
      },
189
      decreasefontsize : {
190
        title: 'کاهش اندازه',
191
        text: 'اندازه متن را کاهش می دهد.',
192
        cls: 'x-html-editor-tip'
193
      },
194
      backcolor : {
195
        title: 'رنگ زمینه متن',
196
        text: 'برای تغییر رنگ زمینه متن استفاده می شود.',
197
        cls: 'x-html-editor-tip'
198
      },
199
      forecolor : {
200
        title: 'رنگ قلم',
201
        text: 'رنگ  قلم متن را تغییر می دهد.',
202
        cls: 'x-html-editor-tip'
203
      },
204
      justifyleft : {
205
        title: 'چیدن متن از سمت چپ',
206
        text: 'متن از سمت چپ چیده شده می شود.',
207
        cls: 'x-html-editor-tip'
208
      },
209
      justifycenter : {
210
        title: 'متن در وسط ',
211
        text: 'نمایش متن در قسمت وسط صفحه و رعابت سمت چپ و راست.',
212
        cls: 'x-html-editor-tip'
213
      },
214
      justifyright : {
215
        title: 'چیدن متن از سمت راست',
216
        text: 'متن از سمت راست پیده خواهد شد.',
217
        cls: 'x-html-editor-tip'
218
      },
219
      insertunorderedlist : {
220
        title: 'لیست همراه با علامت',
221
        text: 'یک لیست جدید ایجاد می کند.',
222
        cls: 'x-html-editor-tip'
223
      },
224
      insertorderedlist : {
225
        title: 'لیست عددی',
226
        text: 'یک لیست عددی ایجاد می کند. ',
227
        cls: 'x-html-editor-tip'
228
      },
229
      createlink : {
230
        title: 'لینک',
231
        text: 'متن انتخاب شده را به لینک تبدیل کنید.',
232
        cls: 'x-html-editor-tip'
233
      },
234
      sourceedit : {
235
        title: 'ویرایش سورس',
236
        text: 'رفتن به حالت ویرایش سورس.',
237
        cls: 'x-html-editor-tip'
238
      }
239
    }
240
  });
241
}
242
 
243
if(Ext.grid.GridView){
244
   Ext.apply(Ext.grid.GridView.prototype, {
245
      sortAscText  : "مرتب سازی افزایشی",
246
      sortDescText : "مرتب سازی کاهشی",
247
      lockText     : "قفل ستون ها",
248
      unlockText   : "بازکردن ستون ها",
249
      columnsText  : "ستون ها"
250
   });
251
}
252
 
253
if(Ext.grid.PropertyColumnModel){
254
   Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
255
      nameText   : "نام",
256
      valueText  : "مقدار",
257
      dateFormat : "Y/m/d"
258
   });
259
}
260
 
261
if(Ext.layout.BorderLayout.SplitRegion){
262
   Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
263
      splitTip            : "درگ برای تغییر اندازه.",
264
      collapsibleSplitTip : "برای تغییر اندازه درگ کنید."
265
   });
266
}