LinuxCommandLibrary

pofilter

TLDR

Check for common errors

$ pofilter -t [check] [input.po] [output.po]
copy
List available checks
$ pofilter --list
copy
Check accelerators
$ pofilter -t accelerators [input.po] [output.po]
copy
Check printf format
$ pofilter -t printf [input.po] [output.po]
copy
Multiple checks
$ pofilter -t escapes -t variables [input.po] [output.po]
copy

SYNOPSIS

pofilter [options] input output

DESCRIPTION

pofilter filters PO files to find translation errors. It checks for common issues like missing variables, inconsistent punctuation, and encoding problems.
Part of the Translate Toolkit.

PARAMETERS

-t, --test test

Test to run.
-l, --language lang
Target language.
--excludefilter filter
Exclude specific test.
--list
List available tests.
-i, --input path
Input file or directory.
-o, --output path
Output file or directory.

EXAMPLES

$ # List all available checks
pofilter --list

# Check for variables
pofilter -t variables translations.po errors.po

# Check escapes and printf
pofilter -t escapes -t printf input.po output.po

# Exclude specific check
pofilter --excludefilter=blank input.po output.po

# Process directory
pofilter -t all locale/ errors/
copy

COMMON CHECKS

$ variables   - Check variable placeholders
printf      - Check printf format strings
accelerators - Check keyboard accelerators
escapes     - Check escape sequences
newlines    - Check newline consistency
copy

CAVEATS

Output contains only problematic entries. Part of Translate Toolkit.

HISTORY

pofilter is part of the Translate Toolkit developed by Translate House for translation quality assurance.

SEE ALSO

Copied to clipboard