
|
There are three ways to translate all textual prompts and messages into the component. 1) Editing the *.rc file to generate a new avlockg5.res file. 2) Editing and loading the "avlock.eng" or "avlock.spa" files. 3) Setting the prompts and text properties.
|
1) Editing the *.rc file to generate a new avlockg5.res file.
Together with the AVLock Gold component come these resource files:
avlockg5_en.rc : Plain text format file with the prompts and
messages by english language.
avlockg5_sp.rc : Plain text format file with the prompts and
messages by spanish language.
avlockg5_en.res : Compiled resource file by english language
avlockg5_sp.res : Compiled resource file by spanish language
You can edit the *.rc file with notepad or your favorite text editor translating all its text to your desired language, then compile it with Brcc32.exe(*) as follows :
Execute this command line :
Brcc32.exe avlockg5_en.rc
This will generate the avlockg5_en.res file
Rename it as avlockgold.res and locate it into your component folder.
2) Editing and loading the language files "avlock.eng" or "avlock.spa"
These plain text files hold all textual messages for a desired language. This is a quite ease way since you can edit these files with notepad or your favorite text editor and immediately these are ready to use.
To use these language files you must call the "LoadLangList" method inserting a line before any other line referring to the AVLockGold component, normally before the execute line as in the following sample extracted from the Demo1 program.
procedure TForm1.FormCreate(Sender: TObject);
begin
AVLockG51.LoadLangList('avlock.spa'); //optional line for spanish language
AVLockG51.execute; //This is the only required line
end;
3) Setting the prompts and text properties
Afterward, at design time, you can change some individual messages changing the text of the property that hold the message. See Prompts and text properties into the Properties section.
(*) Brcc32.exe is in the bin folder of Delphi.
|