Ejemplo n.º 1
0
        public static string LocalizeCountryAndSubdiv(string locale, string location)
        {
            string[] s = location.Split(';');
            string   country = s[0], subdivision = s[1];

            if (subdivision != "*" && !(locale == "ENUS" && country == "US"))
            {
                subdivision = SubdivisionData.QuerySubdiv(locale, country + ";" + subdivision).Name;
            }
            country = CountryData.QueryCountry(locale, country).Name;

            return(string.Join(";", new string[] { country, subdivision, s[2] }));
        }
Ejemplo n.º 2
0
 public string QueryAllSubdiv(string locale, string filterCountry)
 {
     return(SubdivisionData.QueryAllSubdiv(locale, filterCountry));
 }