POEDIT(1)
β¨ POEDIT(1) β¨
okay bestie, so this is a page from the General Commands Manual, and it's about poedit, a lil shell script that helps you edit gettext po files π
π NAME π
poedit β a whole program whose entire job is helping you edit gettext po files, no cap
πΈ SYNOPSIS πΈ
poedit [-a] [-p] [-n] <file.po>
potooledit [-a] [-p] [-n] <file.po>
π¦ DESCRIPTION π¦
okay so poedit is a shell script, and it's out here doing the absolute most by teaming up with potool(1), iconv(1), and your favourite editor to help you edit gettext po files. it's giving collab of the century, honestly π«Ά
here's the whole routine, step by step:
- it first grabs only the untranslated entries from the file β or, if you passed
-a, it reorders the entries so the translated ones get grouped separately from the untranslated ones π - it drops all that into a temporary file
- then it recodes the file to the charmap of your current locale π
- then it runs your favourite editor on the temporary file so you can add your new translations β¨
- once you're done, it recodes the file back to the original charset
- and finally merges your new translations back into the original file π
and just so you know β poedit is also known as potooledit on Debian systems, because there's an unrelated program out here with the exact same name and we're avoiding the name clash. two icons, one name, it's messy π
π OPTIONS π
-aβ makespoeditinclude the already-translated entries in the temporary file too, so you can edit them (they get grouped separately tho, don't worry). Without this option, only the untranslated entries (plus the file header) get served up for editing.-pβ makespoeditkeep the formatting of the file intact, untouched, pristine. Without this option, all strings get re-wrapped at newlines or word boundaries so they fit in 80 columns.-nβ makespoeditskip all charset recoding, both before and after editing the file. no recoding, none, zero.
β οΈ bestie, listen. you should only use-nif you genuinely know what you're doing. like, truly. be particularly careful when you use this option (without-a) on files that are in an encoding that's incompatible with your locale's charmap. in that case, the intermediate file you're about to edit will probably only contain ASCII characters, which means your editor is free to interpret it as your default locale encoding. and that, in turn, will make the file invalid when it gets merged back together with the already translated messages π see Debian bug #297074 for an example of exactly this happening. it happened. it's documented. we're not okay.
π CAVEATS π
by default, the program re-wraps lines in all strings in the edited file. yeah, all of them. see the -p option above if that's not the vibe you're going for π
π SEE ALSO π
potool(1), postats(1), locale charmap(1), msgmerge(1), msgfmt(1)
π AUTHOR π
Poedit was written by Zbigniew Chyla, and is now being maintained by Marcin Owsiany</hotpiny> <porridge@debian.org> π
and that's the whole page, bestie π this version was served up on September 15, 2012, straight from the POEDIT(1) manual, General Commands Manual edition β periodt β¨π¦π
π¦ where this page comes from
- debian bookworm: potool 0.19-1+b1
- debian trixie: potool 0.19-1+b2
- ubuntu jammy: potool 0.19-1
- ubuntu noble: potool 0.19-1build2
- ubuntu questing: potool 0.19-1build2
- ubuntu resolute: potool 0.19-1build3
- ubuntu stonking: potool 0.19-1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms