A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.gnu.org/software/gettext/manual/html_node/printf_005fngettext-Invocation.html below:

printf_ngettext Invocation (GNU gettext utilities)

Next: Invoking the envsubst program, Previous: Invoking the printf_gettext program, Up: sh - Shell Script   [Contents][Index]

15.5.15.11 Invoking the printf_ngettext program
printf_ngettext [option] format format-plural count [argument]...

The printf_ngettext program produces formatted output, applying the native language translation of format and format-plural, depending on count, to the arguments.

Options and arguments

‘-c context’
‘--context=context’

Specify the context for the format string to be translated. See Using contexts for solving ambiguities for details.

‘format’

English singular form of format string.

‘format-plural’

English plural form of format string.

‘count’

A cardinal number. The singular/plural form is chosen based on this value.

‘argument’

A string or numeric argument.

Informative output

‘-h’
‘--help’

Display this help and exit.

‘-V’
‘--version’

Output version information and exit.

Each 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

\a

alert (BEL)

\b

backspace (BS)

\f

form feed (FF)

\n

new line (LF)

\r

carriage return (CR)

\t

horizontal tab (HT)

\v

vertical tab (VT)

\nnn

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


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4