Internationalization and localization tools


Culture-Sensitive C# Method

using System.Globalization

public virtual SortKey GetSortKey(string source);

public virtual SortKey GetSortKey(string source, CompareOptions options);

Internationalization (I18n) Method Overview

Returns the sort key for the specified string. Each character in a string is given several categories of sort weights, including script, alphabetic, case, and diacritic weights. A sort key is the repository of these weights for a particular string. For example, a sort key might contain a string of alphabetic weights, followed by a string of case weights, and so on. The GetSortKey method is equivalent to the Windows API method LCMapString with the LCMAP_SORTKEY flag.

For more information see Microsoft's MSDN online documentation.

I18n Issues

We flag this method to ensure that the CompareInfo object, through which this method is called, has been created for the correct culture. To create a CompareInfo object for any culture, use the GetCompareInfo method.

Culture and Number Format Information

 

Lingoport internationalization and localization services and software