poswap(1)
π poswap(1) β the glow-up era
okay bestie, welcome to poswap, part of the Translate Toolkit 3.19.5 era. this is the little command with big main character energy: it builds a brand new translation file where the target of your input language becomes the source language. it's giving remix. it's giving rebirth. π¦
β¨ NAME β¨
poswap β Builds a new translation file with the target of the input language as source language.
like. literally that. it takes a translation and flips it so what used to be the destination becomes the starting point. obsessed. π
πΈ SYNOPSIS πΈ
poswap [--version] [-h|--help] [--manpage] [--progress PROGRESS]
[--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [-S|--timestamp]
[--reverse] [--intermediate]
that's the whole vibe check right there. all the flags, one line, no cap. β¨
π DESCRIPTION π
bestie. READ THIS FIRST. Make sure your twopofiles correspond 100% to the samepotfile before using this. fr fr. do not skip this. this is the whole ballgame. π
so here's the tea π β you can translate one language through another one. like a relay race but make it linguistics.
To translate Kurdish (ku) through French:
poswap -i fr/ -t ku -o fr-ku
To convert the fr-ku files back to en-ku:
poswap --reverse -i fr/ -t fr-ku -o en-ku
To translate Quechua (qu) through Spanish (es) using intermediate mode:
poswap --intermediate -t en/ es/ es-qu/
now let's talk about intermediate mode because she's the moment π β it keeps the original source language (English) and adds the intermediate language translation (Spanish) as a translator comment. so you get to translate through a middle language while both languages stay visible the whole time. it's giving bilingual icon behavior. π
See: http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poswap.html for examples and usage instructions.
iykyk π
β OPTIONS β
--versionβ show program's version number and exit. the classic "who am i" moment.-h/--helpβ show this help message and exit. your safety net bestie π«Ά--manpageβ output a manpage based on the help. manpage-ception, iconic.--progressβ show progress as:dots,none,bar,names,verbose. pick your fave way to watch the little progress goblin work π§--errorlevelβ show errorlevel as:none,message,exception,traceback. how much do you want to know when things go sideways π-i/--inputβ read from INPUT inpo,potformats.-x/--excludeβ exclude names matching EXCLUDE from input paths. bye felicia, not you π-o/--outputβ write to OUTPUT inpo,potformats.-t/--templateβ read from TEMPLATE inpo,pot,potformats. (yes bestie, it sayspo, pot, pot. that's what it says. we do not question the source. π)-S/--timestampβ skip conversion if the output file has newer timestamp. she's efficient. she's not doing redundant work. periodt.--reverseβ reverse the process of intermediate language conversion. the uno reverse card π΄--intermediateβ use intermediate language mode: keep original source and add target as translator comment. both languages stay visible, bestie, no gatekeeping. πΈ
and that's the whole page, bestie. go forth and swap those po files. you're gonna eat. π₯π
β brought to you by Translate Toolkit 3.19.5, dated like the little legend she is. mwah. πβ¨
π¦ 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