/**
 * English locale module.
 * @module locales.en
 * @author Taka Okunishi
 *
 */
var object = require('../lib/object'),
    deepCopy = object.deepCopy,
    format = require('util').format;

var l = module.exports = {};

var keywords = [
    'name',
    'save',
    'register',
    'edit',
    'destroy',
    'user',
    'cancel',
    'email',
    'back',
    'new',
    'error'
];

keywords.forEach(function (keyword) {
    l[keyword] = keyword;
});

l.$links = {
    tutorial: 'Tutorial',
    api: "API Document",
    repo: 'Repository',
    wiki: "wiki"
};

/**
 * Page titles.
 * @name locales.en.$titles
 */
l.$titles = {
    wiki: 'wiki',
    $error: {
        pageNotFound: 'Page not found',
        somethingWrong: 'Something wrong',
        browserNotSupported: 'Browser not supported',
        overCapacity: 'Over capacity',
        underMaintenance: 'Under maintenance'
    }
};

/**
 * Message for each page.
 * @name locales.en.$pages
 */
l.$pages = {
    $index: {
        descriptions: [
            'App to serve static files.',
            'A child of "Abstract".',
            'Contains clustering, multi-localing, compiling.',
            'Depends on connect middleware modules.'
        ]
    },
    $wiki: {

    },
    $error: {
        $pageNotFound: {
            caption: 'Sorry! Page not found.',
            message: 'Requested URL seems to be wrong.'
        },
        $somethingWrong: {
            caption: 'Sorry! Something seems to be wrong.',
            message: 'Please try again later.'
        },
        $browserNotSupported: {
            caption: 'Sorry! Your browser is not supported.',
            message: 'Please try these.'
        },
        $overCapacity: {
            caption: 'Sorry! We are over capacity.',
            message: 'Please waite and try again.'
        },
        $underMaintenance: {
            caption: 'Sorry! We are under maintenance.',
            message: "We'll be up and running soon..."
        }
    }
};