Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Betöltés...</div>';
if (Ext.DataView) {
    Ext.DataView.prototype.emptyText = ""
}
if (Ext.grid.GridPanel) {
    Ext.grid.GridPanel.prototype.ddText = "{0} selected row{1}"
}
if (Ext.LoadMask) {
    Ext.LoadMask.prototype.msg = "Betöltés..."
}
Date.monthNames = ["Január", "Február", "Március", "Április", "Május", "Június", "Július", "Augusztus", "Szeptember", "Október", "November", "December"];
Date.getShortMonthName = function(a){
    return Date.monthNames[a].substring(0, 3)
};
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
};
Date.getMonthNumber = function(a){
    return Date.monthNumbers[a.substring(0, 1).toUpperCase() + a.substring(1, 3).toLowerCase()]
};
Date.dayNames = ["Vasárnap", "Hétfő", "Kedd", "Szerda", "Csütörtök", "Péntek", "Szombat"];
Date.getShortDayName = function(a){
    return Date.dayNames[a].substring(0, 3)
};
Date.parseCodes.S.s = "(?:st|nd|rd|th)";
if (Ext.MessageBox) {
    Ext.MessageBox.buttonText = {
        ok: "OK",
        cancel: "Mégse",
        yes: "Igen",
        no: "Nem"
    }
}
if (Ext.util.Format) {
    Ext.util.Format.date = function(a, b){
        if (!a) {
            return ""
        }
        if (!(a instanceof Date)) {
            a = new Date(Date.parse(a))
        }
        return a.dateFormat(b || "m/d/Y")
    }
}
if (Ext.DatePicker) {
    Ext.apply(Ext.DatePicker.prototype, {
        todayText: "Ma",
        minText: "This date is before the minimum date",
        maxText: "This date is after the maximum date",
        disabledDaysText: "",
        disabledDatesText: "",
        monthNames: Date.monthNames,
        dayNames: Date.dayNames,
        nextText: "Következő hónap (Control+Jobbra)",
        prevText: "Előző hónap Month (Control+Balra)",
        monthYearText: "Válassz egy hónapot (Control+Fel/Le az év választáshoz)",
        todayTip: "{0} (Spacebar)",
        format: "Y/m/d",
        okText: "&#160;OK&#160;",
        cancelText: "Mégse",
        startDay: 1
    })
}
if (Ext.PagingToolbar) {
    Ext.apply(Ext.PagingToolbar.prototype, {
        beforePageText: "Oldal",
        afterPageText: "ennyiből {0}",
        firstText: "Első oldal",
        prevText: "Előző oldal",
        nextText: "Következő oldal",
        lastText: "Utolsó oldal",
        refreshText: "Frissítés",
        displayMsg: "Mutatom {0} - {1} ennyiből {2}",
        emptyMsg: "Nincs megjeleníthető adat"
    })
}
if (Ext.form.Field) {
    Ext.form.Field.prototype.invalidText = "A mezőbe írt érték érvénytelen"
}
if (Ext.form.TextField) {
    Ext.apply(Ext.form.TextField.prototype, {
        minLengthText: "A beírt érték min hossza {0}",
        maxLengthText: "A beírt érték max hossza {0}",
        blankText: "A mező kitöltése kötelező",
        regexText: "",
        emptyText: null
    })
}
if (Ext.form.NumberField) {
    Ext.apply(Ext.form.NumberField.prototype, {
        decimalSeparator: ".",
        decimalPrecision: 2,
        minText: "A beírható érték minimum {0}",
        maxText: "A beírható érték maximum {0}",
        nanText: "{0} nem érvényes szám"
    })
}
if (Ext.form.DateField) {
    Ext.apply(Ext.form.DateField.prototype, {
        disabledDaysText: "Érvénytelen",
        disabledDatesText: "Érvénytelen",
        minText: "A dátum ebben a mezőben {0} utáni legyen",
        maxText: "A dátum ebben a mezőben {0} előtti legyen",
        invalidText: "{0} nem érvényes dátum - A dátum ilyen formában legyen {1}",
        format: "Y/m/d",
        altFormats: "m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d"
    })
}
if (Ext.form.ComboBox) {
    Ext.apply(Ext.form.ComboBox.prototype, {
        loadingText: "Betöltés...",
        valueNotFoundText: undefined
    })
}
if (Ext.form.VTypes) {
    Ext.apply(Ext.form.VTypes, {
        emailText: 'This field should be an e-mail address in the format "user@domain.com"',
        urlText: 'This field should be a URL in the format "http://www.domain.com"',
        alphaText: "This field should only contain letters and _",
        alphanumText: "This field should only contain letters, numbers and _"
    })
}
if (Ext.form.HtmlEditor) {
    Ext.apply(Ext.form.HtmlEditor.prototype, {
        createLinkText: "Please enter the URL for the link:",
        buttonTips: {
            bold: {
                title: "Bold (Ctrl+B)",
                text: "Make the selected text bold.",
                cls: "x-html-editor-tip"
            },
            italic: {
                title: "Italic (Ctrl+I)",
                text: "Make the selected text italic.",
                cls: "x-html-editor-tip"
            },
            underline: {
                title: "Underline (Ctrl+U)",
                text: "Underline the selected text.",
                cls: "x-html-editor-tip"
            },
            increasefontsize: {
                title: "Grow Text",
                text: "Increase the font size.",
                cls: "x-html-editor-tip"
            },
            decreasefontsize: {
                title: "Shrink Text",
                text: "Decrease the font size.",
                cls: "x-html-editor-tip"
            },
            backcolor: {
                title: "Text Highlight Color",
                text: "Change the background color of the selected text.",
                cls: "x-html-editor-tip"
            },
            forecolor: {
                title: "Font Color",
                text: "Change the color of the selected text.",
                cls: "x-html-editor-tip"
            },
            justifyleft: {
                title: "Align Text Left",
                text: "Align text to the left.",
                cls: "x-html-editor-tip"
            },
            justifycenter: {
                title: "Center Text",
                text: "Center text in the editor.",
                cls: "x-html-editor-tip"
            },
            justifyright: {
                title: "Align Text Right",
                text: "Align text to the right.",
                cls: "x-html-editor-tip"
            },
            insertunorderedlist: {
                title: "Bullet List",
                text: "Start a bulleted list.",
                cls: "x-html-editor-tip"
            },
            insertorderedlist: {
                title: "Numbered List",
                text: "Start a numbered list.",
                cls: "x-html-editor-tip"
            },
            createlink: {
                title: "Hyperlink",
                text: "Make the selected text a hyperlink.",
                cls: "x-html-editor-tip"
            },
            sourceedit: {
                title: "Source Edit",
                text: "Switch to source editing mode.",
                cls: "x-html-editor-tip"
            }
        }
    })
}
if (Ext.grid.GridView) {
    Ext.apply(Ext.grid.GridView.prototype, {
        sortAscText: "Sort Ascending",
        sortDescText: "Sort Descending",
        columnsText: "Columns"
    })
}
if (Ext.grid.GroupingView) {
    Ext.apply(Ext.grid.GroupingView.prototype, {
        emptyGroupText: "(Üres)",
        groupByText: "Csoportosítás e mező szerint",
        showGroupsText: "Mutasd csoportosítva"
    })
}
if (Ext.grid.PropertyColumnModel) {
    Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
        nameText: "Név",
        valueText: "Érték",
        dateFormat: "Y/m/d"
    })
}
if (Ext.layout.BorderLayout && Ext.layout.BorderLayout.SplitRegion) {
    Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
        splitTip: "Húzd az átméretezéshez.",
        collapsibleSplitTip: "Húzd az átméretezéshez. Dupla kattintás az eltűntetéshez."
    })
}
if (Ext.form.TimeField) {
    Ext.apply(Ext.form.TimeField.prototype, {
        minText: "The time in this field must be equal to or after {0}",
        maxText: "The time in this field must be equal to or before {0}",
        invalidText: "{0} is not a valid time",
        format: "g:i A",
        altFormats: "g:ia|g:iA|g:i a|g:i A|h:i|g:i|H:i|ga|ha|gA|h a|g a|g A|gi|hi|gia|hia|g|H"
    })
}
if (Ext.form.CheckboxGroup) {
    Ext.apply(Ext.form.CheckboxGroup.prototype, {
        blankText: "Legalább egy elemet ki kell választani ebből a csoportból"
    })
}
if (Ext.form.RadioGroup) {
    Ext.apply(Ext.form.RadioGroup.prototype, {
        blankText: "Egy elemet kell kiválasztani ebből a csoportból"
    })
};

