Walter.BOM
GetInternationalCountryName(Nullable<GeoLocation>) Method
Walter.BOM Assembly > Walter.BOM.Geo Namespace > GeoExtensionMethods Class > GetInternationalCountryName Method : GetInternationalCountryName(Nullable<GeoLocation>) Method
The geographic location enum value for which to obtain the localized country name. Can be null.
Retrieves the localized name of the country associated with the specified GeoLocation value, based on the current UI culture of the system thread. if the location is null "UnKnown" is returned
Syntax
public static string GetInternationalCountryName( 
   Nullable<GeoLocation> location
)

Parameters

location
The geographic location enum value for which to obtain the localized country name. Can be null.

Return Value

A string containing the country name localized according to the current UI culture's two-letter ISO language name. If the location is null or does not correspond to a recognized country, or if localization for the UI culture is not available, a default or English name may be returned, depending on implementation.
Remarks
This method enhances the user experience by providing country names that are familiar to the user, based on their selected language settings. It's particularly useful in multilingual applications where displaying information in the user's preferred language is crucial. The localization process depends on the available resources and the specific implementation, which should map GeoLocation values to their respective names in various languages, ensuring that country names are plausible and understandable for the user's UI language.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GeoExtensionMethods Class
GeoExtensionMethods Members
Overload List