Recent

Author Topic: Taction and TTranslateString (String properties)  (Read 8708 times)

tanila

  • Newbie
  • Posts: 5
    • http://www.tanila.de
Taction and TTranslateString (String properties)
« on: December 01, 2006, 03:41:39 am »
Hi all,

i played arround with some Run-Time Translation of Conmpnents, because I want to have such a feature in my apps.
I found, that you have done some work on such things. the TCaption properties can be scannde by using RTTI, very nice :).
But I as I tried to use this functionality on TActionLists, I found, that the Caption and Hint Properties of TContainedAction are of type String.
As I added some Lines in the ActionList unit:

Code: [Select]

type

  TTranslateString = type String;
  TCaption = TTranslateString;


To Avoid Circular references by with the Controls unit.
After That i changed the String Properties of TContainded action to TCaption.
Now everything is fine for me.

Now my questions:
1. Is there a reason why this String-Properties aren't replaced ?
2. Could my modification or some similar solution added to the units to have the TTranslateString - Feature in Actions ?

Thanks for all the work everyone has done here, great job
:)

tanila

  • Newbie
  • Posts: 5
    • http://www.tanila.de
RE: Taction and TTranslateString (String properties)
« Reply #1 on: December 01, 2006, 03:58:33 pm »
I added this Post to the Bug-Tracker...

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2674
RE: Taction and TTranslateString (String properties)
« Reply #2 on: December 03, 2006, 03:02:37 pm »
Mattias reported it as fixed
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018