mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Optimize resource strings translation
This commit is contained in:
parent
84a862d722
commit
cd1d9e8347
2 changed files with 2 additions and 1 deletions
|
|
@ -1187,7 +1187,7 @@ begin
|
|||
begin
|
||||
DCDebug('Loading lng file: ' + gpLngDir + gPOFileName);
|
||||
LRSTranslator := TTranslator.Create(gpLngDir + gPOFileName);
|
||||
Translations.TranslateResourceStrings(gpLngDir + gPOFileName);
|
||||
Translations.TranslateResourceStrings(TTranslator(LRSTranslator).POFile);
|
||||
TranslateLCL(gPOFileName);
|
||||
end;
|
||||
end;
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ type
|
|||
destructor Destroy; override;
|
||||
procedure TranslateStringProperty(Sender: TObject; const Instance: TPersistent;
|
||||
PropInfo: PPropInfo; var Content: String); override;
|
||||
property POFile: TPOFile read FPOFile;
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue