mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
doc: Add an example regarding xgettext.
Reported by Andrea G. Monaco <andrea.monaco@autistici.org> in <https://lists.gnu.org/archive/html/bug-gettext/2020-12/msg00036.html>. * gettext-tools/doc/xgettext.texi: Add an example.
This commit is contained in:
parent
c31a5e4e90
commit
8f089a25a4
@ -706,3 +706,18 @@ Output version information and exit.
|
||||
Increase verbosity level.
|
||||
|
||||
@end table
|
||||
|
||||
@subsection Example
|
||||
|
||||
A sample invocation of @code{xgettext}, in a project
|
||||
that has a single source file @file{src/hello.c}
|
||||
that uses @samp{_} as shorthand for the @code{gettext} function,
|
||||
could be:
|
||||
|
||||
@example
|
||||
xgettext -o hello.pot \
|
||||
--add-comments=TRANSLATORS: \
|
||||
--keyword=_ --flag=_:1:pass-c-format \
|
||||
--directory=.. \
|
||||
src/hello.c
|
||||
@end example
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user