| CultureInfoExtensionsGetCultureInfo Method (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.
Namespace: Sdl.LanguagePlatform.CoreAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntaxpublic static CultureInfo GetCultureInfo(
string name
)
Public Shared Function GetCultureInfo (
name As String
) As CultureInfo
public:
static CultureInfo^ GetCultureInfo(
String^ name
)
static member GetCultureInfo :
name : string -> CultureInfo
Parameters
- name
- Type: SystemString
The culture code
Return Value
Type:
CultureInfoA CultureInfo object, using appropriate fallbacks for backwards compatibility. Throws
an exeption if neither the fallback heuristics nor .Net can resolve the culture name.
Remarks
See Also
Comments