AV-SOFT.COM
AVLock SIMPLE
Introduction
What is AVLock Gold?
How to buy AVLock Gold?
How to Upgrade from previous versions?
What's new in version 5
Another AVlock components
License Agreement
Using AVLock Gold
How to install AVLock Gold?
How works AVLockGold?
Brief practice with demo's
Step by step samples
Basic sample
Working with modules
Creating your own registration form
Running on a network
"MoveReg" feature
Some configuration issues
Hacking cautions
How to translate AVLock Gold to any language?
Properties
Methods
Events
Useful concepts
Registration keys
KeyFiles
RegFiles and ControlFiles
RegistryKeys
MasterComputers and RegularComputers
Utilities
AVLockManager
RegMonitor
Configure
KeyGen
Php key generators
FAQs

How to translate AVLock Gold to any language?

Top  Previous  Next

avlockg53

 

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.