You are not logged in.
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
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
Included as http://synopse.info/fossil/info/a2a86a2d55
Thanks for the feedback!
Online