var langs = new Array();
function ALR(lk, lt) {
	var lc = langs.length;
	langs[lc] = new Array();	
	langs[lc] = new UpdateLang(lk, lt);	
}
function UpdateLang(lk, lt) {
	this.key = lk;
	this.text = lt;
}
function getMsg(name) {
	var x = 0;
	var message = '';
	for (x = 0; x < langs.length; x++) {
		var l = langs[x];
		if (l.key == name) {
			message = l.text;
			for (var i = 0; i < arguments.length; i++) {
				message = message.replace("\{" + i + "\}", arguments[i+1]);
			}
		}
	}
	return message;
}
ALR('application.name','Legendary Voyage');
ALR('application.version','0.1');
ALR('application.webmaster_email','support@legendaryvoyage.com');
ALR('application.font','ming');
ALR('application.fontold','gothic');
ALR('application.language','english');
ALR('login.welcome','Welcome to Legendary Voyage!');
ALR('login.bad','Invalid username/password!');
ALR('login.inactive','You have been logged out for being inactive.');
ALR('login.ok','You have successfully logged in.');
ALR('login.txt','Please login to your account below or use the button to signup and make a new account.');
ALR('login.button','Login');
ALR('login.signup','Signup');
ALR('login.loading','Please wait the game is loading ...');
ALR('chat.say','Say');
ALR('chat.say.button','Say');
ALR('error.maximum_users_reached','The maximum number of users have been reached. You are not allowed to login at this time.');
ALR('error.missing_username','You have to enter a username before starting to chat.');
ALR('error.username_in_use','You cannot use this username, since another person is using this already.');
ALR('error.invalid_username','Your username contains inappropriate characters. Please choose another one.');
ALR('error.username_blocked','You cannot log on with this username.');
ALR('error.username_length_exceeded','Username must not exceed {0} characters.');
ALR('error.fast1','You are typing too fast.');
ALR('error.fast2','You are logging in too fast.');
ALR('error.fast3','You are clicking in too fast.');
ALR('fight.die1','{0} damage dealt to {1} {2} it dies!');
ALR('fight.damage','{0} damage dealt to {1} {2}!');
ALR('fight.change','{0} changed by {1} on {2}.');
ALR('action.trigger','{0} triggered by {1}.');
ALR('action.fail1','You do not have the correct skill to use {0}.');
ALR('action.fail2','You need {0} skill to use {1}.');
ALR('action.fail3','Incorrect weapon equipped to use {0}.');
ALR('action.fail4','{0} is already dead.');
ALR('action.fail5','{0} is too far away.');
ALR('action.fail6','{0} dodges the attack.');
ALR('action.fail7','{0} has no target selected.');
ALR('action.fail8','{0}lp required, gain more legend pieces and try again.');
ALR('action.fail9','You already know {0}.');
ALR('loot.gain','<b><u>{0}</u></b> gained.');
ALR('loot.gain2','You gain {0} from {1}.');
ALR('raise.skill','You raise your {0} skill to {1}.');
ALR('raise.cskill','You raise your {0} skill to {1} and discover how to use the {2} power.');
ALR('action.buy','You buy {0} for {1}lp.');
ALR('skillgain.1','You have gained {0} pts in {1} skill.');
ALR('discovery.1','You have discovered {0}.');
ALR('discovery.2','{0} Discovery');
ALR('inventory.full','You have a full inventory.');
ALR('power.unavailable','This power is not availalbe.');
ALR('crafting.-1','<div>You do not have the required ingredients to craft <b>{0}</b>.</div>');
ALR('crafting.2','<div>You complete the crafting of <b>{0}</b>, <b>{1}</b> inventory slots remaining.</div>');
ALR('crafting.3','<div>You have no room in your inventory to receive {0}.</div>');
ALR('ui.newchar','New Character');
ALR('ui.charactersel','Choose Character');
ALR('ui.ac','Account Screen');
ALR('ui.editac','Edit Account');
ALR('ui.back','Back');
ALR('ui.next','Next');
ALR('ui.save','Save');
ALR('ui.saved','Saved successfully!');
ALR('ui.dollars','Your Legend Dollars, click to purchase/spend your legend dollars.');
ALR('ui.legends','Your Legend Pieces, this is the amount of money your character has.');
ALR('ui.efail1','Please check that your password boxes match.');
ALR('ui.efail2','Please check that your email boxes match.');
ALR('speech.2','Buy your junk, paying well!');
ALR('speech.3.96','To arms, Howlers are everywhere!;To the North strange rock monsters sighted!;Welcome to Evansville!;');
ALR('speech.3.628','Howlers sighted north of town!;The way to the docks is blocked!;AddEmoticons04255.gif;');
ALR('speech.3.44','Crafting ingredients for sale!;Kits, handles and such for sale!;AddEmoticons04280.gif;');
ALR('speech.3.42','Selling the greatest things!;{P}, come see what I have to offer?;AddEmoticons04280.gif;');
ALR('speech.4','Willing to teach knowledge for a good price!');
