public static string GetGlobalizedLabel(string page, string label)
        {
            if (string.IsNullOrWhiteSpace(label))
            {
                return(label);
            }
            if (label.Contains(' '))
            {
                return(label);
            }

            UserCulture userCulture = new UserCulture();

            userCulture = CultureInformationManagement.GetCultureObject();
            if (userCulture.CultureXML != null)
            {
                string globalTextForLabel = label;

                string xmlSearchPattern = "/CultureInformation/" + page + "/" + label;

                XmlNode objNode = userCulture.CultureXML.SelectSingleNode(xmlSearchPattern);

                if (objNode != null)
                {
                    globalTextForLabel = objNode.InnerText;
                }

                return(globalTextForLabel);
            }
            return(label);
        }
        public static string GetGlobalizedDropDownItemText(string dropDownName, string itemText)
        {
            UserCulture userCulture = new UserCulture();

            userCulture = CultureInformationManagement.GetCultureObject();
            if (userCulture.CultureXML != null)
            {
                string globalTextForLabel = itemText;

                string xmlSearchPattern = "/CultureInformation/" + dropDownName + "/" + itemText;

                XmlNode objNode = userCulture.CultureXML.SelectSingleNode(xmlSearchPattern);

                if (objNode != null)
                {
                    globalTextForLabel = objNode.InnerText;
                }

                return(globalTextForLabel);
            }
            return(itemText);
        }