///<reference path="/Web/Js/TESCO.js" />

TESCO.locale.en = {
	plural : "s",
    basket: {
        decreaseLinkValue: "Decrease",
        imageToggleOffValue: "Turn images off",
        imageToggleOnValue: "Turn images on",
        increaseLinkValue: "Increase",
        latestHeaderValue: "Last item added to your shopping basket:",
        pickerNotesLabelValue: "Enter note to picker",
        priceHeaderValue: "Price",
        productHeaderValue: "Product",
        quantityHeaderValue: "Quantity",
        removeHeaderValue: "Remove from Basket",
        removeLinkValue: "Remove item",
        increaseSymbol: "+",
        decreaseSymbol: "-",
        removeSymbol : "x",
        substitutionNotesFindAlternativeValue: "Find a suitable alternative",
        substitutionNotesHeaderValue: "If product is unavailable please:",
        substitutionNotesNoSubstitutionValue: "Don't substitute",
        substitutionNotesThisItemInsteadValue: "Look for this item instead",
        totalItemsValue: " ({0} items)",
        totalItemValue: " ({0} item)",
        altDecrease: "Decrease quantity",
        altIncrease: "Increase quantity",
        altRemoveItem : "Remove item",
        srcDecrease : TESCO.sites.Configuration.application.img.URI + "/Sites/Retail/" + TESCO.sites.Configuration.application.name + "/Online/Basket/qtyDescSmall.gif",
        srcIncrease : TESCO.sites.Configuration.application.img.URI + "/Sites/Retail/" + TESCO.sites.Configuration.application.name + "/Online/Basket/qtyIncSmall.gif",
        srcRemoveItem : TESCO.sites.Configuration.application.img.URI + "/Sites/Retail/" + TESCO.sites.Configuration.application.name + "/Online/Basket/xSmall.gif",
        imageProductSrc : TESCO.sites.Configuration.application.img.URI + "/Sites/Retail/" + TESCO.sites.Configuration.application.name,
        tableSummary : "This table consists of {0} columns, 1 header row and {1} row{2} of products"
    },
    product: {
        addToUpdateValue: "Click 'Add' to update basket",
        comparisonLabelValue: "Compare product",
        comparisonLinkValue: "View comparisons",
        comparisonTotalValue: "View comparisons",
        maxQuantityValue: "Maximum quantity reached",
        quantityLabelValue: "How many",
        weightLabelValue: "Weight (Kg)"
    },
    tooltips: {
        guidePrice: function() {
            var _node = document.createElement("p");
            TESCO.system.DOM.node.setTextValue(_node, "Guide price tooltip");
            return _node;
        },
        staffDiscount: function() {
            var _node = document.createElement("p");
            TESCO.system.DOM.node.setTextValue(_node, "Staff discount is 10%");
            return _node;
        },
        giftcardPayment: function() {
            var _node = document.createElement("p");
            TESCO.system.DOM.node.setTextValue(_node, "This amount is dependant on the Gift Card(s) not being used between checkout and the order being delivered. If there is an outstanding amount left we shall take this from your payment card.");
            return _node;
        },
        clubcardGreen: function() {
            var _node = document.createElement("p");
            TESCO.system.DOM.node.setTextValue(_node, "Collect Green Clubcard Points on items and services that help the environment. By having your shopping delivered without carrier bags you will earn 1 Green Clubcard Point for every X items ordered.");
            return _node;
        },
        clubcardPromo: function() {
            var _node = document.createElement("p");
            TESCO.system.DOM.node.setTextValue(_node, "Clubcard Points that have been collected with promotional offers");
            return _node;
        },
        clubcardPoints: function() {
            var _node = document.createElement("p");
            TESCO.system.DOM.node.setTextValue(_node, "Collect 2 Clubcard Point for every £1 you spend and redeem on your shopping or trade in for Clubcard deals.");
            return _node;
        },
		propertyType: function() {
			var _node = document.createElement("div");
			var _para = document.createElement("p");
			var _title = document.createElement("h4");
			TESCO.system.DOM.node.setTextValue(_title, "Why do we need to know property type?");
			TESCO.system.DOM.node.setTextValue(_para, "This information will help us to work how long it will take to deliver your order, so we can offer a better service.");
			_node.appendChild(_title);
			_node.appendChild(_para);
			return _node;
		}
    },
    dialogue: {
        searchError: function() {
			return TESCO.locale.message.create("Please enter a search term");
        },
        weightDefault: function() {
			return TESCO.locale.message.create("Please select a weight for this product");
        }
    },
    message: {
		create: function(message) {
			var _p = document.createElement("p");
			var _strong = document.createElement("strong");
			TESCO.system.DOM.node.setTextValue(_strong, message);
			_p.appendChild(_strong);
			return _p;
		}
	},
    exception: {
        invalidStatus: "There was a problem retrieving the data: {0} ({1})",
        authenticationError: "Your session has expired, we will now return you to the login page."
    },
    deliveryMessage: {
        deliveryText: "Enter your delivery instructions here, e.g. Ground floor flat"
    },
    giftMessage: {
        giftText: "Enter your gift message"
    },
    loader: {
        message: "Content Loading",
        img: TESCO.sites.Configuration.application.img.URI + "/tescoLoader.gif"
    },
    checkout : {
		print : "Print my order"
    },
    window : {
		"help" : "Opens in a new window",
		"external" : "External link, opens in a new window",
		"node" : function(message) {
			var _node = document.createElement("span");
            TESCO.system.DOM.node.setTextValue(_node, "(" + message + ")");
            TESCO.system.DOM.node.addClassName(_node, "hide");
            return _node;
		}
    },
    carousel : { 
        title : "Go to page ",
        on : " on page",
        off : " off page"
    }
}

