// javascript localized strings 
/* 
   1.  Take a string as the key argument
   2. Look in LocalizedStrings for an entry matching key 
   3. If a match is found, return it
   4. Otherwise, return key
   5. If something goes horribly wrong (that's the try/catch part of it), return key
*/

function getLocalizedString(key) { 
       try { 
	         var ret = LocalizedStrings[key]; 
			 if (ret === undefined)  ret = key.replace(/_/g," ");  //replace the underscores(" ") with space(" ") 
			 return ret; 
		} 
		catch (ex) {} 
		    return key.replace(/_/g," ");  //replace the underscores(" ") with space(" ") 
}

var LocalizedStrings = new Array();
/* 
define key => value pair for the english language 
note: define key text as human readable format so that if the value is not found the key can be placed as value :). 
*/

/* profile update langs */
LocalizedStrings['please_enter_your_full_name'] = " please enter your full name"; 
LocalizedStrings['email_is_required'] = " email is required";
LocalizedStrings['please_give_a_valid_email_address'] = " please give a valid email address";
LocalizedStrings['an_error_has_occured'] = "an error has occured, please try again";
LocalizedStrings['confirm_password_didnt_match'] = "confirm password didn't match with the new one";
LocalizedStrings['give_current_password'] = "please, give the current password";
LocalizedStrings['required_field'] = "this is a required field";
LocalizedStrings['your_profile_has_been_successfully_updated'] = "thank you, your profile has been successfully updated";
LocalizedStrings['your_privacy_settings_has_been_successfully_updated'] = "thank you, your privacy settings has been successfully updated";

/* save preferences __ update options */
LocalizedStrings['invalid_values'] = "invalid values for the profile visibility field,try reloading the page";
LocalizedStrings['illegal_values'] = "illegal values submitted in the form,try reloading the page again";

/* block one langs */
LocalizedStrings['give_the_username_you_want_to_block'] = "please, give the username you want to block";
LocalizedStrings['sorry_unable_to_process_the_block'] = "sorry! unable to process the block, please try again";
LocalizedStrings['has_been_successfully_blocked'] = " has been successfully blocked.";
LocalizedStrings['the_username_you_typed_is_already_blocked'] = "the username you typed is already blocked";
LocalizedStrings['few_minutes_ago'] = "few minutes ago";
LocalizedStrings['you_are_going_to_block_yourself'] = "hey, you are going to block yourself! it's not possible.";