← 返回命令列表

Linux command

ppdpo 命令

文本

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

常用示例

Extract strings to a PO file

ppdpo -o [messages.po] [driver.drv]

Extract with an include directory

ppdpo -I [/path/to/includes] -o [strings.po] [file.drv]

Extract to macOS strings format

ppdpo -o [strings.strings] [file.drv]

说明

ppdpo extracts UI strings from PPDC source files and generates GNU gettext PO (Portable Object) files or macOS strings files for localization. The extracted strings include option names, group labels, and other user-visible text that translators can localize into different languages. The resulting PO files follow standard gettext format and can be edited with translation tools like poedit or Weblate. Once translated, the localized strings are compiled back into PPD files using ppdc and ppdmerge.

参数

-o _output-file_
Output file. Supported extensions: .po or .po.gz for GNU gettext format, .strings for macOS strings format.
-D _name=value_
Set a named variable for use in the source file, equivalent to the #define directive.
-I _include-directory_
Specify an alternate include directory. Can be used multiple times.

FAQ

What is the ppdpo command used for?

ppdpo extracts UI strings from PPDC source files and generates GNU gettext PO (Portable Object) files or macOS strings files for localization. The extracted strings include option names, group labels, and other user-visible text that translators can localize into different languages. The resulting PO files follow standard gettext format and can be edited with translation tools like poedit or Weblate. Once translated, the localized strings are compiled back into PPD files using ppdc and ppdmerge.

How do I run a basic ppdpo example?

Run `ppdpo -o [messages.po] [driver.drv]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -o _output-file_ do in ppdpo?

Output file. Supported extensions: .po or .po.gz for GNU gettext format, .strings for macOS strings format.