﻿/*
 *   corageo sk locale resources for ext-js library
 */

if (Ext.LoadMask){
	Ext.LoadMask.prototype.msg = "Nahrávam...";
}

Date.monthNames = ["Január", "Február", "Marec", "Apríl", "Máj", "Jún", "Júl",
					"August", "September", "Október", "November", "December"];

Date.dayNames = ["Nedeľa", "Pondelok", "Utorok", "Streda", "Štvrtok", "Piatok", "Sobota"];

if(Ext.PagingToolbar){
	Ext.apply(Ext.PagingToolbar.prototype, {
		beforePageText	: "Strana",
		afterPageText	: "z {0}",
		firstText		: "Prvá strana",
		prevText		: "Predch. strana",
		nextText		: "Ďalšia strana",
		lastText		: "Posledná strana",
		refreshText		: "Obnoviť",
		displayMsg		: "Zobrazujem {0} - {1} z {2}",
		emptyMsg		: "Žiadne dáta"
	});
}

if(Ext.grid.GridView){
	Ext.apply(Ext.grid.GridView.prototype, {
		sortAscText		: "Zoradiť vzostupne",
		sortDescText	: "Zoradiť zostupne",
		lockText		: "Zamknúť stĺpec",
		unlockText		: "Odomknúť stĺpec",
		columnsText		: "Stĺpce"
	});
}

if (Ext.DatePicker){
	Ext.apply(Ext.DatePicker.prototype, {
		startDay		: 1,
		monthNames		: Date.monthNames,
		dayNames		: Date.dayNames,
		todayText		: "Dnes",
		minText			: "Tento dátum je pred najskorším povoleným dátumom",
		maxText			: "Tento dátum je po nejneskoršom povolenom dátume",
		todayTip		: "{0} (Medzerník)",
		format			: "j.n.Y",
		nextText		: "Nasledujúci mesiac (Ctrl+Vpravo)",
		prevText		: "Predchádzajúci mesiac (Ctrl+Vľavo)",
		monthYearText	: "Vyberte mesiac (Ctrl+Hore/Dole pre posun rokov)",
		cancelText		: "Zrušiť"
	});
}

if (Ext.form.DateField){
	Ext.apply(Ext.form.DateField.prototype, {
		minText		: "Tento dátum je pred najskorším povoleným dátumom",
		maxText		: "Tento dátum je po nejneskoršom povolenom dátume",
		invalidText	: "{0} nemá správny formát dátumu - musí byť v tvare D.M.RRRR",
		format		: "j.n.Y",
		altFormats	: "j.n.Y|j.n.y|dmY|jnY",
		setValue	: function(date){ var date2 = this.formatDate(this.parseDate(date));
			Ext.form.DateField.superclass.setValue.call(this, date2 ? date2 : date); }
	});
}

if (Ext.form.TimeField){
	Ext.apply(Ext.form.TimeField.prototype, {
		minText		: "Tento čas je pred najskorším povoleným časom",
		maxText		: "Tento čas je po nejneskoršom povolenom čase",
		invalidText	: "{0} nemá správny formát času - musí byť v tvare H:MI",
		format		: "G:i",
		altFormats	: "G:i|Gi"
	});
}

if (Ext.form.NumberField){
	Ext.apply(Ext.form.NumberField.prototype, {
		minText		: "Najmenšia hodnota tejto položky je {minValue}",
		maxText		: "Najväčšia hodnota tejto položky je {maxValue}",
		minLengthText: "Najmenšia dĺžka tejto položky je {minLength}",
		maxLengthText: "Najväčšia dĺžka tejto položky je {maxLength}",
		nanText		: "{0} nie je platné číslo"
	});
}
if (Ext.layout.BorderLayout.SplitRegion) {
	Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
		splitTip: "Potiahnite pre zmenu rozmeru",
		collapsibleSplitTip: "Potiahnite pre zmenu rozmeru. Dvojklikom schováte."
	});
}
if(typeof(Sys)!=="undefined")Sys.Application.notifyScriptLoaded();