/* Copyright 2009 Palm, Inc.  All rights reserved. */

var IncompatibleAssistant = Class.create({
	
    initialize: function(error)
	{
		Mojo.Log.error("IncompatibleAssistant.initialize error", error);
		this._error = error;
	},
	
    setup: function()
	{
		Mojo.Log.error("IncompatibleAssistant.initialize error text", this.errors[this._error]);
		this.controller.get('error_text').innerHTML = this.errors[this._error];
    },
	
	errors: 
	{
		DISC0025: $L("This is not a valid webOS application."),
		DISC0124: $L("This application is not available for your model."),
		DISC0125: $L("This application is not available for your carrier."),
		DISC0201: $L("This application is not available in your country."),
		DISC0202: $L("This application is not available for your model."),
		DISC0203: $L("This application cannot run on your current operating system. Use the Updates app to install the system update and try again.")
	},

});