#1 2015-10-27 10:01:45

lagodny
Member
Registered: 2015-01-28
Posts: 50

ExtractAllResources does not extract DisplayLabel from DFM

CB_EnumDFMProc has the condition

        if (LastPropName='Caption') or (LastPropName='EditLabel.Caption') or
           (LastPropName='Hint') or (LastPropName='EditLabel.Hint') or
           (LastPropName='Title') or (LastPropName='Items') then begin
          Writeln(F^,PropName,'=_',Hash32(CB_EnumStrings[AddOnceDynArray(Value)]),
            '   ',Value); // add original caption for custom form translation

TField has property DisplayLabel. Can we include it in the condition?

Offline

#2 2015-11-03 08:27:37

lagodny
Member
Registered: 2015-01-28
Posts: 50

Re: ExtractAllResources does not extract DisplayLabel from DFM

Is it possible to update mORMoti18n.pas to allow translating DisplayLabel?

        if (LastPropName='Caption') or (LastPropName='EditLabel.Caption') or
           (LastPropName='Hint') or (LastPropName='EditLabel.Hint') or
           (LastPropName='Title') or (LastPropName='Items')
           or (LastPropName='DisplayLabel')  // <--- line to extract DisplayLabel
          // standard properties
          if (P^.Name='Caption') or (P^.Name='Hint') or
             (P^.Name='Title')
             or (P^.Name='DisplayLabel') // <--- line to translate DisplayLabel
             then

Offline

#3 2015-11-04 08:04:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: ExtractAllResources does not extract DisplayLabel from DFM

Included as http://synopse.info/fossil/info/a2a86a2d55

Thanks for the feedback!

Online

Board footer

Powered by FluxBB