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 inpo,pot,tmx,xlf,xliffformats. 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 inpo,pot,tmx,xlf,xliffformats. 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
- ubuntu stonking: translate-toolkit 3.19.5-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms