(function ($, undefined) {
    /* FlatColorPicker messages */

    if (kendo.ui.FlatColorPicker) {
        kendo.ui.FlatColorPicker.prototype.options.messages =
        $.extend(true, kendo.ui.FlatColorPicker.prototype.options.messages, {
            "apply": "تطبيق",
            "cancel": "إلغاء",
            "noColor": "لا يوجد لون",
            "clearColor": "إزالة اللون"
        });
    }

    /* ColorPicker messages */

    if (kendo.ui.ColorPicker) {
        kendo.ui.ColorPicker.prototype.options.messages =
        $.extend(true, kendo.ui.ColorPicker.prototype.options.messages, {
            "apply": "تطبيق",
            "cancel": "إلغاء",
            "noColor": "لا يوجد لون",
            "clearColor": "إزالة اللون"
        });
    }

    /* ColumnMenu messages */

    if (kendo.ui.ColumnMenu) {
        kendo.ui.ColumnMenu.prototype.options.messages =
        $.extend(true, kendo.ui.ColumnMenu.prototype.options.messages, {
            "sortAscending": "ترتيب تصاعدي",
            "sortDescending": "ترتيب تنازلي",
            "filter": "تصفية",
            "columns": "أعمدة",
            "done": "تم",
            "settings": "إعدادات العمود",
            "lock": "قفل",
            "unlock": "فتح"
        });
    }

    /* Editor messages */

    if (kendo.ui.Editor) {
        kendo.ui.Editor.prototype.options.messages =
        $.extend(true, kendo.ui.Editor.prototype.options.messages, {
            "bold": "خط عريض",
            "italic": "مائل",
            "underline": "تحت السطر",
            "strikethrough": "يتوسطه خط",
            "superscript": "حرف علوي",
            "subscript": "حرف سفلي",
            "justifyCenter": "محاذاة النص للوسط",
            "justifyLeft": "محاذاة النص لليسار",
            "justifyRight": "محاذاة النص لليمين",
            "justifyFull": "ضبط",
            "insertUnorderedList": "إدراج قائمة غير مرتبة",
            "insertOrderedList": "إدراج قائمة مرتبة",
            "indent": "إضافة المسافة البادئة",
            "outdent": "إزالة المسافة البادئة",
            "createLink": "إدراج رابط",
            "unlink": "إزالة رابط",
            "insertImage": "إدراج صورة",
            "insertFile": "إدراج ملف",
            "insertHtml": "إدراج حقول",
            "viewHtml": "عرض HTML",
            "fontName": "اختر عائلة الخط",
            "fontNameInherit": "(الخط الموروث)",
            "fontSize": "اختر حجم الخط",
            "fontSizeInherit": "(الحجم الموروث)",
            "formatBlock": "تنسيق",
            "formatting": "تنسيق",
            "foreColor": "اللون",
            "backColor": "لون الخلفية",
            "style": "الأنماط",
            "emptyFolder": "مجلد فارغ",
            "uploadFile": "تحميل",
            "overflowAnchor": "أدوات أكثر",
            "orderBy": "ترتيب بواسطة:",
            "orderBySize": "الحجم",
            "orderByName": "الاسم",
            "invalidFileType": "الملف المختار \"{0}\" غير صحيح. أنواع الملفات المدعومة هي {1}.",
            "deleteFile": 'هل أنت متأكد أنك تريد حذف "{0}"?',
            "overwriteFile": 'يوجد بالفعل ملف باسم "{0}" في المسار الحالي. هل تريد الكتابة عليه؟',
            "directoryNotFound": "لم يتم العثور على مسار بهذا الاسم.",
            "imageWebAddress": "عنوان الويب",
            "imageAltText": "نص بديل",
            "imageWidth": "العرض (px)",
            "imageHeight": "الطول (px)",
            "fileWebAddress": "عنوان الويب",
            "fileTitle": "عنوان",
            "linkWebAddress": "عنوان الويب",
            "linkText": "نص",
            "linkToolTip": "تلميح",
            "linkOpenInNewWindow": "فتح الرابط في نافذة جديدة",
            "dialogUpdate": "تحديث",
            "dialogInsert": "إدراج",
            "dialogButtonSeparator": "أو",
            "dialogCancel": "إلغاء",
            "cleanFormatting": "إزالة التنسيق",
            "createTable": "إنشاء جدول",
            "addColumnLeft": "إضافة عمود إلى اليسار",
            "addColumnRight": "إضافة عمود إلى اليمين",
            "addRowAbove": "إضافة صف أعلاه",
            "addRowBelow": "إضافة صف أدناه",
            "deleteRow": "حذف صف",
            "deleteColumn": "حذف عمود",
            "dialogOk": "موافق",
            "tableWizard": "نافذة الجدول",
            "tableTab": "جدول",
            "cellTab": "خلية",
            "accessibilityTab": "إمكانية الوصول",
            "caption": "عنوان",
            "summary": "ملخص",
            "width": "العرض",
            "height": "الطول",
            "units": "الوحدات",
            "cellSpacing": "تباعد الخلايا",
            "cellPadding": "تبطين الخلية",
            "cellMargin": "هامش الخلية",
            "alignment": "المحاذاة",
            "background": "الخلفية",
            "cssClass": "CSS Class",
            "id": "ID",
            "border": "الحدود",
            "borderStyle": "نمط الحدود",
            "collapseBorders": "تصغير الحدود",
            "wrapText": "التفاف النص",
            "associateCellsWithHeaders": "ربط الخلايا مع الرؤوس",
            "alignLeft": "محاذاة لليسار",
            "alignCenter": "محاذاة للوسط",
            "alignRight": "محاذاة لليمين",
            "alignLeftTop": "محاذاة أعلى اليسار",
            "alignCenterTop": "محاذاة أعلى الوسط",
            "alignRightTop": "محاذاة أعلى اليمين",
            "alignLeftMiddle": "محاذاة منتصف اليسار",
            "alignCenterMiddle": "محاذاة منتصف الوسط",
            "alignRightMiddle": "محاذاة منتصف اليمين",
            "alignLeftBottom": "محاذاة أسفل اليسار",
            "alignCenterBottom": "محاذاة أسفل الوسط",
            "alignRightBottom": "محاذاة أسفل اليمين",
            "alignRemove": "إزالة المحاذاة",
            "columns": "أعمدة",
            "rows": "صفوف",
            "selectAllCells": "اختر كل الخلايا"
        });
    }

    /* FileBrowser messages */

    if (kendo.ui.FileBrowser) {
        kendo.ui.FileBrowser.prototype.options.messages =
        $.extend(true, kendo.ui.FileBrowser.prototype.options.messages, {
            "uploadFile": "تحميل",
            "orderBy": "ترتيب بواسطة",
            "orderByName": "الاسم",
            "orderBySize": "الحجم",
            "directoryNotFound": "لم يتم العثور على مسار بهذا الاسم.",
            "emptyFolder": "مجلد فارغ",
            "deleteFile": 'هل أنت متأكد أنك تريد حذف "{0}"?',
            "invalidFileType": "الملف المختار \"{0}\" غير صحيح. أنواع الملفات المدعومة هي {1}.",
            "overwriteFile": 'يوجد بالفعل ملف باسم "{0}" في المسار الحالي. هل تريد الكتابة عليه؟',
            "dropFilesHere": "إسحب ملف هنا للتحميل",
            "search": "بحث"
        });
    }

    /* FilterCell messages */

    if (kendo.ui.FilterCell) {
        kendo.ui.FilterCell.prototype.options.messages =
        $.extend(true, kendo.ui.FilterCell.prototype.options.messages, {
            "isTrue": "صحيح",
            "isFalse": "غير صحيح",
            "filter": "تصفية",
            "clear": "إزالة",
            "operator": "معامل"
        });
    }

    /* FilterCell operators */

    if (kendo.ui.FilterCell) {
        kendo.ui.FilterCell.prototype.options.operators =
        $.extend(true, kendo.ui.FilterCell.prototype.options.operators, {
            "string": {
                "eq": "يساوي",
                "neq": "لا يساوي",
                "startswith": "يبدأ بـ",
                "contains": "يحتوي",
                "doesnotcontain": "لا يحتوي",
                "endswith": "ينتهي ب",
                "isnull": "غير موجود",
                "isnotnull": "موجود",
                "isempty": "فارغ",
                "isnotempty": "ليس فارغا"
            },
            "number": {
                "eq": "يساوي",
                "neq": "لا يساوي",
                "gte": "أكبر من أو يساوي",
                "gt": "أكبر من",
                "lte": "أقل من أو يساوي",
                "lt": "أقل من",
                "isnull": "غير موجود",
                "isnotnull": "موجود"
            },
            "date": {
                "eq": "يساوي",
                "neq": "لا يساوي",
                "gte": "بعد أو يساوي",
                "gt": "بعد",
                "lte": "قبل أو يساوي",
                "lt": "قبل",
                "isnull": "غير موجود",
                "isnotnull": "موجود"
            },
            "enums": {
                "eq": "يساوي",
                "neq": "لا يساوي",
                "isnull": "غير موجود",
                "isnotnull": "موجود"
            }
        });
    }

    /* FilterMenu messages */

    if (kendo.ui.FilterMenu) {
        kendo.ui.FilterMenu.prototype.options.messages =
        $.extend(true, kendo.ui.FilterMenu.prototype.options.messages, {
            "info": "إظهار العناصر ذات القيمة التي:",
            "isTrue": "صحيح",
            "isFalse": "خاطئ",
            "filter": "تصفية",
            "clear": "إزالة",
            "and": "و",
            "or": "أو",
            "selectValue": "-اختر القيمة-",
            "operator": "معامل",
            "value": "قيمة",
            "cancel": "إلغاء"
        });
    }

    /* FilterMenu operator messages */

    if (kendo.ui.FilterMenu) {
        kendo.ui.FilterMenu.prototype.options.operators =
        $.extend(true, kendo.ui.FilterMenu.prototype.options.operators, {
            "string": {
                "eq": "يساوي",
                "neq": "لا يساوي",
                "startswith": "يبدأ بـ",
                "contains": "يحتوي",
                "doesnotcontain": "لا يحتوي",
                "endswith": "ينتهي ب",
                "isnull": "غير موجود",
                "isnotnull": "موجود",
                "isempty": "فارغ",
                "isnotempty": "ليس فارغا"
            },
            "number": {
                "eq": "يساوي",
                "neq": "لا يساوي",
                "gte": "أكبر من أو يساوي",
                "gt": "أكبر من",
                "lte": "أقل من أو يساوي",
                "lt": "أقل من",
                "isnull": "غير موجود",
                "isnotnull": "موجود"
            },
            "date": {
                "eq": "يساوي",
                "neq": "لا يساوي",
                "gte": "بعد أو يساوي",
                "gt": "بعد",
                "lte": "قبل أو يساوي",
                "lt": "قبل",
                "isnull": "غير موجود",
                "isnotnull": "موجود"
            },
            "enums": {
                "eq": "يساوي",
                "neq": "لا يساوي",
                "isnull": "غير موجود",
                "isnotnull": "موجود"
            }
        });
    }

    /* FilterMultiCheck messages */

    if (kendo.ui.FilterMultiCheck) {
        kendo.ui.FilterMultiCheck.prototype.options.messages =
        $.extend(true, kendo.ui.FilterMultiCheck.prototype.options.messages, {
            "checkAll": "اختر الكل",
            "clear": "إزالة",
            "filter": "تصفية",
            "search": "بحث"
        });
    }

    /* Gantt messages */

    if (kendo.ui.Gantt) {
        kendo.ui.Gantt.prototype.options.messages =
        $.extend(true, kendo.ui.Gantt.prototype.options.messages, {
            "actions": {
                "addChild": "Add Child",
                "append": "Add Task",
                "insertAfter": "Add Below",
                "insertBefore": "Add Above",
                "pdf": "Export to PDF"
            },
            "cancel": "Cancel",
            "deleteDependencyWindowTitle": "Delete dependency",
            "deleteTaskWindowTitle": "Delete task",
            "destroy": "Delete",
            "editor": {
                "assingButton": "Assign",
                "editorTitle": "Task",
                "end": "End",
                "percentComplete": "Complete",
                "resources": "Resources",
                "resourcesEditorTitle": "Resources",
                "resourcesHeader": "Resources",
                "start": "Start",
                "title": "Title",
                "unitsHeader": "Units"
            },
            "save": "Save",
            "views": {
                "day": "Day",
                "end": "End",
                "month": "Month",
                "start": "Start",
                "week": "Week",
                "year": "Year"
            }
        });
    }

    /* Grid messages */

    if (kendo.ui.Grid) {
        kendo.ui.Grid.prototype.options.messages =
        $.extend(true, kendo.ui.Grid.prototype.options.messages, {
            "commands": {
                "cancel": "إلغاء التعديلات",
                "canceledit": "إلغاء",
                "create": "إضافة",
                "destroy": "حذف",
                "edit": "تعديل",
                "excel": "Export to Excel",
                "pdf": "Export to PDF",
                "save": "حفظ التعديلات",
                "select": "اختر",
                "update": "حفظ"
            },
            "editable": {
                "cancelDelete": "إلغاء",
                "confirmation": "Are you sure you want to delete this record?",
                "confirmDelete": "حذف"
            },
            "noRecords": "No records available.",
            "expandCollapseColumnHeader": ""
        });
    }

    /* TreeList messages */

    if (kendo.ui.TreeList) {
        kendo.ui.TreeList.prototype.options.messages =
        $.extend(true, kendo.ui.TreeList.prototype.options.messages, {
            "noRows": "No records to display",
            "loading": "Loading...",
            "requestFailed": "Request failed.",
            "retry": "Retry",
            "commands": {
                "edit": "تعديل",
                "update": "حفظ",
                "canceledit": "إلغاء",
                "create": "إضافة",
                "createchild": "Add child record",
                "destroy": "حذف",
                "excel": "Export to Excel",
                "pdf": "Export to PDF"
            }
        });
    }

    /* Groupable messages */

    if (kendo.ui.Groupable) {
        kendo.ui.Groupable.prototype.options.messages =
        $.extend(true, kendo.ui.Groupable.prototype.options.messages, {
            "empty": "Drag a column header and drop it here to group by that column"
        });
    }

    /* NumericTextBox messages */

    if (kendo.ui.NumericTextBox) {
        kendo.ui.NumericTextBox.prototype.options =
        $.extend(true, kendo.ui.NumericTextBox.prototype.options, {
            "upArrowText": "زيادة القيمة",
            "downArrowText": "خفض القيمة"
        });
    }

    /* MediaPlayer messages */

    if (kendo.ui.MediaPlayer) {
        kendo.ui.MediaPlayer.prototype.options.messages =
        $.extend(true, kendo.ui.MediaPlayer.prototype.options.messages, {
            "pause": "Pause",
            "play": "Play",
            "mute": "Mute",
            "unmute": "Unmute",
            "quality": "Quality",
            "fullscreen": "Full Screen"
        });
    }

    /* Pager messages */

    if (kendo.ui.Pager) {
        kendo.ui.Pager.prototype.options.messages =
        $.extend(true, kendo.ui.Pager.prototype.options.messages, {
            "allPages": "الكل",
            "display": "{0} - {1} من {2} العناصر",
            "empty": "لا يوجد بيانات",
            "page": "صفحة",
            "of": "من {0}",
            "itemsPerPage": "العناصر في الصفحة",
            "first": "الصفحة الأولى",
            "previous": "الصفحة السابقة",
            "next": "الصفحة التالية",
            "last": "الصفحة الأخيرة",
            "refresh": "تحديث",
            "morePages": "صفحات أكثر"
        });
    }

    /* PivotGrid messages */

    if (kendo.ui.PivotGrid) {
        kendo.ui.PivotGrid.prototype.options.messages =
        $.extend(true, kendo.ui.PivotGrid.prototype.options.messages, {
            "measureFields": "Drop Data Fields Here",
            "columnFields": "Drop Column Fields Here",
            "rowFields": "Drop Rows Fields Here"
        });
    }

    /* PivotFieldMenu messages */

    if (kendo.ui.PivotFieldMenu) {
        kendo.ui.PivotFieldMenu.prototype.options.messages =
        $.extend(true, kendo.ui.PivotFieldMenu.prototype.options.messages, {
            "info": "Show items with value that:",
            "filterFields": "Fields Filter",
            "filter": "تصفية",
            "include": "Include Fields...",
            "title": "Fields to include",
            "clear": "Clear",
            "ok": "Ok",
            "cancel": "Cancel",
            "operators": {
                "contains": "Contains",
                "doesnotcontain": "Does not contain",
                "startswith": "يبدأ بـ",
                "endswith": "Ends with",
                "eq": "Is equal to",
                "neq": "Is not equal to"
            }
        });
    }

    /* RecurrenceEditor messages */

    if (kendo.ui.RecurrenceEditor) {
        kendo.ui.RecurrenceEditor.prototype.options.messages =
        $.extend(true, kendo.ui.RecurrenceEditor.prototype.options.messages, {
            "frequencies": {
                "never": "أبدا",
                "hourly": "كل ساعة",
                "daily": "يوميا",
                "weekly": "أسبوعيا",
                "monthly": "شهريا",
                "yearly": "سنويا"
            },
            "hourly": {
                "repeatEvery": "تكرار كل: ",
                "interval": " ساعة"
            },
            "daily": {
                "repeatEvery": "تكرار كل: ",
                "interval": " يوم"
            },
            "weekly": {
                "interval": " أسبوع",
                "repeatEvery": "تكرار كل: ",
                "repeatOn": "كرر على: "
            },
            "monthly": {
                "repeatEvery": "تكرار كل: ",
                "repeatOn": "كرر على: ",
                "interval": " شهر",
                "day": "يوم "
            },
            "yearly": {
                "repeatEvery": "تكرار كل: ",
                "repeatOn": "كرر على: ",
                "interval": " سنة",
                "of": " من "
            },
            "end": {
                "label": "النهاية:",
                "mobileLabel": "ينتهي",
                "never": "أبدا",
                "after": "بعد ",
                "occurrence": " حدوث",
                "on": "على "
            },
            "offsetPositions": {
                "first": "الأول",
                "second": "الثاني",
                "third": "الثالث",
                "fourth": "الرابع",
                "last": "الأخير"
            },
            "weekdays": {
                "day": "يوم",
                "weekday": "يوم من الأسبوع",
                "weekend": "عطلة نهاية الاسبوع"
            }
        });
    }

    /* Scheduler messages */

    if (kendo.ui.Scheduler) {
        kendo.ui.Scheduler.prototype.options.messages =
        $.extend(true, kendo.ui.Scheduler.prototype.options.messages, {
            "allDay": "يوم كامل",
            "date": "تاريخ",
            "event": "حدث",
            "time": "وقت",
            "showFullDay": "عرض يوم كامل",
            "showWorkDay": "عرض ساعات العمل",
            "today": "اليوم",
            "save": "حفظ",
            "cancel": "إلغاء",
            "destroy": "حذف",
            "deleteWindowTitle": "حذف حدث",
            "ariaSlotLabel": "مختارة من {0:t} to {1:t}",
            "ariaEventLabel": "{0} on {1:D} at {2:t}",
            "editable": {
                "confirmation": "هل أنت متاكد أنك تريد حذف هذا الحدث؟"
            },
            "views": {
                "day": "اليوم",
                "week": "الأسبوع",
                "workWeek": "أسبوع العمل",
                "agenda": "جدول أعمال",
                "month": "الشهر"
            },
            "recurrenceMessages": {
                "deleteWindowTitle": "حذف العنصر المتكرر",
                "deleteWindowOccurrence": "حذف التكرار الحالي",
                "deleteWindowSeries": "حذف السلسلة",
                "editWindowTitle": "تعديل عنصر متكرر",
                "editWindowOccurrence": "تعديل التكرار الحالي",
                "editWindowSeries": "تعديل السلسلة",
                "deleteRecurring": "هل تريد حذف هذا العنصر المتكرر فقط أم السلسلة بأكملها؟",
                "editRecurring": "هل تريد تعديل هذا العنصر المتكرر فقط أم السلسلة بأكملها؟"
            },
            "editor": {
                "title": "العنوان",
                "start": "بداية الحدث",
                "end": "نهاية الحدث",
                "allDayEvent": "يوم كامل",
                "description": "الوصف",
                "repeat": "التكرار",
                "timezone": " ",
                "startTimezone": "توقيت بداية الحدث",
                "endTimezone": "توقيت نهاية الحدث",
                "separateTimezones": "استخدام توقيتين منفصلين لبدء ونهاية الحدث",
                "timezoneEditorTitle": "المناطق الزمنية",
                "timezoneEditorButton": "منطقة زمنية",
                "timezoneTitle": "المناطق الزمنية",
                "noTimezone": "لا يوجد منطقة زمنية",
                "editorTitle": "الحدث"
            }
        });
    }

    /* Spreadsheet messages */

    if (kendo.spreadsheet && kendo.spreadsheet.messages.borderPalette) {
        kendo.spreadsheet.messages.borderPalette =
        $.extend(true, kendo.spreadsheet.messages.borderPalette, {
            "allBorders": "All borders",
            "insideBorders": "Inside borders",
            "insideHorizontalBorders": "Inside horizontal borders",
            "insideVerticalBorders": "Inside vertical borders",
            "outsideBorders": "Outside borders",
            "leftBorder": "Left border",
            "topBorder": "Top border",
            "rightBorder": "Right border",
            "bottomBorder": "Bottom border",
            "noBorders": "No border",
            "reset": "Reset color",
            "customColor": "Custom color...",
            "apply": "Apply",
            "cancel": "Cancel"
        });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.dialogs) {
        kendo.spreadsheet.messages.dialogs =
        $.extend(true, kendo.spreadsheet.messages.dialogs, {
            "apply": "Apply",
            "save": "Save",
            "cancel": "Cancel",
            "remove": "Remove",
            "retry": "Retry",
            "revert": "Revert",
            "okText": "OK",
            "formatCellsDialog": {
                "title": "Format",
                "categories": {
                    "number": "Number",
                    "currency": "Currency",
                    "date": "Date"
                }
            },
            "fontFamilyDialog": {
                "title": "Font"
            },
            "fontSizeDialog": {
                "title": "Font size"
            },
            "bordersDialog": {
                "title": "Borders"
            },
            "alignmentDialog": {
                "title": "Alignment",
                "buttons": {
                    "justtifyLeft": "Align left",
                    "justifyCenter": "Center",
                    "justifyRight": "Align right",
                    "justifyFull": "Justify",
                    "alignTop": "Align top",
                    "alignMiddle": "Align middle",
                    "alignBottom": "Align bottom"
                }
            },
            "mergeDialog": {
                "title": "Merge cells",
                "buttons": {
                    "mergeCells": "Merge all",
                    "mergeHorizontally": "Merge horizontally",
                    "mergeVertically": "Merge vertically",
                    "unmerge": "Unmerge"
                }
            },
            "freezeDialog": {
                "title": "Freeze panes",
                "buttons": {
                    "freezePanes": "Freeze panes",
                    "freezeRows": "Freeze rows",
                    "freezeColumns": "Freeze columns",
                    "unfreeze": "Unfreeze panes"
                }
            },
            "confirmationDialog": {
                "text": "Are you sure you want to remove this sheet?",
                "title": "Sheet remove"
            },
            "validationDialog": {
                "title": "Data Validation",
                "hintMessage": "Please enter a valid {0} value {1}.",
                "hintTitle": "Validation {0}",
                "criteria": {
                    "any": "Any value",
                    "number": "Number",
                    "text": "Text",
                    "date": "Date",
                    "custom": "Custom Formula",
                    "list": "List"
                },
                "comparers": {
                    "greaterThan": "greater than",
                    "lessThan": "less than",
                    "between": "between",
                    "notBetween": "not between",
                    "equalTo": "equal to",
                    "notEqualTo": "not equal to",
                    "greaterThanOrEqualTo": "greater than or equal to",
                    "lessThanOrEqualTo": "less than or equal to"
                },
                "comparerMessages": {
                    "greaterThan": "greater than {0}",
                    "lessThan": "less than {0}",
                    "between": "between {0} and {1}",
                    "notBetween": "not between {0} and {1}",
                    "equalTo": "equal to {0}",
                    "notEqualTo": "not equal to {0}",
                    "greaterThanOrEqualTo": "greater than or equal to {0}",
                    "lessThanOrEqualTo": "less than or equal to {0}",
                    "custom": "that satisfies the formula: {0}"
                },
                "labels": {
                    "criteria": "Criteria",
                    "comparer": "Comparer",
                    "min": "Min",
                    "max": "Max",
                    "value": "Value",
                    "start": "Start",
                    "end": "End",
                    "onInvalidData": "On invalid data",
                    "rejectInput": "Reject input",
                    "showWarning": "Show warning",
                    "showHint": "Show hint",
                    "hintTitle": "Hint title",
                    "hintMessage": "Hint message",
                    "ignoreBlank": "Ignore blank"
                },
                "placeholders": {
                    "typeTitle": "Type title",
                    "typeMessage": "Type message"
                }
            },
            "exportAsDialog": {
                "title": "Export...",
                "labels": {
                    "fileName": "File name",
                    "saveAsType": "Save as type",
                    "exportArea": "Export",
                    "paperSize": "Paper size",
                    "margins": "Margins",
                    "orientation": "Orientation",
                    "print": "Print",
                    "guidelines": "Guidelines",
                    "center": "Center",
                    "horizontally": "Horizontally",
                    "vertically": "Vertically"
                }
            },
            "modifyMergedDialog": {
                "errorMessage": "Cannot change part of a merged cell."
            },
            "useKeyboardDialog": {
                "title": "Copying and pasting",
                "errorMessage": "These actions cannot be invoked through the menu. Please use the keyboard shortcuts instead:",
                "labels": {
                    "forCopy": "for copy",
                    "forCut": "for cut",
                    "forPaste": "for paste"
                }
            },
            "unsupportedSelectionDialog": {
                "errorMessage": "That action cannot be performed on multiple selection."
            }
        });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.filterMenu) {
        kendo.spreadsheet.messages.filterMenu =
        $.extend(true, kendo.spreadsheet.messages.filterMenu, {
            "sortAscending": "Sort range A to Z",
            "sortDescending": "Sort range Z to A",
            "filterByValue": "Filter by value",
            "filterByCondition": "Filter by condition",
            "apply": "Apply",
            "search": "Search",
            "addToCurrent": "Add to current selection",
            "clear": "Clear",
            "blanks": "(Blanks)",
            "operatorNone": "None",
            "and": "AND",
            "or": "OR",
            "operators": {
                "string": {
                    "contains": "Text contains",
                    "doesnotcontain": "Text does not contain",
                    "startswith": "Text starts with",
                    "endswith": "Text ends with"
                },
                "date": {
                    "eq": "Date is",
                    "neq": "Date is not",
                    "lt": "Date is before",
                    "gt": "Date is after"
                },
                "number": {
                    "eq": "Is equal to",
                    "neq": "Is not equal to",
                    "gte": "Is greater than or equal to",
                    "gt": "Is greater than",
                    "lte": "Is less than or equal to",
                    "lt": "Is less than"
                }
            }
        });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.colorPicker) {
        kendo.spreadsheet.messages.colorPicker =
        $.extend(true, kendo.spreadsheet.messages.colorPicker, {
            "reset": "Reset color",
            "customColor": "Custom color...",
            "apply": "Apply",
            "cancel": "Cancel"
        });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.toolbar) {
        kendo.spreadsheet.messages.toolbar =
        $.extend(true, kendo.spreadsheet.messages.toolbar, {
            "addColumnLeft": "Add column left",
            "addColumnRight": "Add column right",
            "addRowAbove": "Add row above",
            "addRowBelow": "Add row below",
            "alignment": "Alignment",
            "alignmentButtons": {
                "justtifyLeft": "Align left",
                "justifyCenter": "Center",
                "justifyRight": "Align right",
                "justifyFull": "Justify",
                "alignTop": "Align top",
                "alignMiddle": "Align middle",
                "alignBottom": "Align bottom"
            },
            "backgroundColor": "Background",
            "bold": "Bold",
            "borders": "Borders",
            "colorPicker": {
                "reset": "Reset color",
                "customColor": "Custom color..."
            },
            "copy": "Copy",
            "cut": "Cut",
            "deleteColumn": "Delete column",
            "deleteRow": "Delete row",
            "excelImport": "Import from Excel...",
            "filter": "تصفية",
            "fontFamily": "Font",
            "fontSize": "Font size",
            "format": "Custom format...",
            "formatTypes": {
                "automatic": "Automatic",
                "number": "Number",
                "percent": "Percent",
                "financial": "Financial",
                "currency": "Currency",
                "date": "Date",
                "time": "Time",
                "dateTime": "Date time",
                "duration": "Duration",
                "moreFormats": "More formats..."
            },
            "formatDecreaseDecimal": "Decrease decimal",
            "formatIncreaseDecimal": "Increase decimal",
            "freeze": "Freeze panes",
            "freezeButtons": {
                "freezePanes": "Freeze panes",
                "freezeRows": "Freeze rows",
                "freezeColumns": "Freeze columns",
                "unfreeze": "Unfreeze panes"
            },
            "italic": "Italic",
            "merge": "Merge cells",
            "mergeButtons": {
                "mergeCells": "Merge all",
                "mergeHorizontally": "Merge horizontally",
                "mergeVertically": "Merge vertically",
                "unmerge": "Unmerge"
            },
            "open": "Open...",
            "paste": "Paste",
            "quickAccess": {
                "redo": "Redo",
                "undo": "Undo"
            },
            "saveAs": "Save As...",
            "sortAsc": "ترتيب تصاعدي",
            "sortDesc": "ترتيب تنازلي",
            "sortButtons": {
                "sortSheetAsc": "Sort sheet A to Z",
                "sortSheetDesc": "Sort sheet Z to A",
                "sortRangeAsc": "Sort range A to Z",
                "sortRangeDesc": "Sort range Z to A"
            },
            "textColor": "Text Color",
            "textWrap": "Wrap text",
            "underline": "Underline",
            "validation": "Data validation..."
        });
    }

    if (kendo.spreadsheet && kendo.spreadsheet.messages.view) {
        kendo.spreadsheet.messages.view =
        $.extend(true, kendo.spreadsheet.messages.view, {
            "errors": {
                "shiftingNonblankCells": "Cannot insert cells due to data loss possibility. Select another insert location or delete the data from the end of your worksheet.",
                "filterRangeContainingMerges": "Cannot create a filter within a range containing merges",
                "validationError": "The value that you entered violates the validation rules set on the cell."
            },
            "tabs": {
                "home": "Home",
                "insert": "Insert",
                "data": "Data"
            }
        });
    }

    /* Slider messages */

    if (kendo.ui.Slider) {
        kendo.ui.Slider.prototype.options =
        $.extend(true, kendo.ui.Slider.prototype.options, {
            "increaseButtonTitle": "Increase",
            "decreaseButtonTitle": "Decrease"
        });
    }

    /* ListBox messaages */

    if (kendo.ui.ListBox) {
        kendo.ui.ListBox.prototype.options.messages =
        $.extend(true, kendo.ui.ListBox.prototype.options.messages, {
            "tools": {
                "remove": "حذف",
                "moveUp": "تحريك لأعلى",
                "moveDown": "تحريك لأسفل",
                "transferTo": "نقل إلى",
                "transferFrom": "نقل من",
                "transferAllTo": "نقل الكل إلى",
                "transferAllFrom": "نقل الكل من"
            }
        });
    }

    /* TreeList messages */

    if (kendo.ui.TreeList) {
        kendo.ui.TreeList.prototype.options.messages =
        $.extend(true, kendo.ui.TreeList.prototype.options.messages, {
            "noRows": "No records to display",
            "loading": "Loading...",
            "requestFailed": "Request failed.",
            "retry": "Retry",
            "commands": {
                "edit": "Edit",
                "update": "Update",
                "canceledit": "Cancel",
                "create": "Add new record",
                "createchild": "Add child record",
                "destroy": "Delete",
                "excel": "Export to Excel",
                "pdf": "Export to PDF"
            }
        });
    }

    if (kendo.ui.TreeList) {
        kendo.ui.TreeList.prototype.options.columnMenu =
        $.extend(true, kendo.ui.TreeList.prototype.options.columnMenu, {
            "messages": {
                "columns": "Choose columns",
                "filter": "Apply filter",
                "sortAscending": "Sort (asc)",
                "sortDescending": "Sort (desc)"
            }
        });
    }

    /* TreeView messages */

    if (kendo.ui.TreeView) {
        kendo.ui.TreeView.prototype.options.messages =
        $.extend(true, kendo.ui.TreeView.prototype.options.messages, {
            "loading": "Loading...",
            "requestFailed": "Request failed.",
            "retry": "Retry"
        });
    }

    /* Upload messages */

    if (kendo.ui.Upload) {
        kendo.ui.Upload.prototype.options.localization =
        $.extend(true, kendo.ui.Upload.prototype.options.localization, {
            "select": "اختر الملفات...",
            "cancel": "إلغاء",
            "retry": "إعادة المحاولة",
            "remove": "إزالة",
            "clearSelectedFiles": "مسح",
            "uploadSelectedFiles": "تحميل الملفات",
            "dropFilesHere": "اسحب الملفات هنا للتحميل",
            "statusUploading": "تحميل",
            "statusUploaded": "تم التحميل",
            "statusWarning": "تحذير",
            "statusFailed": "فشل",
            "headerStatusUploading": "تحميل...",
            "headerStatusUploaded": "تم التحميل",
            "invalidMaxFileSize": "حجم الملف كبير جدا.",
            "invalidMinFileSize": "حجم الملف صغير جدا.",
            "invalidFileExtension": "نوع الملف غير مسموح."
        });
    }

    /* Validator messages */

    if (kendo.ui.Validator) {
        kendo.ui.Validator.prototype.options.messages =
        $.extend(true, kendo.ui.Validator.prototype.options.messages, {
            "required": "{0} مطلوب",
            "pattern": "{0} غير صحيح",
            "min": "{0} يجب أن يكون أكبر من أو يساوي {1}",
            "max": "{0} يجب أن يكون أصغر من أو يساوي {1}",
            "step": "{0} غير صحيح",
            "email": "البريد الإلكتروني غير صحيح",
            "url": "{0} عنوان ويب غير صحيح",
            "date": "{0} تاريخ غير صحيح",
            "dateCompare": "تاريخ الانتهاء يجب أن يكون أكبر من أو يساوي تاريخ البداية"
        });
    }

    /* kendo.ui.progress method */
    if (kendo.ui.progress) {
        kendo.ui.progress.messages =
        $.extend(true, kendo.ui.progress.messages, {
            loading: "جار التحميل..."
        });
    }

    /* Dialog */

    if (kendo.ui.Dialog) {
        kendo.ui.Dialog.prototype.options.messages =
        $.extend(true, kendo.ui.Dialog.prototype.options.localization, {
            "close": "إغلاق"
        });
    }

    /* Calendar */
    if (kendo.ui.Calendar) {
        kendo.ui.Calendar.prototype.options.messages =
        $.extend(true, kendo.ui.Calendar.prototype.options.messages, {
            "weekColumnHeader": ""
        });
    }

    /* Alert */

    if (kendo.ui.Alert) {
        kendo.ui.Alert.prototype.options.messages =
        $.extend(true, kendo.ui.Alert.prototype.options.localization, {
            "okText": "موافق"
        });
    }

    /* Confirm */

    if (kendo.ui.Confirm) {
        kendo.ui.Confirm.prototype.options.messages =
        $.extend(true, kendo.ui.Confirm.prototype.options.localization, {
            "okText": "موافق",
            "cancel": "إغلاق"
        });
    }

    /* Prompt */
    if (kendo.ui.Prompt) {
        kendo.ui.Prompt.prototype.options.messages =
        $.extend(true, kendo.ui.Prompt.prototype.options.localization, {
            "okText": "موافق",
            "cancel": "إغلاق"
        });
    }

    /* DateInput */
    if (kendo.ui.DateInput) {
        kendo.ui.DateInput.prototype.options.messages =
          $.extend(true, kendo.ui.DateInput.prototype.options.messages, {
              "year": "سنة",
              "month": "شهر",
              "day": "يوم",
              "weekday": "يوم الأسبوع",
              "hour": "ساعات",
              "minute": "دقائق",
              "second": "ثواني",
              "dayperiod": "ص/م"
          });
    }

})(window.kendo.jQuery);