xgettext.txt 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Usage: xgettext [OPTION] [INPUTFILE]...
  2. Extract translatable strings from given input files.
  3. Mandatory arguments to long options are mandatory for short options too.
  4. Similarly for optional arguments.
  5. Input file location:
  6. INPUTFILE ... input files
  7. -f, --files-from=FILE get list of input files from FILE
  8. -D, --directory=DIRECTORY add DIRECTORY to list for input files search
  9. If input file is -, standard input is read.
  10. Output file location:
  11. -d, --default-domain=NAME use NAME.po for output (instead of messages.po)
  12. -o, --output=FILE write output to specified file
  13. -p, --output-dir=DIR output files will be placed in directory DIR
  14. If output file is -, output is written to standard output.
  15. Choice of input file language:
  16. -L, --language=NAME recognise the specified language
  17. (C, C++, ObjectiveC, PO, Shell, Python, Lisp,
  18. EmacsLisp, librep, Scheme, Smalltalk, Java,
  19. JavaProperties, C#, awk, YCP, Tcl, Perl, PHP,
  20. GCC-source, NXStringTable, RST, Glade)
  21. -C, --c++ shorthand for --language=C++
  22. By default the language is guessed depending on the input file name extension.
  23. Input file interpretation:
  24. --from-code=NAME encoding of input files
  25. (except for Python, Tcl, Glade)
  26. By default the input files are assumed to be in ASCII.
  27. Operation mode:
  28. -j, --join-existing join messages with existing file
  29. -x, --exclude-file=FILE.po entries from FILE.po are not extracted
  30. -cTAG, --add-comments=TAG place comment blocks starting with TAG and
  31. preceding keyword lines in output file
  32. -c, --add-comments place all comment blocks preceding keyword lines
  33. in output file
  34. Language specific options:
  35. -a, --extract-all extract all strings
  36. (only languages C, C++, ObjectiveC, Shell,
  37. Python, Lisp, EmacsLisp, librep, Scheme, Java,
  38. C#, awk, Tcl, Perl, PHP, GCC-source, Glade)
  39. -kWORD, --keyword=WORD look for WORD as an additional keyword
  40. -k, --keyword do not to use default keywords
  41. (only languages C, C++, ObjectiveC, Shell,
  42. Python, Lisp, EmacsLisp, librep, Scheme, Java,
  43. C#, awk, Tcl, Perl, PHP, GCC-source, Glade)
  44. --flag=WORD:ARG:FLAG additional flag for strings inside the argument
  45. number ARG of keyword WORD
  46. (only languages C, C++, ObjectiveC, Shell,
  47. Python, Lisp, EmacsLisp, librep, Scheme, Java,
  48. C#, awk, YCP, Tcl, Perl, PHP, GCC-source)
  49. -T, --trigraphs understand ANSI C trigraphs for input
  50. (only languages C, C++, ObjectiveC)
  51. --qt recognize Qt format strings
  52. (only language C++)
  53. --kde recognize KDE 4 format strings
  54. (only language C++)
  55. --boost recognize Boost format strings
  56. (only language C++)
  57. --debug more detailed formatstring recognition result
  58. Output details:
  59. --color use colors and other text attributes always
  60. --color=WHEN use colors and other text attributes if WHEN.
  61. WHEN may be 'always', 'never', 'auto', or 'html'.
  62. --style=STYLEFILE specify CSS style rule file for --color
  63. -e, --no-escape do not use C escapes in output (default)
  64. -E, --escape use C escapes in output, no extended chars
  65. --force-po write PO file even if empty
  66. -i, --indent write the .po file using indented style
  67. --no-location do not write '#: filename:line' lines
  68. -n, --add-location generate '#: filename:line' lines (default)
  69. --strict write out strict Uniforum conforming .po file
  70. --properties-output write out a Java .properties file
  71. --stringtable-output write out a NeXTstep/GNUstep .strings file
  72. -w, --width=NUMBER set output page width
  73. --no-wrap do not break long message lines, longer than
  74. the output page width, into several lines
  75. -s, --sort-output generate sorted output
  76. -F, --sort-by-file sort output by file location
  77. --omit-header don't write header with `msgid ""' entry
  78. --copyright-holder=STRING set copyright holder in output
  79. --foreign-user omit FSF copyright in output for foreign user
  80. --package-name=PACKAGE set package name in output
  81. --package-version=VERSION set package version in output
  82. --msgid-bugs-address=EMAIL@ADDRESS set report address for msgid bugs
  83. -m[STRING], --msgstr-prefix[=STRING] use STRING or "" as prefix for msgstr
  84. values
  85. -M[STRING], --msgstr-suffix[=STRING] use STRING or "" as suffix for msgstr
  86. values
  87. Informative output:
  88. -h, --help display this help and exit
  89. -V, --version output version information and exit
  90. Report bugs to <bug-gnu-gettext@gnu.org>.