[Lazarus] Changing the translation of forms while the program is running
Bart
bartjunk64 at gmail.com
Mon Jul 16 12:27:08 CEST 2012
On 7/16/12, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
>> So I have to do MyLabel.Caption := SomeResourceString again after the
>> translation.
>
> Yes.
>
In the ideal world I would set in OI that Caption uses a
resourcestring, and the component has some method to re-read it's
content, so one could do stuff like:
for i := 0 to Form1.ComponentCount - 1 do
begin
C := Form1.Compnents[i];
if C.UsesResourceStringForCaption then C.UpdateResourceString;
end;
This would make maintanance (large menu's, active devolopment of forms
in question) lots easier.
Bart
More information about the Lazarus
mailing list