[Overview][Classes][Procedures and functions][Index] |
Gets the translated value for the specified property.
Source position: lcltranslator.pas line 77
public procedure TPOTranslator.TranslateStringProperty( |
Sender: TObject; |
const Instance: TPersistent; |
PropInfo: PPropInfo; |
var Content: string |
); override; |
Sender |
|
Class instance calling the method. |
Instance |
|
Persistent object with properties affected in the method. |
PropInfo |
|
RTTI Property information. |
Content |
|
Value for the translated string property. |
TranslateStringProperty is a procedure used to get the translated value for the specified property from the .po file used in the class instance.
Sender is the class instance requesting the translation action.
Instance is the TPersistent object instance affected in the method.
PropInfo contains the RTTI property information needed to update the property value.
TranslateStringProperty uses the internal TPOFile instance created in the constructor to get the translated value for the property. The translated string value is stored in the Content argument and returned to the caller. The property value is actually updated in the caller.
No actions are performed in the method if a .po file was not found with the required file name.
Version 4.0 | Generated 2025-05-03 | Home |