var com = {};
com.openapps = {};

com.openapps.skinProcessMessage = {

    // Posible types: 'err', 'warning', 'info'.

    'summary': 'We are unable to build the look and feel you have configured. This might because of one or more of these problems:',
    'direction': 'Your app will be previewed using a generic look and feel.',

    'tidy': {
        'type'      : 'info',
        'message'   : '',
        'direction' : ''
    },

    'cleanup_failed': {
        'type'      : 'err',
        'message'   : 'OPENapps is having a problem processing the HTML of your page',
        'direction' : 'It is possible there are big problems with the HTML on this page. Please try again and if the problem persists, contact OPENapps support for direction.'
    },

    'cleanup_failed_with_exception': {
        'type'      : 'err',
        'message'   : 'OPENapps is having a problem processing the HTML of your page',
        'direction' : 'It is possible there are big problems with the HTML on this page.  Please try again and if the problem persists, contact OPENapps support for direction.'
    },

    'page_not_downloaded_successfully': {
        'type'      : 'err',
        'message'   : 'Failed to download the page.',
        'direction' : 'Please check the URL and try again.'
    },

    'placement_failed': {
        'type'      : 'err',
        'message'   : 'OPENapps was unable to place the app where you indicated',
        'direction' : 'Check the element you entered in the Look and Feel section and try again.'
    },

    'placement_failed_ambiguous': {
        'type'      : 'err',
        'message'   : 'OPENapps was unable to place the app where you indicated because there are more than one matching locations',
        'direction' : 'Check the element you entered in the Look and Feel section and try again.'
    },

    'placement_failed_exception': {
        'type'      : 'err',
        'message'   : 'OPENapps was unable to place the app where you indicated',
        'direction' : 'Check the element you entered in the Look and Feel section and try again.'
    },

    'placement_failed_match_failed': {
        'type'      : 'err',
        'message'   : 'OPENapps was unable to place the app where you indicated because the location was not found',
        'direction' : 'Check the element you entered in the Look and Feel section and try again.'
    },

    'placement_failed_no_block_found': {
        'type'      : 'err',
        'message'   : 'OPENapps was unable to place the app where you indicated because the location cannot hold block elements',
        'direction' : 'Check the element you entered in the Look and Feel section and try again.'
    },

    'placement_illegal_pattern': {
        'type'      : 'err',
        'message'   : 'OPENapps was unable to place the app where you indicated because we could not use the pattern provided',
        'direction' : 'Check the element you entered in the Look and Feel section and try again.'
    },

    'post_processing_failed': {
        'type'      : 'err',
        'message'   : 'OPENapps is having a problem processing the HTML of your page',
        'direction' : 'Please try again and if the problem persists, contact OPENapps support for direction.'
    },

    'serious_html_problem': {
        'type'      : 'warning',
        'message'   : 'OPENapps has identified some problems with the HTML of the page',
        'direction' : 'If your Look and Feel is not displaying correctly, please try again and if the problem persists, there may be problems with your HTML you need to fix.  Contact OPENapps support for direction.'
    },

    'skin_download_failed_with_exception': {
        'type'      : 'err',
        'message'   : 'Failed to download the page.',
        'direction' : 'Please try again.'
    },

    'update_not_allowed': {
        'type'      : 'err',
        'message'   : 'Update not allowed',
        'direction' : 'Updating the skin was not allowed.  Please try again.'
    },

    'wget_failed': {
        'type'      : 'err',
        'message'   : 'Failed to download the page.',
        'direction' : 'Please ensure you have typed the URL correctly and try again.',
        'noExtra'   :  true
    },

    'wget_failed_with_exception': {
        'type'      : 'err',
        'message'   : 'Failed to download the page.',
        'direction' : 'Please ensure you have typed the URL correctly and try again.',
        'noExtra'   :  true
    },

    'wget_failed_with_exit_code': {
        'type'      : 'err',
        'message'   : 'Failed to download the page.',
        'direction' : 'Please ensure you have typed the URL correctly and try again.',
        'noExtra'   :  true
    }
}

com.openapps.confirmations = {

    billingSetupRequired: {
        'title'     : 'Your billing has not been setup or currently is not working',
        'details'   : 'Do your want to setup your billing now?',
        'yes'       : 'Yes',
        'no'        : 'No'
    },

    billingRequired: {
        'title'     : 'Publish Application',
        'details'   : 'Are you sure you want to make this app live?',
        'yes'       : 'Yes',
        'no'        : 'No'
    },

    deleteApp: {
        'title'     : 'Please Confirm! You are deleting the app',
        'details'   : 'Are you sure?  You will not be able to retrieve the app.',
        'yes'       : 'Yes',
        'no'        : 'No'
    },

    stopApp: {
        'title'     : 'Please Confirm! You are stopping the app',
        'details'   : 'Are you sure?  You are taking the app offline and it will no longer be active.',
        'yes'       : 'Yes',
        'no'        : 'No'
    }
}

com.openapps.alerts = {

    publishingSucceeded: {
        'title'     : 'Congratulations!',
        'details'   : 'You have published your app successfully. To make your app live on the Internet, follow the instructions in <a href="/help/going_live/dns_settings.html">Help</a> to change your DNS to point this domain to our servers',
        'ok'        : 'OK'
    }
}

com.openapps.notify = {

    publishingInProcess: {
        'title'     : 'Processing...',
        'details'   : 'Just taking a moment to publish your app'
    }
}

//alert('This file is valid!');
