pogrep(1)
π pogrep(1) β the grep-for-localization-files glow-up
okay bestie, listen. this is pogrep, from the Translate Toolkit, and it's genuinely that girl. she greps through your localization files β XLIFF, Gettext PO and TMX β and pulls out the matches like a lil treasure hunt πβ¨
π NAME π
pogrep β grep the XLIFF, Gettext PO and TMX localization files. yes. that's the whole vibe. no cap.
β¨ SYNOPSIS β¨
pogrep [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [--search SEARCHPARTS] [-I|--ignore-case]
[-e|--regexp] [-v|--invert-match] [--accelerator ACCELERATOR]
[-k|--keep-translations]
like, that's a lot of brackets, i know, but she's flexible π«Ά
π¦ DESCRIPTION π¦
so here's the tea: every match gets written out to snippet files, and those snippets are the same type as what you fed in. then you can literally just review them π and later merge them back together using pomerge β the whole workflow is giving main character energy.
π‘ if you want examples and actual usage instructions (not just me hyping her up), the docs live here: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/pogrep.html
πΈ OPTIONS πΈ
--versionβ shows the program's version number and dips βοΈ-h/--helpβ shows this help message and exits. classic icon behaviour--manpageβ outputs a manpage based on the help. yes she can write about herself, queen--progressβ shows progress as:dots,none,bar,names,verbose. pick your aesthetic π--errorlevelβ shows errorlevel as:none,message,exception,traceback. how much drama do you want when things go wrong π-i/--inputβ reads fromINPUTingmo,mo,po,pot,tmx,xlf,xlff,xliffformats. that's the menu, bestie-x/--excludeβ excludes names matchingEXCLUDEfrom the input paths. not invited to the party π-o/--outputβ writes toOUTPUTingmo,mo,po,pot,tmx,xlf,xlff,xliffformats. same formats, same energy--searchβ searches the given parts (source,target,notesandlocations). choose your battlefield βοΈ-I/--ignore-caseβ ignores case distinctions.Helloandhelloare literally the same to her π-e/--regexpβ uses regular expression matching. for the regex girlies π₯-v/--invert-matchβ selects non-matching lines. the contrarian option, we stan--acceleratorβ ignores the given accelerator when matching. so the&-keyboard-shortcut thing doesn't throw off your match-k/--keep-translationsβ always extracts units with translations. keep the translated babies safe π«Ά
π ok tiny reminder before you go: snippets come out in the same file type as the input, and the merge-afterwards step is pomerge. that's it, that's the workflow. iykyk.
mwah π that was pogrep(1) from the Translate Toolkit 3.12.1 β go grep something iconic, bestie. slay, periodt. πβ¨
π¦ 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