macOS
brew install gettextlocal Homebrew formula metadata
sudo port install gettextMacPorts ports tree · devel/gettext/Portfile · 来源: api.github.com
安装
brew install gettextlocal Homebrew formula metadata
sudo port install gettextMacPorts ports tree · devel/gettext/Portfile · 来源: api.github.com
sudo apk add gettextAlpine Linux edge package indexes · gettext · 来源: dl-cdn.alpinelinux.org
sudo apt install gettextDebian stable package indexes · gettext · 来源: deb.debian.org
sudo dnf install gettextFedora Rawhide package metadata · gettext · 来源: dl.fedoraproject.org
nix profile install nixpkgs#gettextnixpkgs package indexes · gettext · 来源: raw.githubusercontent.com
sudo pacman -S gettextArch Linux sync databases · gettext · 来源: geo.mirror.pkgbuild.com
sudo zypper install gettext-runtimeopenSUSE Tumbleweed package metadata · gettext-runtime · 来源: download.opensuse.org
scoop install main/gettextScoop official bucket manifest trees · bucket/gettext.json · 来源: api.github.com
winget install --id mlocati.GetText -eWindows Package Manager source index · mlocati.GetText · 来源: cdn.winget.microsoft.com
概览
GNU internationalization (i18n) and localization (l10n) library
历史
GNU gettext is the GNU internationalization and localization toolkit for message catalogs. It supplies runtime APIs, command-line tools, PO and MO file workflows, and maintainer and translator conventions used by many Unix-like software projects.
GNU's own history traces the work to 1994 internationalization experiments around GNU fileutils and the `glocale` effort. Ulrich Drepper rewrote the approach in April 1995, and the package went through names such as `msgutils` and `nlsutils` before `gettext` was accepted as the GNU package name.
The first official GNU gettext release, numbered 0.7, appeared in July 1995 and included PO mode. In 1997, GNU libc 2.0 included the `gettext`, `textdomain`, and `bindtextdomain` functions; in 2000, plural-form handling via `ngettext` entered GNU libc, and Bruno Haible took over GNU gettext maintenance.
gettext became central to GNU and Unix-like localization because it separates programming from translation: source strings are marked in code, `xgettext` extracts templates, translators edit PO files, `msgmerge` refreshes them across source changes, and `msgfmt` compiles machine-readable catalogs. Its workflow gave maintainers, translators, distributors, and users a shared file format and toolchain.
Practitioners use gettext by marking translatable strings in program sources, initializing a text domain, extracting POT templates, maintaining language-specific PO files, compiling MO files, and installing catalogs under locale directories. Shell users and build systems also use utilities such as `gettext`, `ngettext`, `xgettext`, `msginit`, `msgmerge`, `msgfmt`, `msgattrib`, `msgcat`, and `envsubst`.
For package ecosystems, gettext is infrastructure rather than an optional convenience. Source distributions often carry POT and PO files, binary packages install compiled catalogs, and build recipes depend on tools such as `autopoint`, `gettextize`, `msgfmt`, and `xgettext` to keep translation workflows reproducible.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
autopoint | cli | 全局可执行文件 | |
envsubst | cli | 全局可执行文件 | |
gettext | cli | 全局可执行文件 | |
gettext.sh | cli | 全局可执行文件 | |
gettextize | cli | 全局可执行文件 | |
msgattrib | cli | 全局可执行文件 | |
msgcat | cli | 全局可执行文件 | |
msgcmp | cli | 全局可执行文件 | |
msgcomm | cli | 全局可执行文件 | |
msgconv | cli | 全局可执行文件 | |
msgen | cli | 全局可执行文件 | |
msgexec | cli | 全局可执行文件 | |
msgfilter | cli | 全局可执行文件 | |
msgfmt | cli | 全局可执行文件 | |
msggrep | cli | 全局可执行文件 | |
msginit | cli | 全局可执行文件 | |
msgmerge | cli | 全局可执行文件 | |
msgpre | cli | 全局可执行文件 | |
msgunfmt | cli | 全局可执行文件 | |
msguniq | cli | 全局可执行文件 | |
ngettext | cli | 全局可执行文件 | |
po-fetch | cli | 全局可执行文件 | |
printf_gettext | cli | 全局可执行文件 | |
printf_ngettext | cli | 全局可执行文件 | |
recode-sr-latin | cli | 全局可执行文件 | |
spit | cli | 全局可执行文件 | |
xgettext | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://www.gnu.org/software/gettext/
安装元数据
| 软件包键 | brew:gettext |
|---|---|
| 版本 | 1.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gettext |
| 主页 | https://www.gnu.org/software/gettext/ |
| 仓库 | https://git.savannah.gnu.org/cgit/gettext.git |
| 上游文档 | https://www.gnu.org/software/gettext/FAQ.html |
| 许可证 | GPL-3.0-or-later AND LGPL-2.1-or-later |
| 源码归档 | https://ftpmirror.gnu.org/gnu/gettext/gettext-1.0.tar.gz |
| 最后更新 | 2026-07-04T09:43:28Z |
| Pulse | updated |
| 依赖 | json-c, libunistring |
| macOS 提供的库 | curl, libxml2, ncurses |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gettext |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
autopoint 0.23.1-2
tool for setting up gettext infrastructure in a source package
https://www.gnu.org/software/gettext/
sudo apt install autopointgettext 0.23.1-2
GNU Internationalization utilities
https://www.gnu.org/software/gettext/
sudo apt install gettextgettext-base 0.23.1-2
GNU Internationalization utilities for the base system
https://www.gnu.org/software/gettext/
sudo apt install gettext-basegettext-doc 0.23.1-2
Documentation for GNU gettext
https://www.gnu.org/software/gettext/
sudo apt install gettext-docgettext-el 0.23.1-2
Emacs mode for editing gettext .po files
https://www.gnu.org/software/gettext/
sudo apt install gettext-ellibasprintf-dev 0.23.1-2
use fprintf and friends in C++ - static libraries and headers
https://www.gnu.org/software/gettext/
sudo apt install libasprintf-devlibasprintf0v5 0.23.1-2
use fprintf and friends in C++ - shared library
https://www.gnu.org/software/gettext/
sudo apt install libasprintf0v5libgettextpo-dev 0.23.1-2
process PO files - static libraries and headers
https://www.gnu.org/software/gettext/
sudo apt install libgettextpo-devlibgettextpo0 0.23.1-2
process PO files - shared library
https://www.gnu.org/software/gettext/
sudo apt install libgettextpo0gettext
nix profile install nixpkgs#gettextautopoint 0.21-14ubuntu2
tool for setting up gettext infrastructure in a source package
https://www.gnu.org/software/gettext/
sudo apt install autopointgettext 0.21-14ubuntu2
GNU Internationalization utilities
https://www.gnu.org/software/gettext/
sudo apt install gettextgettext-base 0.21-14ubuntu2
GNU Internationalization utilities for the base system
https://www.gnu.org/software/gettext/
sudo apt install gettext-basegettext-doc 0.21-14ubuntu2
Documentation for GNU gettext
https://www.gnu.org/software/gettext/
sudo apt install gettext-docgettext-el 0.21-14ubuntu2
Emacs mode for editing gettext .po files
https://www.gnu.org/software/gettext/
sudo apt install gettext-ellibasprintf-dev 0.21-14ubuntu2
use fprintf and friends in C++ - static libraries and headers
https://www.gnu.org/software/gettext/
sudo apt install libasprintf-dev来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.