/*
 * This function is used to translate user messages
 * into the current language.
 * @string Is a unique key and mapped to a translated
 * 	message.
 * @return Either the translated message or the given string
 * 	if no translation was found.
 */
function t(string) {
	var trans = TRANS[string];
	if (!trans) {
		GLog.write("Translation for '" + string + "' not found.");
	}
	return trans || string;
}
/*
 * This Object contains the translations as properties.
 */
var TRANS = new Object();