posegment(1)

πŸ’– NAME πŸ’–

okay so bestie, meet posegment β€” she segments Gettext PO, XLIFF and TMX localization files at the sentence level. like, sentence by sentence. no cap, that's the whole gig. πŸŽ€


✨ SYNOPSIS ✨

posegment [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-S|--timestamp] [-P|--pot] [-l|--language LANG]
[--source-language LANG] [--keepspaces] [--only-aligned]

πŸ¦‹ DESCRIPTION πŸ¦‹

fr fr, the real tea (examples!! usage instructions!! the whole lore!!) lives right here:

http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/posegment.html

go read it bestie, it's giving tutorial excellence πŸ’…


πŸ‘‘ OPTIONS πŸ‘‘

  • --version β€” shows the program's version number and then dips out. bye! 🫢
  • -h/--help β€” prints this help message and exits. your girl always has a cheat sheet ready.
  • --manpage β€” spits out a manpage based on the help output. manpage-ception, iconic.
  • --progress β€” show progress as: dots, none, bar, names, verbose. pick your vibe for watching it go ⭐
  • --errorlevel β€” show errorlevel as: none, message, exception, traceback. how much do you wanna know when things go sideways 😭
  • -i/--input β€” read from INPUT in po, pot, tmx, xlf, xliff formats. hand her the files, she handles the rest.
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not today, satan πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot, tmx, xlf, xliff formats. she's multilingual, obviously.
  • -S/--timestamp β€” skip conversion if the output file has a newer timestamp. she's not gonna redo work she already ate πŸ’…
  • -P/--pot β€” output PO Templates (.pot) rather than PO files (.po). template era ✨
  • -l/--language β€” the target language code. which language are we serving today, bestie?
  • --source-language β€” the source language code, default is 'en'. yes, English by default, main character energy.
  • --keepspaces β€” disable automatic stripping of whitespace. if you love your spaces, protect them πŸ₯Ί
  • --only-aligned β€” removes units where the sentence number does not correspond. mismatched? not on her watch. gone. πŸ”₯

πŸ’œ lowkey important: --only-aligned literally drops units whose sentence number doesn't line up, so if you were counting on those, they're not coming back. no cap.

and that's the whole page, bestie!! you understood it, you ate it, you slayed it πŸ’–

this lil legend comes to you courtesy of Translate Toolkit 3.19.5 β€” mwah, love that for us πŸŽ€πŸŒΈπŸ’…

πŸ“¦ where this page comes from