[Overview][Classes][Procedures and functions][Index] Reference for unit 'LCLTranslator' (#lcl)

TUpdateTranslator.UpdateTranslation

Updates string translations for persistent objects.

Declaration

Source position: lcltranslator.pas line 55

public procedure TUpdateTranslator.UpdateTranslation(

  AnInstance: TPersistent

);

Arguments

AnInstance

  

Persistent object updated in the method.

Description

UpdateTranslation is procedure used to translate string properties in the specified persistent object instance. UpdateTranslation uses RTTI (Run Time Type Information) to update the value for translatable properties in Lazarus resources. This requires properties to be a TPersistent descendant with RTTI enabled, and have a setter (write access) procedure. Strings, Classes, Components and the sub-Components are handled in the method.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.