function getLocaleInfo(id) { switch (id) { case "decimalSeparator": return '.'; case "groupSeparator": return ','; case "roundDigits": return 0; } return ""; } function getLocaleText(id){ switch (id) { case "requiredField": return 'Required field'; case "IncorrectEmailFormat": return 'Invalid email format in field {0}'; } return ""; } var arrayLocaleInfo = "en|en|US|Yes;No;|2|.|,|January;February;March;April;May;June;July;August;September;October;November;December|Jan;Feb;Mar;Apr;May;Jun;Jul;Aug;Sep;Oct;Nov;Dec|Sunday;Monday;Tuesday;Wednesday;Thursday;Friday;Saturday|Sun;Mon;Tue;Wed;Thu;Fri;Sat|m/d/yyyy|dddd, mmmm dd, yyyy|h:nn tt|h:nn:ss tt|0|AM|PM".split("|"); function getLocaleInfo2(id) { switch (id) { case "LanguageAndCountry": return arrayLocaleInfo[0]; case "language": return arrayLocaleInfo[1]; case "country": return arrayLocaleInfo[2]; case "booleanFormat": return arrayLocaleInfo[3]; case "decimalDigits": return arrayLocaleInfo[4]; case "decimalSeparator": return arrayLocaleInfo[5]; case "groupSeparator": return arrayLocaleInfo[6]; case "monthNames": return arrayLocaleInfo[7]; case "monthShortNames": return arrayLocaleInfo[8]; case "weekdayNames": return arrayLocaleInfo[9]; case "weekdayShortNames": return arrayLocaleInfo[10]; case "shortDate": return arrayLocaleInfo[11]; case "longDate": return arrayLocaleInfo[12]; case "shortTime": return arrayLocaleInfo[13]; case "longTime": return arrayLocaleInfo[14]; case "firstWeekDay": return arrayLocaleInfo[15]; case "AMDesignator": return arrayLocaleInfo[16]; case "PMDesignator": return arrayLocaleInfo[17]; } return ""; }