/*
 * jQuery i18n plugin
 * @requires jQuery v1.1 or later
 *
 * Examples at: http://recurser.com/articles/2008/02/21/jquery-i18n-translation-plugin/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 *
 * Based on 'javascript i18n that almost doesn't suck' by markos
 * http://markos.gaivo.net/blog/?p=100
 *
 * Revision: $Id$
 * Version: 1.0.0  Feb-10-2008
 */
 (function($) {
/**
 * i18n provides a mechanism for translating strings using a jscript dictionary.
 *
 */


/*
 * i18n property list
 */
$.i18n = {
	
	dict: null,
	
/**
 * setDictionary()
 * Initialise the dictionary and translate nodes
 *
 * @param property_list i18n_dict : The dictionary to use for translation
 */
	setDictionary: function(i18n_dict) {
		this.dict = i18n_dict;
	},
	
/**
 * _()
 * The actual translation function. Looks the given string up in the 
 * dictionary and returns the translation if one exists. If a translation 
 * is not found, returns the original word
 *
 * @param string str : The string to translate 
 * @param property_list params : params for using printf() on the string
 * @return string : Translated word
 *
 */
	_: function (str, params) {
		var transl = str;
		if (this.dict && this.dict[str]) {
			transl = this.dict[str];
		}
		return this.printf(transl, params);
	},
	
/**
 * toEntity()
 * Change non-ASCII characters to entity representation 
 *
 * @param string str : The string to transform
 * @return string result : Original string with non-ASCII content converted to entities
 *
 */
	toEntity: function (str) {
		var result = '';
		for (var i=0;i<str.length; i++) {
			if (str.charCodeAt(i) > 128)
				result += "&#"+str.charCodeAt(i)+";";
			else
				result += str.charAt(i);
		}
		return result;
	},
	
/**
 * stripStr()
 *
 * @param string str : The string to strip
 * @return string result : Stripped string
 *
 */
 	stripStr: function(str) {
		return str.replace(/^\s*/, "").replace(/\s*$/, "");
	},
	
/**
 * stripStrML()
 *
 * @param string str : The multi-line string to strip
 * @return string result : Stripped string
 *
 */
	stripStrML: function(str) {
		// Split because m flag doesn't exist before JS1.5 and we need to
		// strip newlines anyway
		var parts = str.split('\n');
		for (var i=0; i<parts.length; i++)
			parts[i] = stripStr(parts[i]);
	
		// Don't join with empty strings, because it "concats" words
		// And strip again
		return stripStr(parts.join(" "));
	},

/*
 * printf()
 * C-printf like function, which substitutes %s with parameters
 * given in list. %%s is used to escape %s.
 *
 * Doesn't work in IE5.0 (splice)
 *
 * @param string S : string to perform printf on.
 * @param string L : Array of arguments for printf()
 */
	printf: function(S, L) {
		if (!L) return S;

		var nS = "";
		var tS = S.split("%s");

		for(var i=0; i<L.length; i++) {
			if (tS[i].lastIndexOf('%') == tS[i].length-1 && i != L.length-1)
				tS[i] += "s"+tS.splice(i+1,1)[0];
			nS += tS[i] + L[i];
		}
		return nS + tS[tS.length-1];
	}

};


})(jQuery);

