printf_gettext program ¶printf_gettext [option] format [argument]...
The printf_gettext program produces formatted output,
applying the native language translation of format
to the arguments.
Options and arguments
Specify the context for the format string to be translated. See Using contexts for solving ambiguities for details.
The format string.
A string or numeric argument.
Informative output
The format string consists of
A directive that consumes an argument
Some flag+specifier combinations are invalid:
Additionally there is the directive ‘%%’, that prints a single %.
If a directive specifies the argument by its number (‘%m$’ notation), all directives that consume an argument must do so.
The escape sequences are:
\\backslash
\aalert (BEL)
\bbackspace (BS)
\fform feed (FF)
\nnew line (LF)
\rcarriage return (CR)
\thorizontal tab (HT)
\vvertical tab (VT)
\nnnoctal number with 1 to 3 octal digits
Environment Variables
The translation of the format string is looked up in the translation domain
given by the environment variable TEXTDOMAIN.
It is looked up in the catalogs directory given by the environment variable
TEXTDOMAINDIR or, if not present, in the default catalogs directory.