Posts: 64
Threads: 18
Joined: Jan 2020
Reputation:
4
Location: Germany
Hi @all,
this question has probably already been asked. But I didn't find a solution.
How can the Texts from "IWResourceStrings" be modified?
Thanks for appropriate advice!
The way to success is always under construction ... but i see a light at the end of the tunnel
Posts: 2,261
Threads: 196
Joined: Mar 2018
Reputation:
86
Location: Auckland, New Zealand
Each resource string has an associated variable, which is initialized with the resource string value. But the variable can be modified at runtime.
Example:
resourcestring
PermissionDenied = 'Permission denied';
var
RSPermissionDenied: string;
At startup, RSPermissionDenied is initialized receiving the value in PermissionDenied.
Best way to change it is in ServerController.OnConfig event.
Posts: 64
Threads: 18
Joined: Jan 2020
Reputation:
4
Location: Germany
Thank you very much. Sometimes it can be so simple … ;-)
The way to success is always under construction ... but i see a light at the end of the tunnel