Click or drag to resize
ILocalizableTokenLocalize 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.Tokenization
Assembly: Sdl.LanguagePlatform.Core (in Sdl.LanguagePlatform.Core.dll) Version: 1.6.0.0 (1.7.3164.0)
Syntax
bool Localize(
	CultureInfo culture,
	AutoLocalizationSettings autoLocalizationSettings,
	ILocalizableToken originalMemoryToken,
	bool adjustCasing
)

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: Boolean
true if the token text has been changed, and false otherwise
See Also
Community
Edit

Be the first to Edit the community content of this topic.
Comments