var LOCALE = {
"Are You sure to delete?": "Oled kindel, et tahad kustutada?",
"1 result": ["1 tulemus", "%d tulemust"],
"For example: BMW -150000km 20000-80000EEK": "Näiteks: BMW -150000km 20000-80000EEK",
"Use common upload": "Kasuta tavaliselt üleslaadimist",
"All picture places are filled! Please first delete some images.": "Kõik piltide positsioonid on täidetud. Kustuta enne mõni pilt!",
"Uploading": "Saadan",
"Saving": "Salvestan",
"Error on saving file.": "Viga faili salvestamisel.",
"Error": "Viga",
"done": "valmis",
"Are You sure You want to delete it?": "Oled kindel, et tahad kustutada?",
"Monthly payment": "Kuumakse",
"Total payment": "Kogusumma",
"Enter name please": "Sisesta palun nimi",
"Are You sure to disable?": "Oled kindel, et tahad deaktiveerida?",
"Hide choices": "Peida valikud",
"Specify more": "Täpsusta veel",
"Don't search by lease": "Ära otsi liisingut",
"Search by lease payment": "Otsi liisingu kuumakset",
"Show less": "Näita vähem",
"Show more": "Näita rohkem",
"username": "kasutajanimi",
"Are You sure You want to change bodytype? It causes a loss of data already inserted.": "Oled kindel, et soovid keretüüpi muuta? See põhjustab juba sisestatud andmete kadu.",
"Cancel": "Katkesta",
"Hide statistics": "Peida statistika",
"View statistics": "Vaata statistikat"
};
function gettext(text) {
	if (LOCALE[text]) {
		return LOCALE[text];
	}
	else {
		return text;
	}
}

function ngettext(singular, plural, n) {
	var translation = LOCALE[singular];
	
	// when no translation exists, leave untranslated
	if (!translation) {
		return (n == 1) ? singular : plural;
	}
	
	// use correct plural-form equation for this locale
	var form = (n == 1) ? 0 : 1;
	
	return translation[form];
}
