| MeasureTokenLocalize Method (CultureInfo, AutoLocalizationSettings, ILocalizableToken, Boolean) |
Auto-localizes the token according to the settings of the specified target culture
and the provided auto-localization settings. The text of the token will be changed,
but not the values.
For some token types, special AutoLocalizationSettings will be used, if provided.
Namespace: Sdl.LanguagePlatform.Core.TokenizationAssembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntaxpublic override bool Localize(
CultureInfo culture,
AutoLocalizationSettings autoLocalizationSettings,
ILocalizableToken originalMemoryToken,
bool adjustCasing
)
Public Overrides Function Localize (
culture As CultureInfo,
autoLocalizationSettings As AutoLocalizationSettings,
originalMemoryToken As ILocalizableToken,
adjustCasing As Boolean
) As Boolean
public:
virtual bool Localize(
CultureInfo^ culture,
AutoLocalizationSettings^ autoLocalizationSettings,
ILocalizableToken^ originalMemoryToken,
bool adjustCasing
) override
abstract Localize :
culture : CultureInfo *
autoLocalizationSettings : AutoLocalizationSettings *
originalMemoryToken : ILocalizableToken *
adjustCasing : bool -> bool
override Localize :
culture : CultureInfo *
autoLocalizationSettings : AutoLocalizationSettings *
originalMemoryToken : ILocalizableToken *
adjustCasing : bool -> bool Parameters
- culture
- Type: System.GlobalizationCultureInfo
The target culture - autoLocalizationSettings
- Type: Sdl.LanguagePlatform.Core.TokenizationAutoLocalizationSettings
Contains the AutoLocalizationSettings to use for some token types. May be null,
in which case default settings will be used. - originalMemoryToken
- Type: Sdl.LanguagePlatform.Core.TokenizationILocalizableToken
The original memory token. Some auto-localization settings will
be derived from the token, if provided. - adjustCasing
- Type: SystemBoolean
If true, it is assumed that the token is in segment-initial position. Then, casing
will be adjusted if the original memory token is supplied as well.
Return Value
Type:
Booleantrue if the token text has been changed, and
false otherwise
Implements
ILocalizableTokenLocalize(CultureInfo, AutoLocalizationSettings, ILocalizableToken, Boolean)ILocalizableTokenLocalize(CultureInfo, AutoLocalizationSettings, ILocalizableToken, Boolean)
See Also
Comments