pofilter(1)
π pofilter(1) β the vibe-check tool for your translations π
Okay so bestie, listen. This is pofilter from the Translate Toolkit, and honestly? It's giving quality control supervisor energy. It runs checks on your Gettext PO, XLIFF and TMX localization files and tells you what's sus. π΅οΈββοΈβ¨
πΈ SYNOPSIS πΈ
pofilter [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-l|--listfilters] [--review] [--noreview]
[--fuzzy] [--nofuzzy] [--nonotes] [--autocorrect] [--language LANG]
[--openoffice] [--libreoffice] [--mozilla] [--drupal] [--gnome] [--kde]
[--wx] [--excludefilter FILTER] [-t|--test FILTER] [--notranslatefile
FILE] [--musttranslatefile FILE] [--validcharsfile FILE]
Like, that's a lot of flags, but we're gonna go through every single one together, no cap. π«Ά
β¨ DESCRIPTION β¨
So here's the tea β: whenever a test fails, pofilter creates snippet files. Those little guys are the receipts β you can examine them, fix them up, and then merge them right back into the originals using pomerge. Iconic workflow, honestly. π
Want examples and usage instructions? The docs are literally right here:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pofilter.html
And for the full description of every single test (yes, all of them, grab a snack π):
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pofilter_tests.html
π OPTIONS π
Okay bestie, buckle up. Here's every flag, no skipping, periodt. π
--versionβ show program's version number and exit. Slay, now you know what you're running. β¨-h,--helpβ show this help message and exit. Your classic "help me help you" moment. π--manpageβ output a manpage based on the help. Meta af, we love a self-aware icon. π--progressβ show progress as:dots,none,bar,names,verbose. Pick your vibe: dots are cute,namesis for the nosy girlies,verboseis for the "tell me everything" main characters. π--errorlevelβ show errorlevel as:none,message,exception,traceback.noneis giving "ignorance is bliss",tracebackis giving "I want to see the whole crime scene". π-i,--inputβ read from INPUT inpo,pot,tmx,xlf,xliffformats. Feed it your files, bestie. π½οΈ-x,--excludeβ exclude names matching EXCLUDE from input paths. Not today, satan. π-o,--outputβ write to OUTPUT inpo,pot,tmx,xlf,xliffformats. Same formats, same energy, new destination. π-l,--listfiltersβ list filters available. A little menu of what this thing can do. Lowkey handy. π--reviewβ include units marked for review (default). They're still in the group chat. π«Ά--noreviewβ exclude units marked for review. Left on read. βοΈ--fuzzyβ include units marked fuzzy (default). The "kinda sorta maybe" translations get a seat at the table. π«οΈ--nofuzzyβ exclude units marked fuzzy. Sorry babes, you're not invited. πͺ--nonotesβ don't add notes about the errors. Sometimes you just want the drama without the commentary. π€«--autocorrectβ output automatic corrections where possible rather than describing issues. Instead of "here's what's wrong βοΈ", it's "here, I fixed it π ". Only where possible though, don't get too excited.--languageβ set target language code (e.g.af-ZA) [required for spell check and recommended in general]. Fr fr, set it. Spell check literally won't work without it. π£οΈ--openofficeβ use the standard checks for OpenOffice translations. Preset unlocked. ποΈ--libreofficeβ use the standard checks for LibreOffice translations. ποΈ--mozillaβ use the standard checks for Mozilla translations. π¦--drupalβ use the standard checks for Drupal translations. π§--gnomeβ use the standard checks for Gnome translations. πΎ--kdeβ use the standard checks for KDE translations. π--wxβ use the standard checks for wxWidgets translations. π§©--excludefilterβ don't use FILTER when filtering. Blocked and reported. π«-t,--testβ only use test *FILTER*s specified with this option when filtering. A very curated guest list β only the tests you named show up. ποΈ--notranslatefileβ read list of untranslatable words from FILE (must not be translated). Hands off these ones. π ββοΈ--musttranslatefileβ read list of translatable words from FILE (must be translated). These ones gotta get done. β--validcharsfileβ read list of all valid characters from FILE (must be in UTF-8). Character guest list, and it's UTF-8 only, no exceptions. π€
π‘ Quick reminder bestie: the snippet files that pop out when a test fails are your whole thing β check 'em, fix 'em, then pomerge them back into the originals. That's the cycle. That's the lifestyle. π
And that's the whole page! β¨ Written by the Translate Toolkit 3.12.1 girlies, dated the same as always β you're looking at version 3.12.1, and yes, this is the pofilter(1) manual, mwah πππ¦
π¦ where this page comes from
- opensuse-leap 16.0: python313-translate-toolkit 3.12.1-bp160.1.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms