| PhysicalUnitGetPreferredAbbreviation Method |
Gets the preferred abbreviation for the specified unit. The preferred abbreviation
is used for auto-localization. It is the first abbreviation in a list of alternative
abbreviations for the unit.
Namespace: Sdl.LanguagePlatform.Core.TokenizationAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntaxpublic static string GetPreferredAbbreviation(
Unit unit,
CultureInfo culture
)
Public Shared Function GetPreferredAbbreviation (
unit As Unit,
culture As CultureInfo
) As String
public:
static String^ GetPreferredAbbreviation(
Unit unit,
CultureInfo^ culture
)
static member GetPreferredAbbreviation :
unit : Unit *
culture : CultureInfo -> string
Parameters
- unit
- Type: Sdl.LanguagePlatform.Core.TokenizationUnit
The unit to look up - culture
- Type: System.GlobalizationCultureInfo
An optional culture, in which case the method will
return the preferred abbreviation for the target culture (currently ignored)
Return Value
Type:
StringThe preferred abbreviation for the unit, or
null if the unit
wasn't found or has no known abbreviation.
See Also
Comments