XGETTEXT(1) XGETTEXT(1) xgettext - gettext xgettext [] [_]... . . . : _ ... -f --files-from= FILE -D --directory= DIRECTORY - . : -d, --default-domain= NAME.po ( messages.po) -o --output=FILE -p, --output-dir= DIR - . : -L --language= (C, C++, ObjectiveC, PO, Python, Java, JavaProperties, C#, JavaScript, TypeScript, TSX, Scheme, Guile, Lisp, EmacsLisp, librep, Rust, Go, Ruby, Shell, awk, Lua, Modula-2, D, OCaml, Smalltalk, Vala, Tcl, Perl, PHP, GCC-source, YCP, NXStringTable, RST, RSJ, Glade, GSettings, Desktop) -C, --c++ --language=C++ . : --from-code= ( Python, Tcl, Glade) ASCII. : -j, --join-existing -x, --exclude-file=.po FILE.po -cTAG, --add-comments= TAG -c, --add-comments --check= (ellipsis-unicode, space-ellipsis, quote-unicode, bullet-unicode) --no-check=NAME (url, email) --sentence-end=TYPE (single-space double-space) : -a, --extract-all ( C, C++, ObjectiveC, Python, Java, C#, JavaScript, TypeScript, TSX, Scheme, Guile, Lisp, EmacsLisp, librep, Rust, Go, Shell, awk, Lua, Modula-2, D, OCaml, Vala, Tcl, Perl, PHP, GCC-source, Glade, GSettings) -kWORD --keyword=WORD WORD -k --keyword ( C, C++, ObjectiveC, Python, Java, C#, JavaScript, TypeScript, TSX, Scheme, Guile, Lisp, EmacsLisp, librep, Rust, Go, Shell, awk, Lua, Modula-2, D, OCaml, Vala, Tcl, Perl, PHP, GCC-source, Glade, GSettings, Desktop) --flag=WORD:ARG:FLAG ARG WORD ( C, C++, ObjectiveC, Python, Java, C#, JavaScript, TypeScript, TSX, Scheme, Guile, Lisp, EmacsLisp, librep, Rust, Go, Shell, awk, Lua, Modula-2, D, OCaml, Vala, Tcl, Perl, PHP, GCC-source, YCP) --tag=WORD:FORMAT WORD ( JavaScript) -T, --trigraphs ANSI C ( C, C++, ObjectiveC) --its=FILE ITS FILE ( XML) --qt Qt ( C++) --kde KDE 4 ( C++) --boost Boost ( C++ ) --debug : --color --color= WHEN. WHEN 'always' 'never' 'auto' 'html'. --style=_ CSS --color -e --no-escape C () -E --escape C --force-po PO -i --indent .po --no-location '#: filename:line' -n --add-location '#: _:' () --strict .po Uniforum --properties-output .properties --stringtable-output .strings NeXTstep/GNUstep --itstool itstool -w --width= --no-wrap -s --sort-output () -F --sort-by-file --omit-header 'msgid ""' --no-git git 'POT-Creation-Date' . --copyright-holder=STRING --foreign-user FSF --package-name=PACKAGE --package-version=VERSION --msgid-bugs-address=EMAIL@ADDRESS msgid --generated=FILE FILE 'POT-Creation-Date' . --reference=FILE FILE . 'POT-Creation-Date' . -m[STRING], --msgstr-prefix[=STRING] STRING "" msgstr -M[STRING], --msgstr-suffix[=STRING] STRING "" msgstr : -h --help -V --version -v --verbose Ulrich Drepper Bruno Haible. . (C) 1995-2026 . GPLv3+: 3 : . . xgettext Texinfo. info xgettext info xgettext . 3 . . : . gettext GNU 1.0 2026 XGETTEXT(1)