/*
 * 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.": "Zahtjevano",
  "Invalid email.": "Netočan mail",
  "%min_length% characters min.": "%min_length% katakteristke min",
  "%max_length% characters max.": "%max_length% katakteristke max",
  "You must agree to the terms to continue.": "Morate prihvatiti uvjete 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 netočna.",
  "This e-mail address doesn't exist.": "Ova e mail adresa ne postoji.",
  "Email": "e-mail",
  "View all": "Vidi sve",
  "BGN": "kn",
  "лв.": "kn",
  "List": "Lista",
  "Vacant jobs": "Slobodna radna mjesta",
  "No vacant jobs": "Nema slobodnih radnih mjesta",
  "Position": "Pozicija",
  "City": "grad",
  "Ref. number": "Ref. broj",
  "view": "Pogled",
  "News": "Novosti",
  "See more": "Vidi više",
  "Total votes": "Ukupni glasovi",
  "Poll": "anketa",
  "Vote": "Glasaj",
  "View poll results": "Vidi rezultate ankete",
  "Contact Us": "Kontaktiraj nas",
  "Your message has been sent successfully. We will contact You as soon as possible!": "Vaša poruka je uspješno poslana. Kontaktirat ćemo vas što prije.",
  "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 narudžba",
  "Select payment mothod": "Odaberi vrstu plaćanja",
  "Delivery details": "Detalji dostave",
  "Preferred delivery time": "Željeno vrijeme dostave",
  "New address": "Nova adresa",
  "Invoice details": "Detalji računa",
  "New invoice details": "Novi detalji računa",
  "Cancel": "Odustani",
  "Continue": "Nastavi",
  "Loading": "Učitavanja",
  "Bank card payment": "Plaćanje bankovnom karticom",
  "Pack": "Paket",
  "Limited stock": "Ograničene zalihe",
  "Shopping cart": "Košarica",
  "Warranty +": "Jamstvo +",
  "Delivery price": "Cijena dostave",
  "Total": "Ukupno",
  "Product": "Proizvod",
  "Warranty": "Jamstvo",
  "Standart warranty %months% months.": "Standardno jamstvo %months% mjeseci",
  "Back": "Nazad",
  "Quantity": "Količina",
  "Price": "Cijena",
  "Product's price": "Cijena proizvoda",
  "Add more": "Dodaj još",
  "Save changes": "Sačuvaj promjene",
  "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 košarici imaju ograničene količine zaliha. Vaša narudžba će biti zabilježena kao upit.",
  "Packs": "Paketi",
  "Consumables": "Potrošni",
  "Accessories": "Dodaci",
  "Your shopping cart is empty": "Vaša košarica je prazna",
  "days": "Dana",
  "hours": "Sati",
  "min": "Min",
  "sec": "Sec",
  "Technomarket": "Technomarket",
  "Latest news": "Najnovije vijesti",
  "User profile": "Korisnički profil",
  "Logout": "Odjava",
  "Orders": "Narudžbe",
  "Favorites": "Favoriti",
  "Login": "Prijava",
  "Remember me": "zapamti me",
  "Forgot password?": "Zaboravili ste lozinku?",
  "Register": "Registracija",
  "Search": "Pretraživanje",
  "Profile": "Profil",
  "Online shop": "Online kupovina",
  "Stores": "Prodajna mjesta",
  "Careers": "Posao",
  "Sitemap": "Karta weba",
  "Top sellers": "Najprodavanije",
  "Products": "Proizvodi",
  "Filter": "Filter",
  "Filter your results.": "Filtriraj rezultate",
  "Clear filter": "Obriši filter",
  "Promotion": "Akcija",
  "Latest Technomarket promotion": "Zadnja Technomarket akcija",
  "View": "Pogledaj",
  "Download": "Preuzmi",
  "Technomarket promotion": "Technomarket akcija",
  "Download as pdf": "Preuzmi kao pdf",
  "total results": "Ukupni rezultat",
  "for": "Za",
  "Did you mean": "Jeste li mislili",
  "No results": "Nema rezultata",
  "Search results": "Rezultat pretraživanja",
  "Working hours": "Radno vrijeme",
  "Monday - Saturday": "Ponedjeljak - Subota",
  "Sunday": "Nedjelja",
  "GPS": "GPS",
  "View map and gallery": "Pogledaj kartu i galeriju",
  "Order": "Narudžba",
  "Your order was registered with number": "Vaša je narudžba zabilježena pod brojem",
  "You will be transfered to the online payments system %provider%. Please click continue.": "Bit ć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 poslan 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 telefon +385 1 3746 644.",
  "Print": "Ispis",
  "Your order with number %number% has been paid successfully.": "Vaša narudžba pod brojem %number% je uspješno plaćena.",
  "Order summary": "Sažetak narudžbe",
  "Payment for": "Plaćanje za",
  "Order #": "Order #",
  "Buyer": "Kupac",
  "Payment summary": "Sažetak plaćanja",
  "Result code": "Kod rezultata",
  "Payment ID": "ID plaćana",
  "Auth code": "Autorizacijski kod",
  "Reference": "Upućivanje",
  "Transaction type": "Tip transakcije",
  "Purchase": "Kupnja",
  "Payment method": "Vrsta plaćanja",
  "Bank card": "Bankovna kartica",
  "Transaction ID": "ID transakcije",
  "Post Date": "Datum",
  "Please print this information!": "Molimo Vas ispišite ovaj podatak!",
  "Error": "Greška",
  "Your inquiry was registered with number": "Vaš upit je zabilježen pod brojem",
  "We will contact you as soon as possible.": "Kontaktirat ćemo Vas što prije.",
  "You can download your proform invoice": "Možete preuzeti svoj predračun.",
  "here": "ovdje",
  "Unsuccessful payment for order %number%.": "Neuspješno plaćanje za narudžbu %number%",
  "Compare products": "Usporedi proizvode",
  "Send to friend": "Pošalji prijatelju",
  "Success": "Uspješno",
  "Message was sent successfully!": "Poruka je uspješno poslana!",
  "New message": "Nova poruka",
  "Friend's e-mail": "E-mail prijatelja",
  "Sort by": "Poredaj po",
  "PROMO": "AKCIJA",
  "NEW": "NOVO",
  "Compare": "Usporedi",
  "Enter you personalised message": "Upišite svoju poruku",
  "Hi,\r\nI found an interesting offer for %product% on Technomarket's website!": "Bok, \ r \ nl je našao zanimljivu ponudu za %product% na Technomarket stranici!",
  "Similar products": "Slični proizvodi",
  "Art. #": "Art. #",
  "Product information": "Informacije o proizvodu",
  "Buy online with <br/>%discount%% discount.": "Kupujte on line s <br/>%discount%% popusta",
  "Buy online - Promo price": "Kupujte on line - Akcijska cijena",
  "Delivery price %price% with no additional taxes. All prices include VAT.": "Cijena dostave %price% bez dodatnih troškova. Na sve cijene obračunat je PDV.",
  "Standart warranty %months% months": "Standardna garancija %months% mjeseci",
  "Buy now": "Kupi sad",
  "In stock": "Na zalihi",
  "Notifications": "Obavijesti",
  "Online shopping instruction": "Upute za On Line kupovinu",
  "Specifications": "Specifikacija",
  "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, cijene na %site% se ažuriraju svaki sat. Postoji mogućnost da cijena prikazana ovdje ne odgovara cijeni u trgovini.",
  "All prices listed here are for purchases online.": "Sve navedene cijene su za kupovinu on line.",
  "Period": "Period",
  "Art. N": "Broj artikla",
  "Pack price": "Cijena za pakiranje",
  "New products": "Novi proizvodi",
  "Promo products": "Proizvodi na akciji",
  "Product notifications": "Obavijesti o proizvodu",
  "Please indicate if you want to receive notifications for this product:": "Molimo Vas da naznačite da li želite primati obavijesti za ovaj proizvod:",
  "I want to receive information about promotions and discounts for this product.": "Želim primati obavijesti o akcijskim i novim proizvodima.",
  "I want to receive notification when this product becomes available in stock.": "Želim primiti obavijest kada ovaj proizvod bude dostupan na zalihi.",
  "New Products": "Novi proizvodi",
  "Compare now": "Usporedi sad",
  "orders": "Narudžba",
  "page": "stranica",
  "Date": "datum",
  "Status": "status",
  "Amount": "iznos",
  "Payment": "plaćanje",
  "Zip": "poštanski broj",
  "Address": "adresa",
  "Delivery time": "vrijeme dostave",
  "Company": "tvrtka",
  "Bulstat": "OIB",
  "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": "spremi",
  "Login required": "morate se prijaviti",
  "Registration": "registracija",
  "I want to receive information for promotions and new products.": "Želim primati obavijesti o akcijskim proizvodima i novim proizvodima.",
  "Enter e-mail address": "unesite e-mail adresu",
  "Password retrieval instructions will be send on your email.": "upute za dohvat lozinke biti će poslane na Vašu e-mail adresu.",
  "Submit": "podnijeti",
  "Technomarket Bulgaria": "Technomarket Hrvatska",
  "Close": "zatvori",
  "Select country": "odaberi zemlju",
  "Sex": "spol",
  "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": "mjesec",
  "Day": "dan",
  "Loyal clients": "Član TM kluba",
  "Brand": "Proizvođač",
  "Default": "dodijeljen",
  "Loyalty card inquiry form": "pristupni obrazac za dodjelu klub kartice",
  "You must provide either telephone number or email address.": "morate ostaviti ili broj telefona ili e-mail adresu",
  "Region": "županija",
  "Enter atleast one phonenumber.": "unesite bar jedan telefonski broj",
  "Note": "bilješka",
  "Private person": "privatna osoba",
  "Personal ID": "osobni OIB",
  "Type": "tip",
  "VAT registration": "OIB registracija",
  "Company ID": "OIB tvrtke",
  "Manager": "direktor",
  "Phone number": "broj telefona",
  "Age group": "dobna skupina",
  "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 djece?",
  "yes": "da",
  "no": "ne",
  "Own business": "vlastita tvrtka",
  "Marital status": "bračni status",
  "married": "oženjen/udana",
  "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 sljedećih šest mjeseci?",
  "TV set": "TV set",
  "Portable computer": "Prijenosno računalo",
  "monitor": "Monitor",
  "Refrigerator": "Hladnjak",
  "Home theatre system": "Kućno kino",
  "Washing machine": "Prerilica rublja",
  "Cooking stove": "Štednjak",
  "Built-in kitchen appliances": "Ugradbeni uređaji",
  "Costumer service at Technomarket is": "Usluga je u Technomarket",
  "Excellent": "Odlično",
  "Very good": "Vrlo dobro",
  "Good": "Dobro",
  "Not bad": "Nije loše",
  "Bad": "Loše",
  "Was this your first time shopping at Technomarket": "Je li ovo vaša prva kupovina u Technomarketu",
  "What kind of services did you enjoy with us": "Kako biste ocijenili uslugu kod nas",
  "Consultation": "Savjetovanje",
  "Installation": "Instalacija",
  "Transportation": "Transport",
  "Insurance": "Osiguranje",
  "Additional warranty": "Dodatna jamstvo",
  "Would you like to receive promotional offers on your email": "Da li bi ste željeli primati promotivne ponude na Vašu e-mail adresu?",
  "How did you find out about the promotions in Technomarket": "Kako se saznali za akciju u Technomarketu?",
  "press": "tisak",
  "radio": "radio",
  "outdoor advertisements": "vanjsko oglašavanje",
  "television": "televizije",
  "Technomarket's web site": "Technomarket-ovim web stranicama",
  "at one of Technomarket's stores": "u jednom od Technomarket-ovim dućanima",
  "from a friend": "od prijatelja",
  "I'm not informed": "Nisam informiran",
  "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 raspoloživom dohotkom",
  "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šem zahtjevu.",
  "sometimes": "Ponekad",
  "Recommendations": "Preporuke",
  "Technomarket TV": "Technomarket TV",
  "Select region": "Odaberi županiju",
  "Select city": "Odaberi Grad",
  "Results": "Rezultati",
  "An email with instructions how to recover your password has been sent to %email%.": "E-mail sa uputama kako promijeniti Vašu lozinku poslan je na %email%.",
  "Confirm": "Ponovno upišite lozinku",
  "Forgot password request": "Zahtjev za izgubljenom lozinkom",
  "I accept terms & conditions.": "Slažem se s uvjetima korištenja",
  "Pay by bank": "Virmansko plaćanje",
  "Pay by bank card (PBZ)": "Kreditna kartica",
  "Rejected inquiry": "Upit odbijen",
  "Unfinished": "Narudžba nedovršena",
  "Canceled": "Narudžba otkazana",
  "Completed": "Narudžba izvršena",
  "Waiting delivery": "Čekanje dostave",
  "Waiting payment": "Čekanje uplate",
  "Accepted inquiry": "Upit prihvaćen",
  "Sent": "Poslano",
  "Sent with courier": "Poslano dostavom",
  "details": "detalji",
  "%name%, we wish you a pleasant shopping on our web site!": "%name%, želimo ti ugodnu kupnju na našoj web stranici!",
  "order now": "naruči",
  "By bank": "Virmansko plaćanje",
  "By card": "Kreditna kartica",
  "Others": "Ostalo",
  "Password updated!": "Lozinka je potvrđena",
  "Invalid discount code.": "Unijeli ste pogrešnu šifru.",
  "The minimum price to use this code is %amount%.": "Minimalni iznos u vašoj košarici mora biti %amount% kako biste ostvarili vaš popust.",
  "Please login to use discount codes.": "Molim ulogirajte 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"	
}
$.i18n.setDictionary(dict);

