poswap(1)

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

πŸ’… 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 in po, pot formats. πŸ“₯
  • -x/--exclude β€” exclude names matching EXCLUDE from input paths. not you, girl. πŸ™ˆ
  • -o/--output β€” write to OUTPUT in po, pot formats. πŸ“€
  • -t/--template β€” read from TEMPLATE in po, pot, pot formats. (yes, pot twice, 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