On Fri, 07 Apr 2006 17:35:02 +0200
Giuliano Colla <[EMAIL PROTECTED]> wrote:

> Mattias Gaertner ha scritto:
> [...]
> Where is Trasl defined?
> 
> 
>    In the QTraslate unit which is included in the uses statement of the
>    custom component modules, and which is created when loaded with
>    strings. Otherwise it's present but unassigned.
> 
> [...]
> I've been forced to override the Repaint method, to force a new 
> translation to become effective.
>     
> The Repaint is not needed under LCL.
> 
>  
>    Under Delphi/Kilix it was. Good to know.
> 
> - It's a little bit too specific. We already have problems with same
> english value and different translations.
>    That's why my Caption returns the English value and not the translated
>    one. The Translated caption is only displayed, but programmer deals
>    only with the original string.
> - All LCL captions have already a special type: TTranslateString. Just go
> through all components with RTTI and translate these properties. Then you
> have not only the value, but the class as well to find the correct
> translation. We don't need to extend the LCL controls with code. Just use
> TTranslateString.
> 
> 
>    I'll try, and if it provides the required functionality, I'll gladly
>    throw away my hack.

If not, then you either found a bug, or I misunderstood you.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to