xgettext
Extract gettext strings from code files. More information: <https://www.gnu.org/software/gettext/manual/html_node/xgettext-Invocation.html>.
Install
- All systems
-
curl cmd.cat/xgettext.sh
- Debian
-
apt-get install gettext
- Ubuntu
-
apt-get install gettext
- Alpine
-
apk add gettext
- Arch Linux
-
pacman -S gettext
- Kali Linux
-
apt-get install gettext
- CentOS
-
yum install gettext
- Fedora
-
dnf install gettext
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install gettext
- OS X
-
brew install gettext
- Raspbian
-
apt-get install gettext
- Dockerfile
- dockerfile.run/xgettext
- Docker
-
docker run cmd.cat/xgettext xgettext
powered by Commando
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
© tl;dr; authors and contributors