Boost.translations = new (Class.create({

	translations:	{},
	currentLang:	'en',
	
	initialize: function() {},
	
	addLanguage: function( lang ) {
	
		this.translations[ lang ] = {};
	
	},
	
	setLanguage: function( lang ) {
	
		if( this.translations[ lang ] ) {
		
			this.currentLang = lang;
		
		} else {
		
			throw SyntaxError( 'Please define the language first.' );

		}
		
	},
	
	get: function( key, lang ) {
	
		if( !lang ) {
			
			lang = this.currentLang;
		
		}
		
		if( this.translations[ lang ] ) {
		
			return this.translations[ lang ][ key ];
		
		} else {
		
			throw SyntaxError( 'Please define the language first.' );
		
		}	
	
	},
	
	set: function( key, value, lang ) {
	
		if( !lang ) {
			
			lang = this.currentLang;
		
		}
	
		if( this.translations[ lang ] ) {
		
			this.translations[ lang ][ key ] = value;
		
		} else {
		
			throw SyntaxError( 'Please define the language first.' );
		
		}
		
	}

}));