Tutorial Chapter 10: Localization / Example: Localization |
Compile the program and string file using Genero Studio or command line tools.
As you learned earlier in the Tutorial, the Execute option in the Genero Studio Project view will compile and link files in the specified application node if necessary before executing the application. This behavior also applies to String Source files (.str). String Source files can also be compiled independently with the Compile File option.
Figure 1. Using the Execute option to compile and execute the progstrings program
fgl2p -o progstrings.42r prog.4gl
fglmkstr progstring.str
The resulting Compiled String File is progstring.42s.
The list of Compiled String Files is specified in the fglprofile configuration file. The runtime system searches for a file with the "42s" extension in the current directory and in the path list defined in the DBPATH / FGLRESOURCEPATH environment variable. Specify the total number of files, and list each file with an index number.
01 fglrun.localization.file.count = 2 02 fglrun.localization.file.1.name = "form" 03 fglrun.localization.file.2.name = "prog"
export FGLPROFILE=./fglprofile
fglrun cust
Display of the form using the default values for the strings.
Figure 2. Form with default values for strings
Display of the form when the Compiled String File is deployed.
Figure 3. Form using compiled string file