Copyright (C) 2000-2012 |
GNU Info (gettext.info)SourcesPreparing Program Sources ************************* For the programmer, changes to the C source code fall into three categories. First, you have to make the localization functions known to all modules needing message translation. Second, you should properly trigger the operation of GNU `gettext' when the program initializes, usually from the `main' function. Last, you should identify and especially mark all constant strings in your program needing translation. 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 (Note: Maintainers), each C module having translated C strings should contain the line: #include <libintl.h> The remaining changes to your C sources are discussed in the further sections of this chapter.
automatically generated by info2www version 1.2.2.9 |