Question: 2.9. How to change the language in the FR dialogs on-the-fly?

Answer:

a) use resources in a DLL. Compile the resource DLL (run mkdll.bat file from the FRRESyour_resource folder) and write in your program:

1
frLocale.LoadDll('FR_ENGL.DLL');

 
If you want to use default resources, write:

1
frLocale.UnloadDll;

 
b) resources in the text file or ini file or in other form. Use the event frLocale.OnLocalize. It puts StringID and gets ResultString. For example:

1
2
3
4
5
6
7
frLocale.OnLocalize := MyClass.OnLocalize; 
 
procedure TMyClass.OnLocalize(StringID: Integer; var ResultString: String);
begin
if StringID = 53000 then
ResultString := 'Search';
end;