manpagez: man pages & more
info gettext
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

13.4.1 ‘’ in ‘po/

The ‘po/’ directory should receive a file named ‘’. This file tells which files, among all program sources, have marked strings needing translation. Here is an example of such a file:

# List of source files containing translatable strings.
# Copyright (C) 1995 Free Software Foundation, Inc.

# Common library files

# Package source files

Hash-marked comments and white lines are ignored. All other lines list those source files containing strings marked for translation (see section How Marks Appear in Sources), in a notation relative to the top level of your whole distribution, rather than the location of the ‘’ file itself.

When a C file is automatically generated by a tool, like flex or bison, that doesn’t introduce translatable strings by itself, it is recommended to list in ‘po/’ the real source file (ending in ‘.l’ in the case of flex, or in ‘.y’ in the case of bison), not the generated C file.

This document was generated on June 7, 2014 using texi2html 5.0.

© 2000-2018
Individual documents may contain additional copyright information.