var cLanguage = Class.create({
	initialize: function(_messages) {
		this.messages = _messages;
	},
	getText: function(_name) {
		var j=0;
		for (j=0; j<this.messages.length; j++) {
			if (this.messages[j][0] == _name) {
				return this.messages[j][1];
			}
		}
		return "";
	},
	getTextModified: function(_name, modifiers) {
		var text = this.getText(_name);
		var i=0;
		var j=0;
		var temp = null;
		var txt = '';
		for (j=0; j<modifiers.length; j++) {
			temp = text.split(modifiers[j][0]);
			txt = '';
			for (i=0; i<(temp.length-1); i++) {
				txt += temp[i] + modifiers[j][1];
			}
			txt += temp[temp.length-1];
			text = txt;
		}
		return text;
	}
});
