GNU Info

Info Node: (gettext.info)Sources

(gettext.info)Sources


Next: Template Prev: Basics Up: Top
Enter node , (file) or (file)node

Preparing 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.

Triggering
Triggering `gettext' Operations
Mark Keywords
How Marks Appear in Sources
Marking
Marking Translatable Strings
c-format
Telling something about the following string
Special cases
Special Cases of Translatable Strings

automatically generated by info2www version 1.2.2.9