DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using the SCOadmin internationalization facility

Compiling message catalogs into your application

mkcatdecl generates message declaration files that enable C, C++, and Tcl programs to access the messages in the message files. Two C files or one Tcl file (or both) are generated for each module, based on the $moduleset line in the message description file. For example, if a module in a message description file has the following line:

   $moduleset SCO_PIZZA C=../pizza/pizza Tcl=../pizza/pizza
the following files will be generated:

../pizza/pizza.msgd.h (C message declaration file)
../pizza/pizza.msg.h (C external message declaration file)
../pizza/pizza.msg.tcl (Tcl message declaration file)

The C message declaration file needs to be included only once for each executable. It defines the data structures used by the SCOadmin internationalization facility. If there are more than one C file which make use of the messages from a given module, the additional files can include the external message declaration file, which consists of external declarations of the data in the message declaration file.

For a Tcl program using the messages of a given module, you need to ensure that the Tcl message declaration file is included only once. This can be accomplished by placing the message declaration file within a Tcl library.


Previous topic: Compiling a message file

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004