intltool-extract(8)

intltool-extract8

Generate header files which can be read by gettext

Usage

intltool-extract [options] ... SOURCE_FILE

Overview

intltool-extract extracts strings in the specified XML/INI type SOURCE_FILE and writes them into a C header file. Then xgettext(1) can merge these strings inside header file into po template.

intltool-extract is usually not executed manually, but called from intltool-update(8) instead.

Options

-l
--local

Creates a subdirectory under current working directory (named "tmp/") and writes files there. This option can't be used with --update option.

--update

Writes header file into the same directory the source file is in. New file name is the source file name appending ".h" extension. This option can't be used with -l/--local option. Besides, this option is the default option if neither --local nor --update is specified.

--type=TYPE

Specify the type of source file. Currently supported types are:
"gettext/glade" (.glade, .glade2)
"gettext/gsettings" (.gschema.xml)
"gettext/ini" (Generic INI file)
"gettext/keys" (.keys)
"gettext/rfc822deb" (RFC 822 format file)
"gettext/quoted" (all strings within "")
"gettext/schemas" (.schemas)
"gettext/scheme" (.scm)
"gettext/xml" (Generic XML file)
"gettext/qtdesigner" (Qt Designer .ui files)

-v
--version

Show version information.

-h
--help

Show usage and basic help information.

-q
--quiet

Be quiet while running.

Releases

13 releases since Debian 3.0 (Woody); the text changed 5 times.

  1. 3.0
  2. 3.1–4.0
  3. 5.0
  4. 6.0
  5. 7–8
  6. 9–Arch

--local since Debian 3.1 (Sarge); --quiet since Debian 3.1 (Sarge); --type since Debian 3.1 (Sarge); --update since Debian 3.1 (Sarge); -h since Debian 3.1 (Sarge); -l since Debian 3.1 (Sarge); -q since Debian 3.1 (Sarge); -v since Debian 3.1 (Sarge).

--ini-style until Debian 3.0 (Woody); --scheme-style until Debian 3.0 (Woody); --verbose until Debian 3.0 (Woody); --xml-style until Debian 3.0 (Woody); -H until Debian 3.0 (Woody); -O until Debian 3.0 (Woody); -V until Debian 3.0 (Woody); -X until Debian 3.0 (Woody).

Reporting bugs

Report bugs to http://bugs.launchpad.net/intltool

Author

Darin Adler <[email protected]>
Kenneth Christiansen <[email protected]>
Maciej Stachowiak <[email protected]>

From intltool 0.51.0-6 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.