// JavaScript Document
var LANG = document.html.lang;

var Messages = {
	
	data: {
		cs: {
			MORE: 'Více',
			PACK1: 'karton',
			PACK24: 'kartony',
			PACK5: 'kartonů',
			BOTTLE1: 'lahev',
			BOTTLE24: 'lahve',
			BOTTLE5: 'lahví',
			SET1: 'set',
			SET24: 'sety',
			SET5: 'setů',
			PRICE: 'Cena',
			REQUIRED: 'Toto pole je vyžadováno',
			EMAIL_INVALID: 'Zadaná emailová adresa je neplatná.',
			PHONE_INVALID: 'Neplatný formát telefonního čísla. Příklad: <strong>123456789</strong>',
			ZIP_INVALID: 'Neplatný formát PSČ. Příklad: <strong>123 45</strong>',
			AGREEMENT_WARNING: 'Před odesláním objednávky musíte souhlasit se všeobecnými obchodními podmínkami.',
			VALIDATION_FAILED: 'Prosím, vyplňte správně všechna požadovaná pole označená vykřičníkem.',
			CONFIRM_DELETE_CODE: 'Opravdu si přejete odebrat tento kód?',
			DISCOUNT: 'Sleva',
			INC_VAT: 'vč. DPH'
		},
		en: {
			MORE: 'More',
			PACK1: 'case',
			PACK24: 'cases',
			PACK5: 'cases',
			BOTTLE1: 'bottle',
			BOTTLE24: 'bottles',
			BOTTLE5: 'bottles',
			SET1: 'mixed case',
			SET24: 'mixed cases',
			SET5: 'mixed cases',
			PRICE: 'price',
			REQUIRED: 'This field is required',
			EMAIL_INVALID: 'Entered email is invalid.',
			PHONE_INVALID: 'Phone number is invalid. Example: <strong>123456789</strong>',
			ZIP_INVALID: 'ZIP code is invalid. Example: <strong>123 45</strong>',
			AGREEMENT_WARNING: 'You have to agree with the business conditions before you send your order.',
			VALIDATION_FAILED: 'Please fill in all required fields marked with the exclamation mark.',
			CONFIRM_DELETE_CODE: 'Are you sure you want to remove this code?',
			DISCOUNT: 'Discount',
			INC_VAT: 'incl. VAT'
		}
		
	},
	
	language: LANG,
	
	get: function(key){
		switch (key){
			default:
			  if (this.data[this.language][key] != undefined){
				  return this.data[this.language][key];
				} else {
					this.data['cs'][key];
				}
		}
	}
 };
