summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/doc/rt-ngettext.texi
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-09-17 08:27:22 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:10:59 +0200
commit2551fcdc2cfb12e622193a80c8ae9dd4333977e6 (patch)
tree77bf03b4bb33cc1dfb9095e980f80b03762e6bdd /gettext-runtime/doc/rt-ngettext.texi
parent0b8caeca0247968c9f57ccf54e472d669058a51f (diff)
downloadexternal_gettext-2551fcdc2cfb12e622193a80c8ae9dd4333977e6.zip
external_gettext-2551fcdc2cfb12e622193a80c8ae9dd4333977e6.tar.gz
external_gettext-2551fcdc2cfb12e622193a80c8ae9dd4333977e6.tar.bz2
Documentation of programs of gettext-runtime package.
Diffstat (limited to 'gettext-runtime/doc/rt-ngettext.texi')
-rw-r--r--gettext-runtime/doc/rt-ngettext.texi60
1 files changed, 60 insertions, 0 deletions
diff --git a/gettext-runtime/doc/rt-ngettext.texi b/gettext-runtime/doc/rt-ngettext.texi
new file mode 100644
index 0000000..21e0151
--- /dev/null
+++ b/gettext-runtime/doc/rt-ngettext.texi
@@ -0,0 +1,60 @@
+@pindex ngettext
+@cindex @code{ngettext} program, usage
+@example
+ngettext [@var{option}] [@var{textdomain}] @var{msgid} @var{msgid-plural} @var{count}
+@end example
+
+@cindex lookup plural message translation
+The @code{ngettext} program displays the native language translation of a
+textual message whose grammatical form depends on a number.
+
+@noindent @strong{Arguments}
+
+@table @samp
+@item -d @var{textdomain}
+@itemx --domain=@var{textdomain}
+@opindex -d@r{, @code{ngettext} option}
+@opindex --domain@r{, @code{ngettext} option}
+Retrieve translated messages from @var{textdomain}. Usually a @var{textdomain}
+corresponds to a package, a program, or a module of a program.
+
+@item -e
+@opindex -e@r{, @code{ngettext} option}
+Enable expansion of some escape sequences. This option is for compatibility
+with the @samp{gettext} program. The escape sequences
+@samp{\b}, @samp{\c}, @samp{\f}, @samp{\n}, @samp{\r}, @samp{\t}, @samp{\v},
+@samp{\\}, and @samp{\} followed by one to three octal digits, are interpreted
+like the @samp{echo} program does.
+
+@item -E
+@opindex -E@r{, @code{ngettext} option}
+This option is only for compatibility with the @samp{gettext} program. It has
+no effect.
+
+@item -h
+@itemx --help
+@opindex -h@r{, @code{ngettext} option}
+@opindex --help@r{, @code{ngettext} option}
+Display this help and exit.
+
+@item -V
+@itemx --version
+@opindex -V@r{, @code{ngettext} option}
+@opindex --version@r{, @code{ngettext} option}
+Output version information and exit.
+
+@item @var{textdomain}
+Retrieve translated message from @var{textdomain}.
+
+@item @var{msgid} @var{msgid-plural}
+Translate @var{msgid} (English singular) / @var{msgid-plural} (English plural).
+
+@item @var{count}
+Choose singular/plural form based on this value.
+
+@end table
+
+If the @var{textdomain} parameter is not given, the domain is determined from
+the environment variable @code{TEXTDOMAIN}. If the message catalog is not
+found in the regular directory, another location can be specified with the
+environment variable @code{TEXTDOMAINDIR}.