ppdpo
Extract translatable strings from PPD files
TLDR
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]
SYNOPSIS
ppdpo [options] source-file
DESCRIPTION
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.
PARAMETERS
source-file
Input PPDC source file (.drv).-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.
CAVEATS
CUPS specific. Deprecated and will be removed in a future release of CUPS.
HISTORY
ppdpo is part of CUPS for PPD localization support.
