← 返回命令列表

Linux command

gettextize 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Initialize gettext

gettextize

Copy files

gettextize --copy

Force overwrite

gettextize -f

Dry run

gettextize -n

Specify a PO directory

gettextize --po-dir=[po]

说明

gettextize prepares a source package for internationalization. It adds necessary gettext infrastructure files, autoconf macros, and directory structure. The tool creates po/ directory, adds m4 macros, and updates build system configuration. It sets up the framework for adding translations to a project. gettextize is the first step in internationalizing an autotools-based project.

参数

-f, --force
Force writing of new files even if old ones exist.
--copy
Copy files instead of symlinking (default behavior).
--symlink
Make symbolic links instead of copying files.
-n, --dry-run
Print modifications but don't perform them.
--no-changelog
Don't update or create ChangeLog files.
--po-dir=_DIR_
Specify directory containing PO files. Can be given multiple times.
--help
Display help information.
--version
Display version information.

FAQ

What is the gettextize command used for?

gettextize prepares a source package for internationalization. It adds necessary gettext infrastructure files, autoconf macros, and directory structure. The tool creates po/ directory, adds m4 macros, and updates build system configuration. It sets up the framework for adding translations to a project. gettextize is the first step in internationalizing an autotools-based project.

How do I run a basic gettextize example?

Run `gettextize` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f, --force do in gettextize?

Force writing of new files even if old ones exist.