mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-21 19:15:25 +02:00
xgettext: add page (#3635)
This commit is contained in:
parent
2a613d6a39
commit
30a4269018
1 changed files with 20 additions and 0 deletions
20
pages/common/xgettext.md
Normal file
20
pages/common/xgettext.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# xgettext
|
||||
|
||||
> Extract gettext strings from code files.
|
||||
> More information: <https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html>.
|
||||
|
||||
- Scan file and output strings to `messages.po`:
|
||||
|
||||
`xgettext {{path/to/input_file}}`
|
||||
|
||||
- Use a different output filename:
|
||||
|
||||
`xgettext --output {{path/to/output_file}} {{path/to/input_file}}`
|
||||
|
||||
- Append new strings to an existing file:
|
||||
|
||||
`xgettext --join-existing --output {{path/to/output_file}} {{path/to/input_file}}`
|
||||
|
||||
- Don't add a header containing metadata to the output file:
|
||||
|
||||
`xgettext --omit-header {{path/to/input_file}}`
|
Loading…
Add table
Reference in a new issue