On 06.08.2012 21:48, Rainer Stratmann wrote:
Out of curiosity: why don't you use resourcestrings?
It seems that is has not the flexibility and simplicity (in its entirety)
that I want.
I would not call your method "simple"
It may is in the beginning more difficult to implement, but if it runs once I
would say this can not get much more simpler.
You only have to put p1( ) around your text snippet. That is it!
The function returns the right language.
Somehow this sounds like the GNU GetText function _() works. With the
exception that the text which has to be translated is simply searched by
looking through the source code for _("some text")...
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal