poswap(1)
π poswap(1) β the "swap the languages around" queen π
ok bestie, welcome to poswap, straight out of Translate Toolkit 3.12.1 β yes that's the manpage name up there, we're not doing the boring header line, we're doing vibes. β¨
πΈ NAME πΈ
poswap β builds a brand new translation file where the target of your input language becomes the source language. it's giving language glow-up, fr fr. π¦
β¨ 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]
π DESCRIPTION π
β οΈ Note: Ensure that the two po files correspond 100% to the same pot file before using this. no cap, like exactly the same pot file, or things get weird. π
ok so the whole point here: you wanna translate Kurdish (ku) but through French? iconic detour, honestly. here's how:
poswap -i fr/ -t ku -o fr-ku
and then when you wanna convert those fr-ku files back to en-ku:
poswap --reverse -i fr/ -t fr-ku -o en-ku
like, it un-swaps the swap. main character energy. π
also go look at this for examples and usage instructions:
http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poswap.html
π OPTIONS π
--versionβ show the program's version number and exit. quick little "who am i" moment. πββοΈ-h/--helpβ show this help message and exit. the classic.--manpageβ output a manpage based on the help. meta, i know. π--progressβ show progress as:dots,none,bar,names,verbose. pick your vibe check. π--errorlevelβ show errorlevel as:none,message,exception,traceback. how much chaos do you wanna see when things go sideways π-i/--inputβ read from INPUT inpo,potformats. π₯-x/--excludeβ exclude names matching EXCLUDE from input paths. not you, girl. π-o/--outputβ write to OUTPUT inpo,potformats. π€-t/--templateβ read from TEMPLATE inpo,pot,potformats. (yes,pottwice, that's what it says, i don't make the rules π)-S/--timestampβ skip conversion if the output file has a newer timestamp. lazy girl boss move, honestly. β--reverseβ reverse the process of intermediate language conversion. the undo button for your language detour. π
ok that's the whole page, you ate that π«Ά β this was poswap(1) from Translate Toolkit 3.12.1, dated like the manual footer says, mwah π stay hydrated and always back up your po files bestie π§ββοΈ
π¦ 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