| CultureInfoExtensionsGetCultureInfo Method (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.
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(
int lcid,
bool returnNullForUnknowns
)
Public Shared Function GetCultureInfo (
lcid As Integer,
returnNullForUnknowns As Boolean
) As CultureInfo
public:
static CultureInfo^ GetCultureInfo(
int lcid,
bool returnNullForUnknowns
)
static member GetCultureInfo :
lcid : int *
returnNullForUnknowns : bool -> CultureInfo
Parameters
- lcid
- Type: SystemInt32
The locale identifier (lcid) - returnNullForUnknowns
- Type: SystemBoolean
If true, null is returned for unknown languages. Otherwise, an exception
is thrown. This will also be the case if the lcid represets a custom culture (in most cases,
the lcid will be 4096 in this case).
Return Value
Type:
CultureInfoA
CultureInfo object, or null if
returnNullForUnknowns is true.
See Also
Comments