Click or drag to resize

LocalizableMessagelocalizedTemplate Property

Localized Lingoona Grammar template for the tag.

Namespace:  KSPDev.GUIUtils
Assembly:  KSPDev_Utils.2.0 (in KSPDev_Utils.2.0.dll) Version: 2.0 for KSP v1.8+
Syntax
C#
public string localizedTemplate { get; }
Request Example View Source

Property Value

Type: String
A Lingoona Grammar template in the current languge.
Remarks

The template is resolved via the Localizer only once. The resolved value is cached and re-sued.

If there is no string defined for the tag, then a defaultTemplate will be used. A warning record will be logged to help tracking such issues.

When current language is changed the cached version needs to be reloaded. Call the LoadLocalization method to force it. However, as of KSP 1.3.0 the langauge cannot be changed while the game is running.

See Also