[fpc-pascal] How to get the current translation of a resource string?
Michael Van Canneyt
michael at freepascal.org
Wed Dec 2 13:48:35 CET 2020
On Wed, 2 Dec 2020, Mattias Gaertner via fpc-pascal wrote:
> 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.
Just trying to go with the times ;-)
>
> 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?
Also an option. :-)
The question is then why there are 2 copies of a string ? :-)
>
> See Hanlon's razor.
What's wrong with Occam's razor ? Too old ?
Michael.
More information about the fpc-pascal
mailing list