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

13.5.6 AM_XGETTEXT_OPTION in ‘po.m4

The AM_XGETTEXT_OPTION macro registers a command-line option to be used in the invocations of xgettext in the ‘po/’ directories of the package.

For example, if you have a source file that defines a function ‘error_at_line’ whose fifth argument is a format string, you can use

AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])

to instruct xgettext to mark all translatable strings in ‘gettext’ invocations that occur as fifth argument to this function as ‘c-format’.

See Invoking the xgettext Program for the list of options that xgettext accepts.

The use of this macro is an alternative to the use of the ‘XGETTEXT_OPTIONS’ variable in ‘po/Makevars’.


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

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.