mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 04:36:31 +02:00
LCL: TPOTranslator constructor with TPOFile, patch #27616 from Simon Ameis
git-svn-id: trunk@48161 -
This commit is contained in:
parent
88ba0ca4c8
commit
7bfd7e12cc
@ -67,6 +67,7 @@ type
|
||||
FPOFile: TPOFile;
|
||||
public
|
||||
constructor Create(POFileName: string);
|
||||
constructor Create(aPOFile: TPOFile);
|
||||
destructor Destroy; override;
|
||||
procedure TranslateStringProperty(Sender: TObject; const Instance: TPersistent;
|
||||
PropInfo: PPropInfo; var Content: string); override;
|
||||
@ -431,6 +432,12 @@ begin
|
||||
FPOFile := TPOFile.Create(POFileName);
|
||||
end;
|
||||
|
||||
constructor TPOTranslator.Create(aPOFile: TPOFile);
|
||||
begin
|
||||
inherited Create;
|
||||
FPOFile := aPOFile;
|
||||
end;
|
||||
|
||||
destructor TPOTranslator.Destroy;
|
||||
begin
|
||||
FPOFile.Free;
|
||||
|
Loading…
Reference in New Issue
Block a user