﻿// File JScript

var TemplateStrings = function(){

    this.GetNullFieldMessage = function(fieldName){
        return "Campo " + fieldName + " inesistente!";
    }
    this.GetEmptyFieldMessage = function(fieldName){
        return "Campo " + fieldName + " vuoto!";
    }
    this.GetWrongValueFieldMessage = function(fieldName){
        return "Valore non corretto per " + fieldName + "!";
    }
    this.GetWrongPasswordFieldMessage = function(){
        return "Le due password non coincidono!";
    }
    
    
    
    this.GetUnknownPanelId = function(panelId){
        return (divId == null) ? "Impossibile trovare l'id pannello nella pagina!" : "Impossibile trovare l'id pannelo per " + panelId + " nella pagina!";
    }
    this.GetUnableUpdatePage = function(){
        return "Impossibile aggiornare la pagina!";
    }
    this.GetUnableFindDivElement = function(divId){
        return "Impossibile trovare l'elemento con id " + divId + ": è inesistente!";
    }
    this.GetUnableSubmitForm = function(){
        return "Impossibile eseguire il submit del form!";
    }
    
    
    
    this.GetUnableAddEvent = function(){
        return "Impossibile aggiundere un evento ad un oggetto vuoto!";
    }
    this.GetSpecifyEvent = function(){
        return "Specificare l'evento e/o il codice da associare!";
    }
    this.GetSpecifySearchKey = function(){
        return "Occorre specificare una chiave di ricerca!";
    }
    
    
    this.GetUnableExeLogin = function(){
        return "Impossibile eseguire il login senza specificare username e password!";
    }
    
    
    this.GetUnableFindEmailControl = function(){
        return "Impossibile individuare l'indirizzo email!";
    }
    this.GetUnableChangeOrderType = function(){
        return "Impossibile impostare il tipo di ordinamento";
    }
    
    
    this.GetCloseLabel = function(){
        return "Close";
    }
    this.GetErrorLabel = function(){
        return "Error!";
    }    
    this.GetUnknownErrorLabel = function(){
        return "Unknown Error";
    }        
    this.GetInfoLabel = function(){
        return "Info";
    }
    
    
    this.GetAddNewsLetterOk = function(){
        return "La tua email è stata aggiunta al nostro elenco NewsLetter";
    }
    this.GetRemoveNewsLetterOk = function(){
        return "La tua email è stata rimossa dal nostro elenco NewsLetter";
    }
    this.GetRecoveryPasswordOk = function(){
        return "La tua nuova password è stata inviata all'indirizzo email specificato!";
    }
    this.GetAddNewsLetterKo = function(){
        return "Impossibile aggiungere l'email all' elenco NewsLetter";
    }
    this.GetRemoveNewsLetterKo = function(){
        return "Impossibile rimuovere l'email dall'elenco NewsLetter";
    }
    this.GetRecoveryPasswordKo = function(){
        return "L'email specificata non corrisponde a nessun account";
    }
    this.GetAddToCartKo = function(){
        return "Impossibile aggiungere il prodotto nel carrello";
    }
    
    
    this.GetTitleAddToCart = function(){
        return "Cart";
    }
    this.GetDescrAddToCart = function(){
        return "This product is added to cart!";
    }    
    this.GetLinkAddToCart = function(){
        return "Cart Page";
    }
    
    this.GetTitleRecoveryPassword = function(){
        return "Lost Password";
    }
    this.GetAbstractRecoveryPassword = function(){
        return "Type your email, if corresponding an account, the relative password will be resetted and sended to the email address specified.";
    }
    this.GetBodyRecoveryPassword = function(){
        return "Email:";
    }
    
        
    this.GetRequestUnsubscribe = function(){
        return "Sei sicuro di voler cancellare la tua registrazione?";
    }
    
    
    //Finestra dillo ad un amico
    this.GetTitleTellToFriend = function() {
			return "Dillo ad un amico";
    }
    this.GetDescrTellToFriend = function(){
        return "Segnala questo articolo ad un tuo amico.";
    }
    this.GetInvalidFieldTellToFriend = function(fieldName){
        return "Valore inserito non valido" + (fieldName ? ": '" + fieldName +"'" : "");
    }
    this.GetFieldNameTellToFriend = function(){
        return "Il tuo nome";
    }
    this.GetFieldMailTellToFriend = function(){
        return "La tua email";
    }
    this.GetFieldFriendNameTellToFriend = function(){
        return "Nome del tuo amico";
    }
    this.GetFieldFriendMailTellToFriend = function(){
        return "Email del tuo amico";
    }
    this.GetImpossibleTellToFriend = function(){
        return "Impossibile inviare";
    }
    this.GetCmdSendTellToFriend = function(){
        return "Invia";
    }
    this.GetTellToFriendOk = function(){
        return "La tua segnalazione è stata inviata all'indirizzo email specificato!";
    }
    //Fine Finestra dillo ad un amico
    
    
    //Finestra richiedi informazioni
    this.GetTitleInfoDemand = function() {
			return "Richiedi informazioni";
    }
    this.GetDescrInfoDemand = function(){
        return "Compilando questo modo potrai contattare i nostri tecnici o commerciali. Faremo del nostro meglio per rispondere ai tuoi quesiti.";
    }
    this.GetInvalidFieldInfoDemand = function(fieldName){
        return "Valore inserito non valido" + (fieldName ? ": '" + fieldName +"'" : "");
    }
    this.GetFieldNameInfoDemand = function(){
        return "Il tuo nome";
    }
    this.GetFieldMailInfoDemand = function(){
        return "La tua email";
    }
    this.GetFieldQuestionInfoDemand = function(){
        return "Spiegaci sinteticamente quali informazioni hai bisogno:";
    }
    this.GetImpossibleInfoDemand = function(){
        return "Impossibile inviare";
    }
    this.GetCmdSendInfoDemand = function(){
        return "Invia";
    }
    this.GetInfoDemandOk = function(){
        return "La tua richiesta è stata inviata, sarai ricontattato al più presto!";
    }
    //Fine Finestra richiedi informazioni
    
    //Finestra avviso prezzo
    this.GetTitleWaitPriceDown = function() {
			return "Avviso prezzo";
    }
    this.GetDescrWaitPriceDown = function(){
        return "Lascia il tuo indirizzo email. Sarai contattato quando il prezzo dell'articolo sarà più basso.";
    }
    this.GetInvalidFieldWaitPriceDown = function(fieldName){
        return "Valore inserito non valido" + (fieldName ? ": '" + fieldName +"'" : "");
    }
    this.GetFieldMailWaitPriceDown = function(){
        return "La tua email";
    }
    this.GetFieldCurrentPriceWaitPriceDown = function(){
        return "Il prezzo di riferirmento è:";
    }
    this.GetImpossibleWaitPriceDown = function(){
        return "Impossibile inviare";
    }
    this.GetCmdSendWaitPriceDown = function(){
        return "Invia";
    }
    this.GetWaitPriceDownOk = function(){
        return "La tua richiesta è stata inviata, riceverai una segnalazione appena diminuirà il prezzo.";
    }
    //Fine Finestra  avviso prezzo
    
    //Finestra avviso disponibilità
    this.GetTitleWaitAvailability = function() {
			return "Avviso prezzo";
    }
    this.GetDescrWaitAvailability = function(){
        return "Lascia il tuo indirizzo email. Sarai contattato quando il l'articolo sarà disponibile.";
    }
    this.GetInvalidFieldWaitAvailability = function(fieldName){
        return "Valore inserito non valido" + (fieldName ? ": '" + fieldName +"'" : "");
    }
    this.GetFieldMailWaitAvailability = function(){
        return "La tua email";
    }
    this.GetFieldCurrentPriceWaitAvailability = function(){
        return "Il prezzo di riferirmento è:";
    }
    this.GetImpossibleWaitAvailability = function(){
        return "Impossibile inviare";
    }
    this.GetCmdSendWaitAvailability = function(){
        return "Invia";
    }
    this.GetWaitAvailabilityOk = function(){
        return "La tua richiesta è stata inviata, riceverai una segnalazione appena il prodotto diventa disponibile.";
    }
    //Fine Finestra  avviso disponibilità
    
}    
   
templateStrings = new TemplateStrings();   
