Avoid duplicate translations on inherited frames
Posted: Sat Feb 18, 2012 3:12 pm
Hi,
I have the following scenario:
FrameA with a siLangLinked component
FrameB = class(FrameA) with IsInheritedOwner property = True
FrameC = class(FrameB)
On FrameB I have several TActions. I want to have the translation of the captions done in FrameB, but the same Action-Captions appear in siLang-component of FrameC. So I have same caption again.
In your code I found the following comment in the procedure ReadOurStrProps
// 6.0.1
// At designtime we ignore all inherited data. Because this would do unwanted copies of translations
So I expect that if IsInheritedOwner is set to true, inherited properties (in my case Taction.caption) are not listed again.
How can I avoid the unwanted copies? As I have hundreds of frames in my project it's important to get this solved.
Appreciate your help.
I have the following scenario:
FrameA with a siLangLinked component
FrameB = class(FrameA) with IsInheritedOwner property = True
FrameC = class(FrameB)
On FrameB I have several TActions. I want to have the translation of the captions done in FrameB, but the same Action-Captions appear in siLang-component of FrameC. So I have same caption again.
In your code I found the following comment in the procedure ReadOurStrProps
// 6.0.1
// At designtime we ignore all inherited data. Because this would do unwanted copies of translations
So I expect that if IsInheritedOwner is set to true, inherited properties (in my case Taction.caption) are not listed again.
How can I avoid the unwanted copies? As I have hundreds of frames in my project it's important to get this solved.
Appreciate your help.