/*
 * 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.": "Zahtevano",
  "Invalid email.": "Netačan mail",
  "%min_length% characters min.": "%min_length% karakteri min",
  "%max_length% characters max.": "%max_length% karakteri max",
  "You must agree to the terms to continue.": "Morate prihvatiti uslove kako bi nastavili.",
  "Passwords doesn't match.": "Lozinka se ne podudara.",
  "This e-mail address is already in use.": "Ova e mail adresa je već u upotrebi",
  "The e-mail and/or password is invalid.": "Ovaj e mail i/ili lozinka je netačna.",
  "This e-mail address doesn't exist.": "Ova e mail adresa ne postoji.",
  "Email": "e-mail",
  "View all": "Vidi sve",
  "BGN": "RSD",
  "лв.": "RSD",
  "List": "Lista",
  "Vacant jobs": "Slobodna radna mesta",
  "No vacant jobs": "Nema slobodnih radnih mesta",
  "Position": "Pozicija",
  "City": "Grad",
  "Ref. number": "Ref. broj",
  "view": "pogledaj",
  "News": "Novosti",
  "See more": "Vidi više",
  "Total votes": "Ukupni glasovi",
  "Poll": "Anketa",
  "Vote": "Glasaj",
  "View poll results": "Vidi rezultate ankete",
  "Contact Us": "Kontaktirajte nas",
  "Your message has been sent successfully. We will contact You as soon as possible!": "Vaša poruka je uspešno poslata. Odgovorićemo Vam u što kraćem roku.",
  "Your name": "Vaše ime",
  "E-mail": "E-mail",
  "Tel": "Tel",
  "Send": "Pošalji",
  "TV Commercials": "TV reklame",
  "See all": "Vidi sve",
  "Order details": "Lista porudžbina",
  "Select payment mothod": "Odaberi vrstu plaćanja",
  "Delivery details": "Detalji isporuke",
  "Preferred delivery time": "Željeno vreme isporuke",
  "New address": "Nova adresa",
  "Invoice details": "Detalji računa",
  "New invoice details": "Novi detalji računa",
  "Cancel": "Odustani",
  "Continue": "Nastavi",
  "Loading": "Učitavanje",
  "Bank card payment": "Plaćanje platnom karticom",
  "Pack": "Paket",
  "Limited stock": "Ograničene zalihe",
  "Shopping cart": "Korpa",
  "Warranty +": "Garancija +",
  "Delivery price": "Cena isporuke",
  "Total": "Ukupno",
  "Product": "Proizvod",
  "Warranty": "Garancija",
  "Standart warranty %months% months.": "Standardna garancija %months% meseci",
  "Back": "Nazad",
  "Quantity": "Količina",
  "Price": "Cena",
  "Product's price": "Cena proizvoda",
  "Add more": "Dodaj još",
  "Save changes": "Sačuvaj promene",
  "Order now": "Naruči odmah",
  "Inquiry": "Upit",
  "Some of the products in your shopping cart are in limited stock. Your order will be marked as inquiry!": "Neki od proizvoda u vašoj korpi imaju ograničene količine zaliha. Vaša će porudžbina biti zabeležena kao upit.",
  "Packs": "Paketi",
  "Consumables": "Potrošni material",
  "Accessories": "Dodaci",
  "Your shopping cart is empty": "Vaša korpa je prazna",
  "days": "dana",
  "hours": "sati",
  "min": "min",
  "sec": "sec",
  "Technomarket": "Tehnomarket",
  "Latest news": "Najnovije vesti",
  "User profile": "Korisnički profil",
  "Logout": "Odjava",
  "Orders": "Porudžbine",
  "Favorites": "Omiljeni",
  "Login": "Prijava",
  "Remember me": "Zapamti me",
  "Forgot password?": "Zaboravili ste lozinku?",
  "Register": "Registracija",
  "Search": "Pretraživanje",
  "Profile": "Profil",
  "Online shop": "Online kupovina",
  "Stores": "Prodajna mesta",
  "Careers": "Posao",
  "Sitemap": "Mapa sajta",
  "Top sellers": "Najprodavanije",
  "Products": "Proizvodi",
  "Filter": "Filter",
  "Filter your results.": "Filtriraj rezultate",
  "Clear filter": "Obriši filter",
  "Promotion": "Akcija",
  "Latest Technomarket promotion": "Zadnja Tehnomarket akcija",
  "View": "Pogledaj",
  "Download": "Preuzmi",
  "Technomarket promotion": "Tehnomarket akcija",
  "Download as pdf": "Preuzmi kao pdf",
  "total results": "Ukupni rezultat",
  "for": "Za",
  "Did you mean": "Da li ste mislili",
  "No results": "Nema rezultata",
  "Search results": "Rezultat pretraživanja",
  "Working hours": "Radno vreme",
  "Monday - Saturday": "Ponedeljak - Subota",
  "Sunday": "Nedelja",
  "GPS": "GPS",
  "View map and gallery": "Pogledaj mapu i galeriju",
  "Order": "Porudžbina",
  "Your order was registered with number": "Vaša je porudžbina registrovana pod brojem",
  "You will be transfered to the online payments system %provider%. Please click continue.": "Bićete upućeni na on line sistem plaćanja %provider%. Kliknite za nastavak.",
  "Confirmation e-mail was sent to your e-mail address.": "Potvrdni mail Vam je poslat na Vašu e-mail adresu.",
  "If you have questions": "Ako imate pitanja",
  "or tel. 0700 10 800 at the price of a single local call country-wide.": "Ili na info telefon 011 20 90 490",
  "Print": "Štampa",
  "Your order with number %number% has been paid successfully.": "Vaša porudžbina pod brojem %number% je uspešno plaćena.",
  "Order summary": "Sadržaj porudžbine",
  "Payment for": "Plaćanje za",
  "Order #": "Porudžbina #",
  "Buyer": "Kupac",
  "Payment summary": "Plaćanja ukupno",
  "Result code": "Kod rezultata",
  "Payment ID": "ID plaćanja",
  "Auth code": "Kod za autorizaciju",
  "Reference": "Reference",
  "Transaction type": "Tip transakcije",
  "Purchase": "Kupovina",
  "Payment method": "Vrsta plaćanja",
  "Bank card": "Platna kartica",
  "Transaction ID": "ID transakcije",
  "Post Date": "Datum",
  "Please print this information!": "Molimo Vas odštampajte ovaj podatak!",
  "Error": "Greška",
  "Your inquiry was registered with number": "Vaš upit je registrovan pod brojem",
  "We will contact you as soon as possible.": "Odgovorićemo Vam u što kraćem roku.",
  "You can download your proform invoice": "Možete preuzeti svoj predračun.",
  "here": "ovde",
  "Unsuccessful payment for order %number%.": "Neuspešno plaćanje za porudžbinu %number%",
  "Compare products": "Uporedi proizvode",
  "Send to friend": "Pošalji prijatelju",
  "Success": "Uspešno",
  "Message was sent successfully!": "Poruka je uspešno poslata!",
  "New message": "Nova poruka",
  "Friend's e-mail": "E-mail prijatelja",
  "Sort by": "Poređaj po",
  "PROMO": "AKCIJA",
  "NEW": "NOVO",
  "Compare": "Uporedi",
  "Enter you personalised message": "Upišite svoju poruku",
  "Hi,\r\nI found an interesting offer for %product% on Technomarket's website!": "Zdravo, \ r \ nl je našao zanimljivu ponudu za %product% na Tehnomarket stranici!",
  "Similar products": "Slični proizvodi",
  "Art. #": "Art. #",
  "Product information": "Informacije o proizvodu",
  "Buy online with <br/>%discount%% discount.": "Kupujte on line sa <br/>%discount%% popust",
  "Buy online - Promo price": "Kupujte on line - Akcijska cena",
  "Delivery price %price% with no additional taxes. All prices include VAT.": "Cena isporuke %price% bez dodatnih troškova. Na sve cene obračunat je PDV.",
  "Standart warranty %months% months": "Standardna garancija %months% meseci",
  "Buy now": "Kupi sad",
  "In stock": "Na zalihama",
  "Notifications": "Obavesti",
  "Online shopping instruction": "Uputstva za On Line kupovinu",
  "Specifications": "Specifikacije",
  "You can find this product in": "Ovaj proizvod možete naći na",
  "view list": "Pogledaj listu",
  "Dear clients, prices on %site% are updated every 1 hour. It is possible that prices here doesn't match prices in the stores.": "Poštovani kupci, cene na %site% se ažuriraju svaki sat. Postoji mogućnost da prikazana cena ne odgovara ceni u radnji.",
  "All prices listed here are for purchases online.": "Sve navedene cene važe za on line kupovinu.",
  "Period": "Period",
  "Art. N": "Broj artikla",
  "Pack price": "Cena pakovanja",
  "New products": "Novi proizvodi",
  "Promo products": "Proizvodi na akciji",
  "Product notifications": "Obavesti o proizvodu",
  "Please indicate if you want to receive notifications for this product:": "Molimo Vas da naznačite da li želite da primate obaveštenja za ovaj proizvod:",
  "I want to receive information about promotions and discounts for this product.": "Želim da primam obaveštenja o akcijskim i novim proizvodima.",
  "I want to receive notification when this product becomes available in stock.": "Želim  da primim obaveštenje kada ovaj proizvod bude dostupan.",
  "New Products": "Novi proizvodi",
  "Compare now": "Uporedi sad",
  "orders": "porudžbine",
  "page": "stranica",
  "Date": "Datum",
  "Status": "Status",
  "Amount": "Iznos",
  "Payment": "Plaćanje",
  "Zip": "Poštanski broj",
  "Address": "Adresa",
  "Delivery time": "Vreme isporuke",
  "Company": "Preduzeće",
  "Bulstat": "PIB",
  "Director": "Direktor",
  "Name": "Ime i prezime",
  "EGN": "eng",
  "Mobile": "Mobilni telefon",
  "Please enter new password": "Molimo Vas da unesete novu lozinku",
  "New password": "Nova lozinka",
  "Save": "Sačuvaj",
  "Login required": "Morate se prijaviti",
  "Registration": "Registracija",
  "I want to receive information for promotions and new products.": "Želim da primam informacije o akcijskim proizvodima i novim proizvodima.",
  "Enter e-mail address": "Unesite e-mail adresu",
  "Password retrieval instructions will be send on your email.": "Uputstvo za obnavljanje lozinke biće poslati na Vašu e-mail adresu.",
  "Submit": "Podneti",
  "Technomarket Bulgaria": "Tehnomarket Srbija",
  "Close": "Zatvori",
  "Select country": "Odaberi zemlju",
  "Sex": "Pol",
  "Male": "Muško",
  "Female": "Žensko",
  "Birthday": "Datum rođenja",
  "Password": "Lozinka",
  "confirm password": "potvrdi lozinku",
  "Why do need this information?": "Zašto nam je potrebna ova informacija?",
  "Year": "Godina",
  "Month": "Mesec",
  "Day": "Dan",
  "Loyal clients": "Lojalni korisnici",
  "Brand": "Proizvođač",
  "Default": "Default",
  "Loyalty card inquiry form": "Formular za lojalti karticu",
  "You must provide either telephone number or email address.": "Morate ostaviti ili broj telefona ili e-mail adresu",
  "Region": "Opština",
  "Enter atleast one phonenumber.": "Unesite bar jedan telefonski broj",
  "Note": "Beleška",
  "Private person": "Privatna osoba",
  "Personal ID": "Lični broj",
  "Type": "Tip",
  "VAT registration": "PDV registracija",
  "Company ID": "PIB firme",
  "Manager": "Direktor",
  "Phone number": "Broj telefona",
  "Age group": "Starosna grupa",
  "from 20 to 30 years of age": "od 20 do 30 godina starosti",
  "from 30 to 40 years of age": "od 30 do 40 godina starosti",
  "from 40 to 50 years of age": "od 40 do 50 godina starosti",
  "over 50 years of age": "preko 50 godina starosti",
  "Education": "Obrazovanje",
  "Primary": "Osnovno",
  "Secondary": "Srednje",
  "Higher": "Visoko",
  "Do you have children": "Da li imate dece?",
  "yes": "da",
  "no": "ne",
  "Own business": "Vlasnik preduzeća",
  "Marital status": "Bračni status",
  "married": "oženjen/udata",
  "single": "samac",
  "Do you plan the purchase of one of the following goods in the next six months": "Da li planirati kupovinu jednog od navedenih proizvoda u sledećih šest meseci?",
  "TV set": "TV set",
  "Portable computer": "Laptop računar",
  "monitor": "Monitor",
  "Refrigerator": "Frižider",
  "Home theatre system": "Kućni bioskop",
  "Washing machine": "Veš mašina",
  "Cooking stove": "Šporet",
  "Built-in kitchen appliances": "Ugradna bela tehnika",
  "Costumer service at Technomarket is": "Usluga u Tehnomarketu je",
  "Excellent": "Odlična",
  "Very good": "Vrlo dobra",
  "Good": "Dobra",
  "Not bad": "Nije loša",
  "Bad": "Loša",
  "Was this your first time shopping at Technomarket": "Da li je ovo vaša prva kupovina u Tehnomarketu",
  "What kind of services did you enjoy with us": "Kako biste ocenili uslugu kod nas",
  "Consultation": "Savetovanje",
  "Installation": "Instalacija",
  "Transportation": "Transport",
  "Insurance": "Osiguranje",
  "Additional warranty": "Garncija +",
  "Would you like to receive promotional offers on your email": "Da li žellite da primate akcijske ponude na Vašu e-mail adresu?",
  "How did you find out about the promotions in Technomarket": "Kako ste saznali za akciju u Tehnomarketu?",
  "press": "štampa",
  "radio": "radio",
  "outdoor advertisements": "outdoor oglašavanje",
  "television": "televizija",
  "Technomarket's web site": "Tehnomarket-ovim web stranicama",
  "at one of Technomarket's stores": "u jednoj od Tehnomarket-ovih radnji",
  "from a friend": "od prijatelja",
  "I'm not informed": "nisam informisan",
  "How do you plan your purchases": "Kako planirate Vašu kupovinu?",
  "according to your needs": "prema Vašim potrebama",
  "according to the season": "prema sezoni",
  "according to the available income": "prema primanjima",
  "according to the promotional offers": "po promotivnim ponudama",
  "Do you think our offers match your demand": "Da li mislite da naša ponuda odgovara Vašim potrebama.",
  "sometimes": "ponekad",
  "Recommendations": "Preporuke",
  "Technomarket TV": "Tehnomarket TV",
  "Select region": "Odaberi opštinu",
  "Select city": "Odaberi grad",
  "Results": "Rezultati",
  "An email with instructions how to recover your password has been sent to %email%.": "E-mail sa uputstvom kako povratiti Vašu lozinku poslat je na %email%.",
  "Confirm": "Potvrdi",
  "Forgot password request": "Zahtev za izgubljenom lozinkom",
  "I accept terms & conditions.": "Slažem se s uslovima korišćenja",
  "Pay by bank": "Virmansko plaćanje",
  "Pay by bank card (PBZ)": "Plaćanje platnom karticom",
  "Rejected inquiry": "Upit odbijen",
  "Unfinished": "Nedovršena porudžbina",
  "Canceled": "Otkazana porudžbina",
  "Completed": "Izvršena porudžbina",
  "Waiting delivery": "Čekanje dostave",
  "Waiting payment": "Čekanje uplate",
  "Accepted inquiry": "Upit prihvaćen",
  "Sent": "Poslato",
  "Sent with courier": "Poslato dostavom",
  "details": "detalji",
  "%name%, we wish you a pleasant shopping on our web site!": "%name%, želimo ti ugodnu kupovinu na našoj web stranici!",
  "order now": "naruči",
  "By bank": "Virmansko plaćanje",
  "By card": "Platnom karticom",
  "Others": "Ostalo",
  "Password updated!": "Lozinka je potvrđena",
  "Invalid discount code.": "Pogrešna šifra za popust.",
  "The minimum price to use this code is %amount%.": "Minimalni iznos u vašoj korpi mora biti %amount% kako biste ostvarili vaš popust.",
  "Please login to use discount codes.": "Molim ulogujte se kako bi mogli koristiti šifru za popust.",
  "You have already used this discount code.": "Već ste koristili šifru za popust.",
  "Discount code": "Upišite šifru za popust",
  "Pay on delivery": "Plaćanje pouzećem",
  "Registration confirmation": "Potvrda registracije"	
}
$.i18n.setDictionary(dict);