var dict = {

  "Required.": "Това поле е задължително.",
  "Invalid email.": "Невалиден е-мейл адрес.",
  "%min_length% characters min.": "Минимум %min_length% символа.",
  "%max_length% characters max.": "Максимум %max_length% символа.",
  "You must agree to the terms to continue.": "За да продължите трябва да приемете условията за ползване.",
  "Passwords doesn't match.": "Паролите не съвпадат.",
  "This e-mail address is already in use.": "Този е-мейл адрес вече е зает.",
  "The e-mail and/or password is invalid.": "Невалиден е-мейл адрес/парола.",
  "This e-mail address doesn't exist.": "Несъществуващ е-мейл адрес.",
  "Email": "Е-мейл",
  "View all": "Виж всички",
  "BGN": "лв",
  "лв.": "лв.",
  "List": "Лист",
  "Vacant jobs": "Свободни работни места",
  "No vacant jobs": "Няма свободни работни места",
  "Position": "Позиция",
  "City": "Град",
  "Ref. number": "Реф. Номер",
  "view": "виж",
  "News": "Новини",
  "See more": "Виж още",
  "Total votes": "Общо гласове",
  "Poll": "Анкета",
  "Vote": "Гласувай",
  "View poll results": "Виж резултатите",
  "Contact Us": "Контакти",
  "Your message has been sent successfully. We will contact You as soon as possible!": "Вашето съобщение беше изпратено успешно. Ще се свържем с Вас при първа възможност!",
  "Your name": "Вашето име",
  "E-mail": "Е-мейл",
  "Tel": "Тел",
  "Send": "Изпрати",
  "TV Commercials": "ТВ Реклами",
  "See all": "Виж всички",
  "Order details": "Детайли за поръчка",
  "Select payment mothod": "Изберете метод на плащане",
  "Delivery details": "Информация за доставка",
  "Preferred delivery time": "Предпочитано време за доставка",
  "New address": "Нов адрес",
  "Invoice details": "Информация за фактура",
  "New invoice details": "Нови данни за фактура",
  "Cancel": "Отказ",
  "Continue": "Продължи",
  "Loading": "Зареждане",
  "Bank card payment": "Плащане с банкова карта",
  "Pack": "Пакет",
  "Limited stock": "Ограничено количество",
  "Shopping cart": "Потребителска кошница",
  "Warranty +": "Гаранция +",
  "Delivery price": "Цена на доставка",
  "Total": "Общо",
  "Product": "Продукт",
  "Warranty": "Гаранция",
  "Standart warranty %months% months.": "Стандартна гаранция %months% месеца.",
  "Back": "Назад",
  "Quantity": "Количество",
  "Price": "Цена",
  "Product's price": "Цена на продуктите",
  "Add more": "Добави още",
  "Save changes": "Запази промените",
  "Order now": "Поръчай сега",
  "Inquiry": "Запитване",
  "Some of the products in your shopping cart are in limited stock. Your order will be marked as inquiry!": "Някои от продуктите във Вашата кошница са с ограничено количество. Вашата поръчка ще бъде маркирана като запитване!",
  "Packs": "Пакети",
  "Consumables": "Консумативи",
  "Accessories": "Аксесоари",
  "Your shopping cart is empty": "Потребителската Ви кошница е празна",
  "days": "дни",
  "hours": "часа",
  "min": "мин",
  "sec": "сек",
  "Technomarket": "Техномаркет",
  "Latest news": "Последни новини",
  "User profile": "Потребителски профил",
  "Logout": "Изход",
  "Orders": "Поръчки",
  "Favorites": "Любими",
  "Login": "Вход",
  "Remember me": "Запомни ме",
  "Forgot password?": "Забравена парола",
  "Register": "Регистрация",
  "Search": "Търсене",
  "Profile": "Профил",
  "Online shop": "Онлайн магазин",
  "Stores": "Магазини",
  "Careers": "Кариери",
  "Sitemap": "Карта на сайта",
  "Top sellers": "Най-продавани",
  "Products": "Продукти",
  "Filter": "Филтър",
  "Filter your results.": "Използвайте филтъра за да откриете Вашия продукт",
  "Clear filter": "Изчисти филтър",
  "Promotion": "Промоция",
  "Latest Technomarket promotion": "Последната промоция на Техномаркет",
  "View": "Виж",
  "Download": "Изтегли",
  "Technomarket promotion": "Промоция",
  "Download as pdf": "Изтегли като PDF",
  "total results": "Общо резултати",
  "for": "за",
  "Did you mean": "Може би имахте предвид",
  "No results": "Няма резултати",
  "Search results": "Резултати от търсене",
  "Working hours": "Работно време",
  "Monday - Saturday": "Понеделник - събота",
  "Sunday": "Неделя",
  "GPS": "GPS",
  "View map and gallery": "Виж карта и галерия",
  "Order": "Поръчка",
  "Your order was registered with number": "Вашата поръчка беше регистрирана под номер",
  "You will be transfered to the online payments system %provider%. Please click continue.": "Ще бъдете прехвърлени към системата за онлайн разплащания %provider%. Моля натиснете продължи.",
  "Confirmation e-mail was sent to your e-mail address.": "Е-мейл с потвърждение беше изпратен на посочения от Вас адрес.",
  "If you have questions": "Ако имате въпроси",
  "or tel. 0700 10 800 at the price of a single local call country-wide.": "или тел. 0700 10 800 на цената на един градски разговор за цялата страна.",
  "Print": "Печат",
  "Your order with number %number% has been paid successfully.": "Вашата поръчка с номер  %number% беше платена успешно.",
  "Order summary": "Информация за поръчка",
  "Payment for": "Плащане за",
  "Order #": "Поръчка №",
  "Buyer": "Купувач",
  "Payment summary": "Информация за плащане",
  "Result code": "Код с резултат",
  "Payment ID": "Номер на плащане",
  "Auth code": "Оторизационен код",
  "Reference": "Референция",
  "Transaction type": "Тип на транзакция",
  "Purchase": "Покупка",
  "Payment method": "Метод на плащане",
  "Bank card": "Банкова карта",
  "Transaction ID": "Номер на транзакция",
  "Post Date": "Дата",
  "Please print this information!": "Моля изпечатайте тази информация!",
  "Error": "Грешка",
  "Your inquiry was registered with number": "Вашето запитване беше регистрирано под номер",
  "We will contact you as soon as possible.": "Ще се свържем с Вас при първа възможност.",
  "You can download your proform invoice": "Може да изтеглите Вашата проформа фактура",
  "here": "тук",
  "Unsuccessful payment for order %number%.": "Неуспешно плащане на поръчка %number%.",
  "Compare products": "Сравни продукти",
  "Send to friend": "Изпрати",
  "Success": "Успешно",
  "Message was sent successfully!": "Съобщението беше изпратено успешно!",
  "New message": "Ново съобщение",
  "Friend's e-mail": "Е-мейл на приятел",
  "Sort by": "Подреди по",
  "PROMO": "ПРОМО",
  "NEW": "НОВО",
  "Compare": "Сравни",
  "Enter you personalised message": "Въведете Вашето съобщение",
  "Hi,\r\nI found an interesting offer for %product% on Technomarket's website!": "Здравей,\r\nНамерих интересна оферта за %product% на сайта на Техномаркет!",
  "Similar products": "Подобни продукти",
  "Art. #": "Арт.№",
  "Product information": "Информация за продукт",
  "Buy online with <br/>%discount%% discount.": "Купи онлайн с <br/>%discount%% отстъпка.",
  "Buy online - Promo price": "Купи онлайн - Промо цена",
  "Delivery price %price% with no additional taxes. All prices include VAT.": "Цена на доставка за цялата страна %price% без допълнително оскъпяване. Всички цени са с вкл. ДДС.",
  "Standart warranty %months% months": "Стандартна гаранция %months% месеца",
  "Buy now": "Купи сега",
  "In stock": "В наличност",
  "Notifications": "Известия",
  "Online shopping instruction": "Инструкция за онлайн пазаруване",
  "Specifications": "Спецификации",
  "You can find this product in": "Можете да намерите този продукт в",
  "view list": "виж списък",
  "Dear clients, prices on %site% are updated every 1 hour. It is possible that prices here doesn't match prices in the stores.": "Уважаеми клиенти, цените на %site% се обновяват на всеки един час. Възможно е несъответствие с цените в магазините.",
  "All prices listed here are for purchases online.": "Всички цени са за покупки онлайн.",
  "Period": "Период",
  "Art. N": "Арт. №",
  "Pack price": "Пакетна цена",
  "New products": "Нови продукти",
  "Promo products": "Промо продукти",
  "Product notifications": "Известия за продукт",
  "Please indicate if you want to receive notifications for this product:": "Моля посочете дали искате да получавате известия за този продукт:",
  "I want to receive information about promotions and discounts for this product.": "Искам да получавам информация за промоции и отстъпки за този продукт.",
  "I want to receive notification when this product becomes available in stock.": "Искам да бъде уведомен когато този продукт стане наличен.",
  "New Products": "Нови продукти",
  "Compare now": "Сравни сега",
  "orders": "поръчки",
  "page": "страница",
  "Date": "Дата",
  "Status": "Статус",
  "Amount": "Сума",
  "Payment": "Плащане",
  "Zip": "Пощенски код",
  "Address": "Адрес",
  "Delivery time": "Час на доставка",
  "Company": "Фирма",
  "Bulstat": "Булстат",
  "Director": "МОЛ",
  "Name": "Име",
  "EGN": "ЕГН",
  "Mobile": "Мобилен",
  "Please enter new password": "Моля въведете нова парола",
  "New password": "Нова парола",
  "Save": "Запиши",
  "Login required": "Изисква се вход",
  "Registration": "Регистрация",
  "I want to receive information for promotions and new products.": "Искам да получавам информация за промоции и нови продукти.",
  "Enter e-mail address": "Въведете е-мейл адрес",
  "Password retrieval instructions will be send on your email.": "Инструкции за възстановяване на паролата ще бъдат изпратени на посочения от Вас е-мейл адрес.",
  "Submit": "Изпрати",
  "Technomarket Bulgaria": "",
  "Close": "",
  "Select country": "",
  "Sex": "Пол",
  "Male": "Мъж",
  "Female": "Жена",
  "Birthday": "Дата на раждане",
  "Password": "Парола",
  "confirm password": "Потвърди парола",
  "Why do need this information?": "Защо ни е нужна тази информация?",
  "Year": "Година",
  "Month": "Месец",
  "Day": "Ден",
  "Loyal clients": "Лоялни клиенти",
  "Brand": "Марка",
  "Default": "Подразбиране",
  "Loyalty card inquiry form": "Заявление за клиентска карта",
  "You must provide either telephone number or email address.": "Моля, въведете телефонен номер или е-мейл адрес.",
  "Region": "Област",
  "Enter atleast one phonenumber.": "Въведете поне един телефонен номер.",
  "Note": "Забележка",
  "Private person": "Физическо лице",
  "Personal ID": "ЕГН",
  "Type": "Тип",
  "VAT registration": "ДДС регистрация",
  "Company ID": "Булстат",
  "Manager": "МОЛ",
  "Phone number": "Телефонен номер",
  "Age group": "Възрастова група",
  "from 20 to 30 years of age": "от 20 до 30 г.",
  "from 30 to 40 years of age": "от 30 до 40 г.",
  "from 40 to 50 years of age": "от 40 до 50 г.",
  "over 50 years of age": "над 50 г.",
  "Education": "Образование",
  "Primary": "Основно",
  "Secondary": "Средно",
  "Higher": "Висше",
  "Do you have children": "Имате ли деца",
  "yes": "да",
  "no": "не",
  "Own business": "Собствен бизнес",
  "Marital status": "Семейно положение",
  "married": "семеен/на",
  "single": "несемеен/на",
  "Do you plan the purchase of one of the following goods in the next six months": "Планирате ли през следващите шест месеца покупка на",
  "TV set": "телевизор",
  "Portable computer": "преносим компютър",
  "monitor": "монитор",
  "Refrigerator": "хладилник",
  "Home theatre system": "домашно кино",
  "Washing machine": "перална машина",
  "Cooking stove": "готварска печка",
  "Built-in kitchen appliances": "уреди за вграждане",
  "Costumer service at Technomarket is": "Обслужването в Техномаркет е",
  "Excellent": "отлично",
  "Very good": "много добро",
  "Good": "добро",
  "Not bad": "не е лошо",
  "Bad": "лошо",
  "Was this your first time shopping at Technomarket": "За първи път ли пазарувахте в Техномаркет",
  "What kind of services did you enjoy with us": "Какви услуги използвате при нас",
  "Consultation": "консултация",
  "Installation": "монтаж",
  "Transportation": "транспорт",
  "Insurance": "застраховка",
  "Additional warranty": "допълнителна гаранция",
  "Would you like to receive promotional offers on your email": "Желаете ли да получавате промо предложения на е-мейл",
  "How did you find out about the promotions in Technomarket": "От къде научихте за промоциите на Техномаркет",
  "press": "преса",
  "radio": "радио",
  "outdoor advertisements": "външна реклама",
  "television": "телевизия",
  "Technomarket's web site": "уеб сайт на Техномаркет",
  "at one of Technomarket's stores": "на място в магазина",
  "from a friend": "от приятел",
  "I'm not informed": "не съм информиран",
  "How do you plan your purchases": "Как планирате Вашите покупки",
  "according to your needs": "според нуждите",
  "according to the season": "според сезона",
  "according to the available income": "според наличните доходи",
  "according to the promotional offers": "според промоционалните предложения",
  "Do you think our offers match your demand": "Смятате ли, че нашите предложения отговарят на Вашето търсене",
  "sometimes": "понякога",
  "Recommendations": "Предложения и препоръки",
  "Technomarket TV": "Техномаркет ТВ",
  "SALE": "РАЗПРОДАЖБА",
  "Free delivery": "Безплатна доставка",
  "Pay on delivery": "Плащане при доставка",
  "Pay by bank": "Плащане по банков път",
  "Pay by bank card (UBB)": "Плащане с банкова карта",
  "Valid from %from% to %to%": "Важи от %from% до %to%",
  "Select region": "Избери регион",
  "Select city": "Избери град",
  "Results": "Резултати",
  "An email with instructions how to recover your password has been sent to %email%.": "Е-мейл с инструкция как да възстановите паролата си беше изпратен на %email%.",
  "Confirm": "Потвърди",
  "I accept terms & conditions.": "Приемам условията за ползване.",
  "%name%, we wish you a pleasant shopping on our web site!": "%name%, желаем Ви приятен пазаруване!",
  "Others": "Други",
  "Pay by bank card (FIB)": "Плащане с банкова карта (Първа инвестиционна банка)",
  "Try again": "Опитайте пак",
  "fullname": "Три имена",
  "permanent address": "Постоянен адрес"	
}
$.i18n.setDictionary(dict);

