On 3/2/07, mramirez <[EMAIL PROTECTED]> wrote:
> Is it possible to use resource strings in constants and be able to
> translate them with 'gettext' unit at runtime?

TRASLATE THEM AT RUNTIME ?

What I meant by runtime is when the application starts, I do the
resourcestring translation (in the .lpr file) before the first form is
created.  I was hoping that the resource strings will get translated
before the constants get populated thinking it might be a timing issue
- the order of unit in the uses clause or something.  Unfortunately I
couldn't manage to get that working.  So to solve this I replaced the
constants that need to be translated with variables (static arrays)
and populate them after the call to translated resource strings.

This seems to work, but isn't ideal.  Luckily not all my constants
need translation, so I can live it as is for now.

--
Graeme Geldenhuys

There's no place like S34° 03.168'  E018° 49.342'

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

Reply via email to