Next: , Up: Preparing Program Sources   [Contents][Index]


4.1 Importing the gettext declaration

Presuming that your set of programs, or package, has been adjusted so all needed GNU gettext files are available, and your Makefile files are adjusted (see The Maintainer’s View), each C module having translated C strings should contain the line:

#include <libintl.h>

Similarly, each C module containing printf()/fprintf()/... calls with a format string that could be a translated C string (even if the C string comes from a different C module) should contain the line:

#include <libintl.h>