var LOCALE = {

};
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];
}
