| CultureInfoExtensions Methods |
The CultureInfoExtensions type exposes the following members.
| Name | Description | |
|---|---|---|
| AreCompatible |
Checks whether two cultures (languages) are compatible. Two cultures are
compatible if they denote the same language which means they have to be identical or
their closest region-neutral parents are identical.
| |
| GetCultureInfo(Int32) |
Returns the culture which corresponds to the specified LCID. If the LCID is unknown or
invalid, an exception is thrown. Note that this will also be the case for custom cultures,
which seem to always get the same LCID (4096).
| |
| GetCultureInfo(String) |
Similar to GetCultureInfo(String), but
covers culture names (<language-code>-<region-code>) which are used
by SDLX and Trados Translator's Workbench, but have a different code in .Net.
Use this method to transparently map language codes (current and legacy ones) to cultures, for example when processing TTX, ITD, or TMX. | |
| GetCultureInfo(Int32, Boolean) |
Returns the culture which corresponds to the specified locale, which may be a legacy LCID
used internally by SDLX or Trados Translator's Workbench.
| |
| GetCultureInfo(String, Boolean) |
Similar to GetCultureInfo(String), but
covers culture names (<language-code>-<region-code>) which are used
by SDLX and Trados Translator's Workbench, but have a different code in .Net.
Use this method to transparently map language codes (current and legacy ones) to cultures, for example when processing TTX, ITD, or TMX. | |
| GetLanguageGroupID |
Returns the LanguageGroupID associated with the specified culture.
| |
| GetLanguageGroupName |
Returns the name of the language group for the specified culture as a string.
| |
| GetLeadingClitics |
Returns a case-sensitive string hash set containing the leading separable clitics for the provided
culture, or null if none are defined.
| |
| GetMappedCultureCodeForLegacyCode |
Assumes the passed culture code is a legacy code and returns the mapped
equivalent. null is returned if no mapping exists (which means that the
code is not a legacy code or no mapping is required or yet specified).
| |
| GetRegionNeutralCulture |
Computes and returns the region-neutral parent culture of the input culture. If the input
culture is already neutral, it is returned. Otherwise, the parent culture hierarchy is
traversed until a region-neutral culture is found.
| |
| GetRegionQualifiedCulture(CultureInfo) |
Heuristically computes and returns the region-specified ("default") culture for a given
language. If the input culture is not neutral (i.e. it is region-specific), it is returned.
Otherwise the method will find the region-qualified culture which most likely represents
the culture's default/major region.
| |
| GetRegionQualifiedCulture(String) |
Heuristically computes and returns the region-specified ("default") culture code for a given
language code. If the input culture is not neutral or does not have a region-qualified
equivalent, null is returned.
| |
| GetTrailingClitics |
Returns a case-sensitive string hash set containing the trailing separable clitics for the provided
culture, or null if none are defined.
| |
| IsRomanceLanguage |
Determines whether the specified culture info is any of the romance languages: French, Spanish, Portuguese,
Italian, Romanian, Galician or Catalan.
| |
| UseBlankAsSentenceSeparator |
Determines whether the specified culture uses blanks as sentence separators. This is
currently only true for Thai.
| |
| UseBlankAsWordSeparator |
Determines whether the specified culture uses blanks as word separators. This is
true for all cultures except those based on Japanese, Thai, or Chinese.
| |
| UseFullWidth |
returns true for CJK cultures
| |
| UsesClitics |
Determines whether the specified culture uses clitics (English and the romance languages).
| |
| UsesDefaultDigits |
Determines whether the specified culture uses the standard default digits.
| |
| UsesStandardNumberGrouping |
Determines whether the provided culture uses standard three-digit grouping for number
formatting.
|