SWAPPO(1)

πŸ“¦
version 26.08.2 Β· 3 versions
  • 26.08.2 Β· arch rolling, debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 26.04.2 Β· alpine 3.24
  • 21.12.3 Β· ubuntu jammy
, in arch rolling, debian bookworm, debian trixie, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… SWAPPO β€” the manual, bestie edition ✨

okay so bestie, you know how sometimes you're staring at a .po file and you're like "the vibes are immaculate but the direction is giving wrong"?? yeah. that's what swappo is for. it's the section 1 (general commands) girlie in your toolbox and she is iconic**.


🌸 NAME 🌸

swappo β€” swap msgid and msgstr fields in a PO file πŸ”„πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

swappo [filename.po]

✨ DESCRIPTION ✨

so here's the tea, bestie πŸ“. swappo reads the PO-file you hand it and swaps the msgid and msgstr fields for every single message. no skips, no favourites, all of them. the glow-up result is a new PO-file that translates in the opposite direction. like, if your PO-file was translating from English to French, the new PO-file will translate from French to English. it's giving reverse uno card πŸƒβœ¨

the new PO-file gets written to standard output β€” that's stdout, so pipe it or redirect it, bestie, don't just let it fly into your terminal and vibe there. and the good news?? the old PO-file stays completely untouched 🫢. no cap. nothing gets overwritten behind your back.

heads up πŸ’€: because it writes to standard output, if you forget to redirect, you'll just be watching your entire PO-file scroll past like it's a group chat you weren't invited to.

this utility is part of the KDE Software Development Kit πŸ‘‘


🌈 SEE ALSO 🌈

the whole little friend group πŸ¦‹ go say hi


πŸ‘‘ AUTHORS πŸ‘‘

the PO-XML tools were written by Stephan Kulow <coolo@kde.org> β€” literal main character energy, thank you for your service πŸ’œ

this manual page was prepared by Ben Burton <bab@debian.org> πŸŽ€


πŸ’… AUTHOR πŸ’…

Ben Burton <bab@debian.org> Author.


okay and for the cute sign-off: this page lives in [FIXME: source], dated 2003-04-07, and it's filed under SWAPPO(1) in section 1 πŸ§šπŸ’– periodt, go swap some strings bestie, you got this ✨