X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/locale/ext-lang-fa.js diff --git a/locale/ext-lang-fa.js b/locale/ext-lang-fa.js new file mode 100644 index 00000000..ba12181c --- /dev/null +++ b/locale/ext-lang-fa.js @@ -0,0 +1,278 @@ +/** + * Farsi (Persian) translation + * By Mohaqa + * 03-10-2007, 06:23 PM + */ +Ext.onReady(function() { +if(Ext.Updater) { + Ext.Updater.defaults.indicatorText = '
در حال بارگذاری ...
'; +} + +if(Ext.view.View){ + Ext.view.View.prototype.emptyText = ""; +} + +if(Ext.grid.Panel){ + Ext.grid.Panel.prototype.ddText = "{0} رکورد انتخاب شده"; +} + +if(Ext.TabPanelItem){ + Ext.TabPanelItem.prototype.closeText = "بستن"; +} + +if(Ext.form.field.Base){ + Ext.form.field.Base.prototype.invalidText = "مقدار فیلد صحیح نیست"; +} + +if(Ext.LoadMask){ + Ext.LoadMask.prototype.msg = "در حال بارگذاری ..."; +} + +if (Ext.Date) { +Ext.Date.monthNames = [ + "ژانویه", + "فوریه", + "مارس", + "آپریل", + "می", + "ژوئن", + "جولای", + "آگوست", + "سپتامبر", + "اکتبر", + "نوامبر", + "دسامبر" +]; + +Ext.Date.monthNumbers = { + Jan : 0, + Feb : 1, + Mar : 2, + Apr : 3, + May : 4, + Jun : 5, + Jul : 6, + Aug : 7, + Sep : 8, + Oct : 9, + Nov : 10, + Dec : 11 +}; + +Ext.Date.dayNames = [ + "یکشنبه", + "دوشنبه", + "سه شنبه", + "چهارشنبه", + "پنجشنبه", + "جمعه", + "شنبه" +]; +} + +if(Ext.MessageBox){ + Ext.MessageBox.buttonText = { + ok : "تایید", + cancel : "بازگشت", + yes : "بله", + no : "خیر" + }; +} + +if(Ext.util.Format){ + Ext.apply(Ext.util.Format, { + thousandSeparator: '.', + decimalSeparator: ',', + currencySign: '\ufdfc', // Iranian Rial + dateFormat: 'Y/m/d' + }); +} + +if(Ext.picker.Date){ + Ext.apply(Ext.picker.Date.prototype, { + todayText : "امروز", + minText : "این تاریخ قبل از محدوده مجاز است", + maxText : "این تاریخ پس از محدوده مجاز است", + disabledDaysText : "", + disabledDatesText : "", + monthNames : Ext.Date.monthNames, + dayNames : Ext.Date.dayNames, + nextText : 'ماه بعد (Control + Right)', + prevText : 'ماه قبل (Control+Left)', + monthYearText : 'یک ماه را انتخاب کنید (Control+Up/Down برای انتقال در سال)', + todayTip : "{0} (Spacebar)", + format : "y/m/d", + startDay : 0 + }); +} + +if(Ext.picker.Month) { + Ext.apply(Ext.picker.Month.prototype, { + okText : " OK ", + cancelText : "Cancel" + }); +} + +if(Ext.toolbar.Paging){ + Ext.apply(Ext.PagingToolbar.prototype, { + beforePageText : "صفحه", + afterPageText : "از {0}", + firstText : "صفحه اول", + prevText : "صفحه قبل", + nextText : "صفحه بعد", + lastText : "صفحه آخر", + refreshText : "بازخوانی", + displayMsg : "نمایش {0} - {1} of {2}", + emptyMsg : 'داده ای برای نمایش وجود ندارد' + }); +} + +if(Ext.form.field.Text){ + Ext.apply(Ext.form.field.Text.prototype, { + minLengthText : "حداقل طول این فیلد برابر است با {0}", + maxLengthText : "حداکثر طول این فیلد برابر است با {0}", + blankText : "این فیلد باید مقداری داشته باشد", + regexText : "", + emptyText : null + }); +} + +if(Ext.form.field.Number){ + Ext.apply(Ext.form.field.Number.prototype, { + minText : "حداقل مقدار این فیلد برابر است با {0}", + maxText : "حداکثر مقدار این فیلد برابر است با {0}", + nanText : "{0} یک عدد نیست" + }); +} + +if(Ext.form.field.Date){ + Ext.apply(Ext.form.field.Date.prototype, { + disabledDaysText : "غیرفعال", + disabledDatesText : "غیرفعال", + minText : "تاریخ باید پس از {0} باشد", + maxText : "تاریخ باید پس از {0} باشد", + invalidText : "{0} تاریخ صحیحی نیست - فرمت صحیح {1}", + format : "y/m/d" + }); +} + +if(Ext.form.field.ComboBox){ + Ext.apply(Ext.form.field.ComboBox.prototype, { + loadingText : "در حال بارگذاری ...", + valueNotFoundText : undefined + }); +} + +if(Ext.form.field.VTypes){ + Ext.apply(Ext.form.field.VTypes, { + emailText : 'مقدار این فیلد باید یک ایمیل با این فرمت باشد "user@example.com"', + urlText : 'مقدار این آدرس باید یک آدرس سایت با این فرمت باشد "http:/'+'/www.example.com"', + alphaText : 'مقدار این فیلد باید فقط از حروف الفبا و _ تشکیل شده باشد ', + alphanumText : 'مقدار این فیلد باید فقط از حروف الفبا، اعداد و _ تشکیل شده باشد' + }); +} + +if(Ext.form.field.HtmlEditor){ + Ext.apply(Ext.form.field.HtmlEditor.prototype, { + createLinkText : 'لطفا آدرس لینک را وارد کنید:', + buttonTips : { + bold : { + title: 'تیره (Ctrl+B)', + text: 'متن انتخاب شده را تیره می کند.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + italic : { + title: 'ایتالیک (Ctrl+I)', + text: 'متن انتخاب شده را ایتالیک می کند.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + underline : { + title: 'زیرخط (Ctrl+U)', + text: 'زیر هر نوشته یک خط نمایش می دهد.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + increasefontsize : { + title: 'افزایش اندازه', + text: 'اندازه فونت را افزایش می دهد.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + decreasefontsize : { + title: 'کاهش اندازه', + text: 'اندازه متن را کاهش می دهد.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + backcolor : { + title: 'رنگ زمینه متن', + text: 'برای تغییر رنگ زمینه متن استفاده می شود.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + forecolor : { + title: 'رنگ قلم', + text: 'رنگ قلم متن را تغییر می دهد.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + justifyleft : { + title: 'چیدن متن از سمت چپ', + text: 'متن از سمت چپ چیده شده می شود.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + justifycenter : { + title: 'متن در وسط ', + text: 'نمایش متن در قسمت وسط صفحه و رعابت سمت چپ و راست.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + justifyright : { + title: 'چیدن متن از سمت راست', + text: 'متن از سمت راست پیده خواهد شد.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + insertunorderedlist : { + title: 'لیست همراه با علامت', + text: 'یک لیست جدید ایجاد می کند.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + insertorderedlist : { + title: 'لیست عددی', + text: 'یک لیست عددی ایجاد می کند. ', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + createlink : { + title: 'لینک', + text: 'متن انتخاب شده را به لینک تبدیل کنید.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + }, + sourceedit : { + title: 'ویرایش سورس', + text: 'رفتن به حالت ویرایش سورس.', + cls: Ext.baseCSSPrefix + 'html-editor-tip' + } + } + }); +} + +if(Ext.grid.header.Container){ + Ext.apply(Ext.grid.header.Container.prototype, { + sortAscText : "مرتب سازی افزایشی", + sortDescText : "مرتب سازی کاهشی", + lockText : "قفل ستون ها", + unlockText : "بازکردن ستون ها", + columnsText : "ستون ها" + }); +} + +if(Ext.grid.PropertyColumnModel){ + Ext.apply(Ext.grid.PropertyColumnModel.prototype, { + nameText : "نام", + valueText : "مقدار", + dateFormat : "Y/m/d" + }); +} + +if(Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion){ + Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, { + splitTip : "درگ برای تغییر اندازه.", + collapsibleSplitTip : "برای تغییر اندازه درگ کنید." + }); +} + +});