﻿var Dictionaries= {
	EN:"EnglishLoginVT",
	ES:"SpanishLoginVT"
}
var dictionary;
function getDictionary(lang){
	//alert(lang);
	if(lang=="en"){
		//alert('english');
		dictionary=EnglishLoginVT;	
	}else if(lang=="es"){
		//alert('spanish');
		dictionary=SpanishLoginVT;
	}
	else{
		//alert('english');
	 	dictionary=EnglishLoginVT;
	}
	 return dictionary;
}

function getMessage(key){
	

	return dictionary[''+key];
}
var EnglishLoginVT = {
	// General Strings

	authenticationSuccess:"Loading Oigaa Application, wait some minutes...",
	authenticationError:"Sorry, there has been an error in the authentication.",
	authenticationErrorUnauthorized:"Authentication error.",
	tryAgain:"Try again!!",
	tryMoreLater:"Try again later...",
	userRequired:"User is required",
	userUnknown:"User unknown",
	passwdRequired:"Password is required",
	extensionRequired:"Extension is required for go to Oigaa",
	userFormat:"User must be an customer email (for administration area) or Oigaa extension (for go to Oigaa) ",
	authenticating:"&nbsp;&nbsp;Authenticating....",
	authenticationErrorPasswdRequired:"Password is required",
	authenticationErrorSendTokenProblem:"Problems sending information between servers",
   undefinedError:"An unexpected error has occurred. Please try it later.",
   
   // remind password 
   remindPwdTitle: "Remind password",
   remindPwdText: "Fill in your e-mail address:",
   remindCaptchaText: "Enter the words above:",
   remindAllDataRequired: "Please, fill all data.",
   remindAdc: "Your customer area password has been sent to your email address.",
   remindOigaa: "Your Oigaa password has been sent to your email address.",
   remindAdcOigaa: "Your customer area and Oigaa passwords have been sent to your email address.",
   remindCaptchaError: "The words you have typed are incorrect. Please, try again.",
   
   lastStr:"Last String"
}

var SpanishLoginVT = {

	// General Strings
	authenticationSuccess:"Cargándose la aplicación, espere unos minutos",
	authenticationError:"Lo sentimos, ha habido un error en en el proceso de autentificación.",
	authenticationErrorUnauthorized:"Error de autentificación.",
	tryAgain:"Inténtelo de nuevo",
	tryMoreLater:"Inténtelo más tarde...",
	userRequired:"El usuario es obligatorio",
   userUnknown:"Usuario desconocido",
	passwdRequired:"El password es obligatorio",
	extensionRequired:"La extensión es obligatoria para acceder a Oigaa",
	userFormat:"El usuario debe ser un email de cliente (para la administración) o una extensión Oigaa (para entrar en Oigaa) ",
	authenticating:"&nbsp;&nbsp;Autenticando....",
	authenticationErrorPasswdRequired:"El password es obligatorio",
	authenticationErrorSendTokenProblem:"Ha habido problemas con el envío de información entre servidores",
   undefinedError:"Ha habido un error inesperado. Por favor, vuelva a intentarlo en unos minutos.",
   
	// remind password 
  	remindPwdTitle: "Recordar contrase&ntilde;a",
   remindPwdText: "Introduzca su dirección de correo electrónico:",
   remindCaptchaText: "Introduzca las dos palabras superiores:",
   remindAllDataRequired: "Por favor, introduzca todos los datos.",
   remindAdc: "La contraseña de su área de clientes ha sido enviada a su dirección de correo electrónico.",
   remindOigaa: "Su contraseña de Oigaa ha sido enviada a su dirección de correo electrónico,",
   remindAdcOigaa: "Las contraseñas de su área de clientes y Oigaa han sido enviadas a su dirección de correo electrónico.",
   remindCaptchaError: "Las palabras que escribió son incorrectas. Por favor, inténtelo de nuevo.",
   
   lastStr:"Ultimo String"
}
	
