LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppdpo

Extract translatable strings from PPD files

TLDR

Extract strings to a PO file
$ ppdpo -o [messages.po] [driver.drv]
copy
Extract with an include directory
$ ppdpo -I [/path/to/includes] -o [strings.po] [file.drv]
copy
Extract to macOS strings format
$ ppdpo -o [strings.strings] [file.drv]
copy

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.

INSTALL

sudo apt install cups-ppdc
copy
sudo dnf install cups-client
copy
sudo apk add cups-client
copy
sudo zypper install cups-client
copy

CAVEATS

CUPS specific. Deprecated and will be removed in a future release of CUPS.

HISTORY

ppdpo is part of CUPS for PPD localization support.

SEE ALSO

ppdc(1), ppdmerge(1), ppdhtml(1), ppdi(1), gettext(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid