LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pofilter

Filter PO files for translation errors

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

msgfmt(1), pocount(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