Updates string translations for persistent objects.
Source position: lcltranslator.pas line 55
public procedure TUpdateTranslator.UpdateTranslation( |
AnInstance: TPersistent |
); |
AnInstance |
|
Persistent object updated in the method. |
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.