jQuery.extend(jQuery.validator.messages, {
required: "This field is required.",
email: "Please enter a valid email address.",
rangelength: $.validator.format("Please enter a value between {0} and {1} characters long."),
maxlength:$.validator.format("Please enter no more than {0} characters."),
digits:"Please enter only digits.",
number:"Please enter a valid number.",
max:$.validator.format("Please enter a value less than or equal to {0}."),
url:"Please enter a valid URL."
});
function getText(name){
switch(name){
case 'validateEmail':return 'Please enter a valid email address.';
case 'registeredEmailAddress':return 'The email address was registered.';
case 'Registered TP-Link ID':return 'The TP-Link ID already exists.';
case 'passwordNotMatch':return 'Password does not match.';
case 'registeredUsername':return 'The username is registered.';
case 'agreeFirst':return 'You should agree to the Terms & Conditions before you continue';
case 'Registration Agree':return 'You should agree to the Privacy Policy before you continue';
case 'thanksForContact':return 'Thank you for contacting us. We will review your comments and provide feed back shortly.';
case 'otherSpecifyRequired':return 'Please input other specify';
case 'congratulations':return 'Thank you. Your email address has been verified';
case 'emptyPassword':return 'Please input your password';
case 'contentRequired':return 'Please enter a valid content';
case 'search':return 'search';
case "Generic Distributor":return "Distributori generici";
case "Specialty Distributor":return "Distributori specializzati";
case 'notBusinessEmailAddress':return 'Please enter a business email address rather than a personal one, or you will fail the registration.';
case 'removeConfirm':return 'This will remove this data permanently, continue?';
case 'Partner Program':return 'Partner Program';
case 'TP-Link Partner Program':return 'TP-Link Partner Program';
case 'TP-Link SolutionX Partner Program':return 'TP-Link SolutionX Partner Program';
case 'Registration':return 'Registration';
case 'Verification':return 'Verification';
case 'Business Information':return 'Business Information';
case 'Save Confirm':return 'Do you want to save the currently input?';
case 'Yes':return 'Yes';
case 'No':return 'No';
case 'inviteAdminEmail':return 'Please adjust the radio button or enter a different email address';
case 'validateMobileNumber':return 'Please enter {0} digits';
case 'Tax Number Invalid':return 'Please enter a valid tax number';
case 'Distributor Required':return 'Distributor account info is required';
case 'Unsubscribe':return 'Unsubscribe';
case 'Return':return 'Return';
case 'OK':return 'OK';
case 'Discount/Discount Price Required':return 'Discount/Discount Price Required';
case 'Password too simple':return 'Enter a value ranges from 8 to 32 characters. The password should be a combination of letters, numbers, or symbols.';
case 'CEO': return 'CEO';
case 'CTO': return 'CTO';
case 'CIO': return 'CIO';
case 'Director': return 'Director';
case 'IT Manager': return 'IT Manager';
case 'Developer': return 'Developer';
case 'Designer': return 'Designer';
case 'Marketing Specialist': return 'Marketing Specialist';
case 'Customer Support': return 'Customer Support';
case 'Please enter in correct format': return 'Please enter in correct format';
case 'One Last Step': return 'One Last Step';
case 'Activation Link Sent': return 'An activation link has been sent to your email address.';
case 'Activate and Complete Registration': return 'Please click on the link to activate your TP-Link ID and complete registration.';
case 'Error loading data': return 'Error loading data';
}
}