LCLTranslator: Correctly initialize original string value when translating it. Fixes translation of form elements via MO files. Before it worked only when SetDefaultLang procedure was called in unit initialization section, now it does not matter where/when SetDefaultLang is called.

git-svn-id: trunk@60595 -
This commit is contained in:
maxim 2019-03-05 23:25:38 +00:00
parent 999c63b476
commit e6e840a2e6

View File

@ -357,7 +357,7 @@ begin
tkAString:
if APropInfo^.PropType=TypeInfo(TTranslateString) then
begin
TmpStr := '';
TmpStr := GetStrProp(AnInstance, APropInfo);
{$IFDEF VerbosePOTranslator}
debugln(['TUpdateTranslator.IntUpdateTranslation ',GetStrProp(AnInstance,APropInfo)]);
{$ENDIF}