[fpc-pascal] How to get the current translation of a resource string?

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Dec 2 13:45:00 CET 2020


On Wed, 2 Dec 2020 13:30:13 +0100 (CET)
Michael Van Canneyt via fpc-pascal <fpc-pascal at lists.freepascal.org>
wrote:

> On Wed, 2 Dec 2020, Luca Olivetti via fpc-pascal wrote:
> 
>[...]
> > but it doesn't work (sCannotFocus holds the original, not the 
> > translated, string).  
> 
> Seems like Lazarus is not using the regular resourcestrings then,
> because the whole point of using resourcestrings is that their value
> is the translated value...

Sounds like a conspiracy theory.

What about the simple explanation, that there are two
resourcestrings with the same name in RTLConsts and LCLStrConsts and
Luca is looking at the wrong one?

See Hanlon's razor.

Mattias


More information about the fpc-pascal mailing list