var Translation = new Class({
	Implements: [Options],
	
	options: {
		'sLanguageISO639' : '',
		'iLanguageID' : 0
	},
	
	initialize: function(tsTranslationIDs, options)
	{
		this.setOptions(options);
		this.oParams = new Hash({
			'sTranslationIDs': tsTranslationIDs.toString(),
			'sLanguageISO639': this.options.sLanguageISO639,
			'iLanguageID': this.options.iLanguageID
		});
	},
	
	getTranslations: function()
	{
		this.oJsonRequest = new Request.JSON({
			url: '/phplib/dataservice/translation/translation.php', 
			async: false,
			onSuccess: function(oJson) { //Correcte response van PHP
				this.aTranslations = oJson['aTranslations'];
			}.bind(this)
		}).send('data='+JSON.encode(this.oParams));
		return this.aTranslations;
	}
});