var translator = {
	currentLanguage : 'pl', // default value
	en: {
		address : 'Address',
		cannot_find_form_field___in_the_form : 'Cannot find form field "%n%" in the form "%form%"',
		cannot_find_label_tag : 'Cannot find label tag (id="%t%")',
		cannot_verify_match_field___was_not_found : 'Cannot verify match. Field "%m%" was not found',
		city : 'City',
		company_name : 'Company name',
		email : 'E-mail',
		form___can_not_be_found_in_this_document : 'Form "%form%" can not be found in this document',
		in_oreder_to_make_a_reservation_you_must_accept_the_reservation_conditions : 'In oreder to make a reservation, you must accept the reservation conditions!',
		incomplete___form_field_descriptor_entry___attribute_is_missing : 'Incomplete "%n%" form field descriptor entry. "l" attribute is missing',
		is_a_required_field : '"%l%" is a required field',
		is_not_a_correct_value_of_the___field : '"%v%" is not a correct value of the "%l%" field',
		name : 'Name',
		name_of_person_making_the_reservation : 'Name of person making the reservation',
		name_of_person_staying_the_night : 'Name of person staying the night',
		name_on_the_invoice : 'Name on the Invoice',
		must_fullfil_the___condition : '"%l%" must fullfil the "%ml%" condition',
		no_form_name_passed_to_validator_construction_routine : 'No form name passed to validator construction routine',
		no_array_of___form_fields_passed_to_validator_construction_routine : 'No array of "%form%" form fields passed to validator construction routine',
		phone_number : 'Phone number',
		surname : 'Surname', 
		surname_of_person_making_the_reservation : 'Surname of person making the reservation',
		surname_of_person_staying_the_night : 'Surname of person staying the night',
		surname_on_the_invoice : 'Surname on the Invoice',
		tax_id : 'Tax ID',
		the_contents_of_the___field_must_contain_at_least___characters : 'The contents of the "%l%" field must contain at least %mn% characters',
		the_contents_of_the___field_must_contain_no_more_than___characters : 'The contents of the "%l%" field must contain no more than %mx% characters',
		zip_code : 'Zip code'
	},
	pl : {
		address : 'Adres',
		cannot_find_form_field___in_the_form : 'Nie można odnaleźć pola formularza "%n%" w formularzu "%form%"',
		cannot_find_label_tag : 'Nie można odnaleźć znacznika etykiety (id="%t%")',
		cannot_verify_match_field___was_not_found : 'Nie można zweryfikować zestawienia. Nie znaleziono pola (id="%m%")',
		city : 'Miasto',
		company_name : 'Nazwa firmy',
		email : 'E-mail',
		form___can_not_be_found_in_this_document : 'Formularz "%form%" nie został odnaleziony w tym dokumencie',
		in_oreder_to_make_a_reservation_you_must_accept_the_reservation_conditions : 'Aby dokonać rezerwacji, należy zaakceptować warunki rezerwacji!',
		incomplete___form_field_descriptor_entry___attribute_is_missing : 'Niekompletny wpis deskryptora "%n%" pola formularza. Brak atrybutu "l"',
		is_a_required_field : '"%l%" jest polem wymaganym',
		is_not_a_correct_value_of_the___field : '"%v%" nie jest prawidłową wartością pola "%l%"',
		name : 'Imię',
		name_of_person_making_the_reservation : 'Imię rezerwującego',
		name_of_person_staying_the_night : 'Imię nocującego',
		name_on_the_invoice : 'Imię na fakturze',
		must_fullfil_the___condition : '"%l%" musi spełniać warunek "%ml%"',
		no_form_name_passed_to_validator_construction_routine : 'Żadna nazwa formularza nie została przekazana do procedury walidacji tworzenia',
		no_array_of___form_fields_passed_to_validator_construction_routine : 'Żaden układ "%form%" pól formularza nie został przekazany do procedury walidacji tworzenia',
		phone_number : 'Numer telefonu',
		surname : 'Nazwisko',
		surname_of_person_making_the_reservation : 'Nazwisko rezerwującego',
		surname_of_person_staying_the_night : 'Nazwisko nocującego', 
		surname_on_the_invoice : 'Nazwisko na fakturze',
		tax_id : 'Numer NIP',
		the_contents_of_the___field_must_contain_at_least___characters : 'Zawartość pola "%l%" musi mieć minimum %mn% znaków',
		the_contents_of_the___field_must_contain_no_more_than___characters : 'Zawartość pola "%l%"nie może mieć więcej niż %mx% znaków',
		zip_code : 'Kod pocztowy'
	},
	ro : {
		address : 'Adresa',
		cannot_find_form_field___in_the_form : 'Nu am putut gasi campul "%n%" in formularul "%form%"',
		cannot_find_label_tag : 'Nu am putut gasi tag-ul (id="%t%")',
		cannot_verify_match_field___was_not_found : 'Nu am putut verifica potrivirea. Campul "%m%" nu a fost gasit',
		city : 'Oras', 
		company_name : 'Numele societatii',
		email : 'Email',
		form___can_not_be_found_in_this_document : 'Fomularul "%form%" nu poate fi gasit in acest document',
		in_oreder_to_make_a_reservation_you_must_accept_the_reservation_conditions : 'Pentru a face o rezervare mai intai trebuie sa acceptatii termenii si conditiile rezervarii',
		incomplete___form_field_descriptor_entry___attribute_is_missing : 'Intrare descriptiva incompleta a campului "%n%". Atributul "l" lipseste',
		is_a_required_field : '"%l%" este camp obligatoriu',
		is_not_a_correct_value_of_the___field : '"%v%" nu este o valoare corecta pentru campul "%l%"',
		name : 'Nume',
		name_of_person_making_the_reservation : 'Numele persoanei care face rezervarea',
		name_of_person_staying_the_night : 'Numele persoanei care se cazeaza',
		name_on_the_invoice : 'Numele pe Factura',
		must_fullfil_the___condition : '"%l%" trebuie sa indeplineasca conditia "%ml%"',
		no_form_name_passed_to_validator_construction_routine : 'Nici un nume de formular nu a trecut de rutina constructiei de validare',
		no_array_of___form_fields_passed_to_validator_construction_routine : 'Nici un vector al formularului "%form%" nu au trecut de rutina constructiei de validare',
		phone_number : 'Numar de telefon',
		surname : 'Prenume',
		surname_of_person_making_the_reservation : 'Prenumele persoanei care face rezervarea',
		surname_of_person_staying_the_night : 'Prenumele persoanei care se cazeaza',
		surname_on_the_invoice : 'Prenumele pe Factura',
		tax_id : 'CUI',
		the_contents_of_the___field_must_contain_at_least___characters : 'Continutul campului "%l%" trebuie sa contina cel putin %mn% caractere',
		the_contents_of_the___field_must_contain_no_more_than___characters : 'Continutul campului "%l%" nu trebuie sa contina mai mult de %mx% caractere',
		zip_code : 'Cod Postal'
	},
	get : function(phrase) {
		var cl = translator.currentLanguage;
		return eval("translator." + cl + "." + phrase);
	},
	setLanguage : function(langTag) {
		translator.currentLanguage = langTag; 
	}
};