var LOCALE = {
"Are You sure to delete?": "Vai tiešām vēlaties izdzēst?",
"1 result": ["1 rezultāts", "%d rezultāti"],
"For example: BMW -150000km 20000-80000EEK": "Piemēram: BMW -150000km 500-10000EUR",
"Use common upload": "Use common upload",
"All picture places are filled! Please first delete some images.": "All picture places are filled! Please first delete some images.",
"Uploading": "Uploading",
"Saving": "Saving",
"Error on saving file.": "Error on saving file.",
"Error": "Kļūda",
"done": "done",
"Are You sure You want to delete it?": "Are You sure You want to delete it?",
"Monthly payment": "Mēneša maksājums",
"Total payment": "Kopējais maksājums",
"Enter name please": "Lūdzu ievadiet vārdu",
"Are You sure to disable?": "Vai tiešām vēlaties aizliegt?",
"Hide choices": "Paslēpt ",
"Specify more": "Detalizētāk",
"Don't search by lease": "Nemeklēt pēc līzinga",
"Search by lease payment": "Meklēt pēc ikmēneša maksājuma",
"Show less": "Rādīt mazāk",
"Show more": "Rādīt vairāk",
"username": "lietotājvārds",
"Are You sure You want to change bodytype? It causes a loss of data already inserted.": "Are You sure You want to change bodytype? It causes a loss of data already inserted.",
"Cancel": "Atcelt",
"Hide statistics": "Paslēpt statistiku",
"View statistics": "Apskatīt statistiku"
};
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];
}
