Even though FeedReader has now gone closed source, I am very interested in the way you handle translations in the FeedReader 3 source code (Delphi 7 as far as I know).
I don't know how you feel about that, or even if you are willing to share anything, but I definitely like your approach (separate UTF-8 encoded XML files, switch language at runtime and reassign all captions/hints/strings (RTTI perhaps?) etc.). I am facing a similar challenge, and this is precisely how I would do it but as always time is precious. I would be really grateful if I could get some examples/code snippets from you on this matter. I hope you can help me on that one, but of course it's up to you.
Anyway, thanks for FeedReader...
The easyest way; * each
The easyest way;
* each visual comp has uniq tagid
procedure test(const pcomp : tcomponent);
var i : integer;
begin
for i:=0 to pcomp.ComponentCount-1 do
begin
if (pcomp.Components[i].Tag=555) and (pcomp.Components[i] is TLabel) then
TLabel(pcomp.Components[i]).Caption:='test';
test(pcomp.Components[i]);
end;
end;
.................
begin
test(form1);
end;
Ingmar