[fpc-pascal] Re: Get all caller adresses of a given function/procedure before executing

Rainer Stratmann RainerStratmann at t-online.de
Wed Aug 15 10:08:25 CEST 2012

Am Wednesday 15 August 2012 09:59:00 schrieb Lukasz Sokol:
> On 15/08/2012 08:33, Rainer Stratmann wrote:
> > Am Wednesday 15 August 2012 03:52:00 schrieb waldo kitty:
> >> the loading code simply
> >> chooses the proper po file and then loads the strings into an array or
> >> whatever using the same variables which are used everywhere no matter
> >> what language their contents are written in...
> >
> > Do you need a separate pascal identifier for each snippet?
> >
> >> i must still be missing something :?
> No with (dx)gettext you don't need pascal identifiers for every string.
> And the translating function is _():string;
> So all you do is writeln(_('snippet1'));, to follow your convention.
> So it more or less uses the same idea as you are trying to replicate.
Yes, that is possible as I understand it so far.
I did not know (dx)gettext before so replication is may not the right word.
My solution will be more flexible I assume.
I put already some hours in it and I like to write my own code so I follow the 
already driven way.

More information about the fpc-pascal mailing list