pogrep(1)

πŸ“¦ version 3.12.1, in opensuse-leap 16.0

πŸ’… 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 from INPUT in gmo, mo, po, pot, tmx, xlf, xlff, xliff formats. that's the menu, bestie
  • -x/--exclude β€” excludes names matching EXCLUDE from the input paths. not invited to the party πŸ™ˆ
  • -o/--output β€” writes to OUTPUT in gmo, mo, po, pot, tmx, xlf, xlff, xliff formats. same formats, same energy
  • --search β€” searches the given parts (source, target, notes and locations). choose your battlefield βš”οΈ
  • -I/--ignore-case β€” ignores case distinctions. Hello and hello are 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