LCL: TPOTranslator constructor with TPOFile, patch #27616 from Simon Ameis

git-svn-id: trunk@48161 -
This commit is contained in:
mattias 2015-03-07 10:14:36 +00:00
parent 88ba0ca4c8
commit 7bfd7e12cc

View File

@ -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;